| 1 |
.wpbc_booking_resource_selector { |
| 2 |
box-sizing: border-box; |
| 3 |
margin: 0 auto; |
| 4 |
max-width: 860px; |
| 5 |
position: relative |
| 6 |
} |
| 7 |
.wpbc_booking_resource_selector .wpbc_booking_ui_theme_scope, |
| 8 |
.wpbc_booking_resource_selector__loading { |
| 9 |
--wpbc-resource-selector-accent: var(--wpbc_form-choice-checked-border-color, #465160); |
| 10 |
--wpbc-resource-selector-accent-text: var(--wpbc_form-accent-contrast-color, var(--wpbc_form-button-text-color, #fff)); |
| 11 |
--wpbc-resource-selector-border: var(--wpbc_form-field-border-color, #dcdcde); |
| 12 |
--wpbc-resource-selector-error: var(--wpbc_form-label-error-color, #d63638); |
| 13 |
--wpbc-resource-selector-focus: var(--wpbc_form-choice-focus-color, var(--wpbc_form-field-focus-border-color, #465160)); |
| 14 |
--wpbc-resource-selector-muted: var(--wpbc_form-label-sublabel-color, #646970); |
| 15 |
--wpbc-resource-selector-surface: var(--wpbc_form-field-background-color, #fff); |
| 16 |
--wpbc-resource-selector-surface-text: var(--wpbc_form-field-text-color, #1d2327); |
| 17 |
--wpbc-resource-selector-text: var(--wpbc_form-label-color, #1d2327); |
| 18 |
color: var(--wpbc-resource-selector-text) |
| 19 |
} |
| 20 |
.wpbc_booking_resource_selector *, |
| 21 |
.wpbc_booking_resource_selector ::after, |
| 22 |
.wpbc_booking_resource_selector ::before { |
| 23 |
box-sizing: border-box |
| 24 |
} |
| 25 |
.wpbc_booking_resource_selector:not([data-resource-selector-stage=booking]) > .wpbc_booking_resource_selector__stage { |
| 26 |
background: var(--wpbc-bfb-form-background,#fff); |
| 27 |
border: var(--wpbc-bfb-form-border-width,1px) solid var(--wpbc-bfb-form-border-color,#ccc); |
| 28 |
border-radius: var(--wpbc-bfb-form-border-radius,2px); |
| 29 |
box-shadow: var(--wpbc-bfb-form-box-shadow,rgba(0,0,0,.05) 0 2px 6px 0); |
| 30 |
padding: var(--wpbc-bfb-form-padding,10px 30px) |
| 31 |
} |
| 32 |
.wpbc_booking_resource_selector__progress { |
| 33 |
-ms-flex-align: start; |
| 34 |
align-items: start; |
| 35 |
display: grid; |
| 36 |
grid-template-columns: repeat(2,minmax(0,1fr)); |
| 37 |
list-style: none; |
| 38 |
margin: 0 0 28px; |
| 39 |
padding: 0; |
| 40 |
width: 100% |
| 41 |
} |
| 42 |
.wpbc_booking_resource_selector[data-resource-selector-stage=booking] > .wpbc_booking_resource_selector__stage > .wpbc_booking_resource_selector__progress { |
| 43 |
background: var(--wpbc-bfb-form-background,#fff); |
| 44 |
border: var(--wpbc-bfb-form-border-width,1px) solid var(--wpbc-bfb-form-border-color,#ccc); |
| 45 |
border-radius: var(--wpbc-bfb-form-border-radius,2px); |
| 46 |
box-shadow: var(--wpbc-bfb-form-box-shadow,rgba(0,0,0,.05) 0 2px 6px 0); |
| 47 |
padding: var(--wpbc-bfb-form-padding,10px 30px) |
| 48 |
} |
| 49 |
.wpbc_booking_resource_selector__progress_step { |
| 50 |
-ms-flex-align: center; |
| 51 |
align-items: center; |
| 52 |
color: var(--wpbc-resource-selector-muted); |
| 53 |
display: -ms-flexbox; |
| 54 |
display: flex; |
| 55 |
-ms-flex-direction: column; |
| 56 |
flex-direction: column; |
| 57 |
font-size: 13px; |
| 58 |
gap: 7px; |
| 59 |
line-height: 1.35; |
| 60 |
min-width: 0; |
| 61 |
position: relative; |
| 62 |
text-align: center |
| 63 |
} |
| 64 |
.wpbc_booking_resource_selector__progress_step:not(:last-child)::after { |
| 65 |
background: var(--wpbc-resource-selector-border); |
| 66 |
content: ""; |
| 67 |
height: 1px; |
| 68 |
left: calc(50% + 15px); |
| 69 |
position: absolute; |
| 70 |
right: calc(-50% + 15px); |
| 71 |
top: 15px |
| 72 |
} |
| 73 |
.wpbc_booking_resource_selector__progress_step.is-complete::after { |
| 74 |
background: var(--wpbc-resource-selector-accent) |
| 75 |
} |
| 76 |
.wpbc_booking_resource_selector__progress_number { |
| 77 |
-ms-flex-align: center; |
| 78 |
align-items: center; |
| 79 |
background: var(--wpbc-resource-selector-surface); |
| 80 |
border: 1px solid var(--wpbc-resource-selector-border); |
| 81 |
border-radius: 50%; |
| 82 |
color: var(--wpbc-resource-selector-surface-text); |
| 83 |
display: -ms-inline-flexbox; |
| 84 |
display: inline-flex; |
| 85 |
-ms-flex: 0 0 30px; |
| 86 |
flex: 0 0 30px; |
| 87 |
font-weight: 600; |
| 88 |
height: 30px; |
| 89 |
-ms-flex-pack: center; |
| 90 |
justify-content: center; |
| 91 |
line-height: 1; |
| 92 |
position: relative; |
| 93 |
width: 30px; |
| 94 |
z-index: 1 |
| 95 |
} |
| 96 |
.wpbc_booking_resource_selector__progress_step.is-active { |
| 97 |
color: var(--wpbc-resource-selector-text); |
| 98 |
font-weight: 600 |
| 99 |
} |
| 100 |
.wpbc_booking_resource_selector__progress_step.is-active .wpbc_booking_resource_selector__progress_number, |
| 101 |
.wpbc_booking_resource_selector__progress_step.is-complete .wpbc_booking_resource_selector__progress_number { |
| 102 |
background: var(--wpbc-resource-selector-accent); |
| 103 |
border-color: var(--wpbc-resource-selector-accent); |
| 104 |
color: var(--wpbc-resource-selector-accent-text) |
| 105 |
} |
| 106 |
.wpbc_booking_resource_selector__heading { |
| 107 |
margin: 0 0 18px |
| 108 |
} |
| 109 |
.wpbc_booking_resource_selector__heading h3 { |
| 110 |
color: var(--wpbc-resource-selector-text); |
| 111 |
font-size: 24px; |
| 112 |
line-height: 1.25; |
| 113 |
margin: 0 0 5px |
| 114 |
} |
| 115 |
.wpbc_booking_resource_selector__heading h3:focus { |
| 116 |
border-radius: var(--wpbc_form-field-border-radius,8px); |
| 117 |
box-shadow: 0 0 0 2px var(--wpbc_form-field-focus-shadow-color,var(--wpbc-resource-selector-focus)); |
| 118 |
outline: 0 |
| 119 |
} |
| 120 |
.wpbc_booking_resource_selector__heading p { |
| 121 |
color: var(--wpbc-resource-selector-muted); |
| 122 |
margin: 0 |
| 123 |
} |
| 124 |
.wpbc_booking_resource_selector__choices { |
| 125 |
display: grid; |
| 126 |
gap: 10px; |
| 127 |
grid-template-columns: repeat(auto-fit,minmax(280px,1fr)) |
| 128 |
} |
| 129 |
.wpbc_booking_resource_selector__choice { |
| 130 |
-ms-flex-align: center; |
| 131 |
align-items: center; |
| 132 |
background: var(--wpbc-resource-selector-surface); |
| 133 |
border: 1px solid var(--wpbc-resource-selector-border); |
| 134 |
border-radius: var(--wpbc_form-field-border-radius,8px); |
| 135 |
color: var(--wpbc-resource-selector-surface-text); |
| 136 |
cursor: pointer; |
| 137 |
display: -ms-flexbox; |
| 138 |
display: flex; |
| 139 |
gap: 12px; |
| 140 |
min-height: 86px; |
| 141 |
padding: 15px 16px; |
| 142 |
position: relative; |
| 143 |
transition: border-color .15s,box-shadow .15s |
| 144 |
} |
| 145 |
.wpbc_booking_resource_selector__choice:hover { |
| 146 |
border-color: var(--wpbc-resource-selector-focus) |
| 147 |
} |
| 148 |
.wpbc_booking_resource_selector__choice:focus-within { |
| 149 |
box-shadow: 0 0 0 2px var(--wpbc_form-field-focus-shadow-color,var(--wpbc-resource-selector-focus)); |
| 150 |
outline: 0 |
| 151 |
} |
| 152 |
.wpbc_booking_resource_selector__choice > input { |
| 153 |
opacity: 0; |
| 154 |
pointer-events: none; |
| 155 |
position: absolute |
| 156 |
} |
| 157 |
.wpbc_booking_resource_selector__choice.is-selected, |
| 158 |
.wpbc_booking_resource_selector__choice:has(input:checked) { |
| 159 |
border-color: var(--wpbc-resource-selector-accent); |
| 160 |
box-shadow: inset 3px 0 0 var(--wpbc-resource-selector-accent) |
| 161 |
} |
| 162 |
.wpbc_booking_resource_selector__choice_body { |
| 163 |
display: -ms-flexbox; |
| 164 |
display: flex; |
| 165 |
-ms-flex: 1; |
| 166 |
flex: 1; |
| 167 |
-ms-flex-direction: column; |
| 168 |
flex-direction: column; |
| 169 |
min-width: 0 |
| 170 |
} |
| 171 |
.wpbc_booking_resource_selector__choice_body strong { |
| 172 |
color: var(--wpbc-resource-selector-surface-text); |
| 173 |
font-size: 16px; |
| 174 |
line-height: 1.3 |
| 175 |
} |
| 176 |
.wpbc_booking_resource_selector__choice_description { |
| 177 |
color: var(--wpbc-resource-selector-muted); |
| 178 |
font-size: 13px; |
| 179 |
line-height: 1.4; |
| 180 |
margin-top: 3px |
| 181 |
} |
| 182 |
.wpbc_booking_resource_selector__resource_icon { |
| 183 |
-ms-flex-align: center; |
| 184 |
align-items: center; |
| 185 |
background: var(--wpbc_form-button-light-background-color,#eef0ff); |
| 186 |
border: 1px solid var(--wpbc_form-button-light-border-color,var(--wpbc-resource-selector-border)); |
| 187 |
border-radius: 50%; |
| 188 |
color: var(--wpbc_form-button-light-text-color,#3044a5); |
| 189 |
display: -ms-inline-flexbox; |
| 190 |
display: inline-flex; |
| 191 |
-ms-flex: 0 0 44px; |
| 192 |
flex: 0 0 44px; |
| 193 |
font-size: 12px; |
| 194 |
font-weight: 700; |
| 195 |
height: 44px; |
| 196 |
-ms-flex-pack: center; |
| 197 |
justify-content: center; |
| 198 |
overflow: hidden; |
| 199 |
width: 44px |
| 200 |
} |
| 201 |
.wpbc_booking_resource_selector__resource_icon img { |
| 202 |
height: 100%; |
| 203 |
object-fit: cover; |
| 204 |
width: 100% |
| 205 |
} |
| 206 |
.wpbc_booking_resource_selector__choice_mark { |
| 207 |
border: 2px solid var(--wpbc-resource-selector-border); |
| 208 |
border-radius: 50%; |
| 209 |
-ms-flex: 0 0 auto; |
| 210 |
flex: 0 0 auto; |
| 211 |
height: 18px; |
| 212 |
width: 18px |
| 213 |
} |
| 214 |
.wpbc_booking_resource_selector__choice input:checked ~ .wpbc_booking_resource_selector__choice_mark { |
| 215 |
border: 5px solid var(--wpbc-resource-selector-accent) |
| 216 |
} |
| 217 |
.wpbc_booking_resource_selector__actions { |
| 218 |
display: -ms-flexbox; |
| 219 |
display: flex; |
| 220 |
gap: 10px; |
| 221 |
-ms-flex-pack: end; |
| 222 |
justify-content: flex-end; |
| 223 |
margin-top: 20px |
| 224 |
} |
| 225 |
.wpbc_booking_resource_selector__booking_header { |
| 226 |
-ms-flex-align: center; |
| 227 |
align-items: center; |
| 228 |
background: var(--wpbc-resource-selector-surface); |
| 229 |
border: 1px solid var(--wpbc-resource-selector-border); |
| 230 |
border-radius: var(--wpbc-bfb-form-border-radius,7px); |
| 231 |
color: var(--wpbc-resource-selector-surface-text); |
| 232 |
display: -ms-flexbox; |
| 233 |
display: flex; |
| 234 |
-ms-flex-pack: justify; |
| 235 |
justify-content: space-between; |
| 236 |
margin-bottom: 22px; |
| 237 |
padding: 13px 16px |
| 238 |
} |
| 239 |
.wpbc_booking_resource_selector__booking_header > div { |
| 240 |
display: -ms-flexbox; |
| 241 |
display: flex; |
| 242 |
-ms-flex-direction: column; |
| 243 |
flex-direction: column; |
| 244 |
gap: 3px |
| 245 |
} |
| 246 |
.wpbc_booking_resource_selector__booking_header span { |
| 247 |
color: var(--wpbc-resource-selector-muted); |
| 248 |
font-size: 12px; |
| 249 |
text-transform: uppercase |
| 250 |
} |
| 251 |
.wpbc_booking_resource_selector__ajax_notice, |
| 252 |
.wpbc_booking_resource_selector__notice { |
| 253 |
background: #fcf0f1; |
| 254 |
border-left: 4px solid var(--wpbc-resource-selector-error); |
| 255 |
color: var(--wpbc-resource-selector-text); |
| 256 |
padding: 12px 14px |
| 257 |
} |
| 258 |
.wpbc_booking_resource_selector__notice--empty { |
| 259 |
background: #f0f6fc; |
| 260 |
border-left-color: #72aee6 |
| 261 |
} |
| 262 |
.wpbc_booking_resource_selector__ajax_notice { |
| 263 |
margin-top: 12px |
| 264 |
} |
| 265 |
.wpbc_booking_resource_selector__loading { |
| 266 |
-ms-flex-align: center; |
| 267 |
align-items: center; |
| 268 |
background: rgba(255,255,255,.92); |
| 269 |
border: 1px solid var(--wpbc-resource-selector-border); |
| 270 |
border-radius: 6px; |
| 271 |
box-shadow: 0 1px 3px rgba(0,0,0,.08); |
| 272 |
display: -ms-flexbox; |
| 273 |
display: flex; |
| 274 |
gap: 10px; |
| 275 |
left: 50%; |
| 276 |
padding: 10px 14px; |
| 277 |
position: absolute; |
| 278 |
top: 22px; |
| 279 |
-ms-transform: translateX(-50%); |
| 280 |
transform: translateX(-50%); |
| 281 |
z-index: 20 |
| 282 |
} |
| 283 |
.wpbc_booking_resource_selector__loading[hidden] { |
| 284 |
display: none |
| 285 |
} |
| 286 |
.wpbc_booking_resource_selector__spinner { |
| 287 |
animation: .8s linear infinite wpbc-resource-selector-spin; |
| 288 |
border: 2px solid var(--wpbc-resource-selector-border); |
| 289 |
border-radius: 50%; |
| 290 |
border-top-color: var(--wpbc-resource-selector-accent); |
| 291 |
height: 18px; |
| 292 |
width: 18px |
| 293 |
} |
| 294 |
.wpbc_booking_resource_selector.is-loading > .wpbc_booking_resource_selector__stage { |
| 295 |
opacity: .55; |
| 296 |
pointer-events: none |
| 297 |
} |
| 298 |
@keyframes wpbc-resource-selector-spin { |
| 299 |
to { |
| 300 |
transform: rotate(360deg) |
| 301 |
} |
| 302 |
} |
| 303 |
@media (max-width:600px) { |
| 304 |
.wpbc_booking_resource_selector:not([data-resource-selector-stage=booking]) > .wpbc_booking_resource_selector__stage, |
| 305 |
.wpbc_booking_resource_selector[data-resource-selector-stage=booking] > .wpbc_booking_resource_selector__stage > .wpbc_booking_resource_selector__progress { |
| 306 |
padding: 16px |
| 307 |
} |
| 308 |
.wpbc_booking_resource_selector__booking_header { |
| 309 |
-ms-flex-align: start; |
| 310 |
align-items: flex-start; |
| 311 |
-ms-flex-direction: column; |
| 312 |
flex-direction: column; |
| 313 |
gap: 12px |
| 314 |
} |
| 315 |
.wpbc_booking_resource_selector__actions { |
| 316 |
-ms-flex-pack: stretch; |
| 317 |
justify-content: stretch |
| 318 |
} |
| 319 |
.wpbc_booking_resource_selector__actions .wpbc_button { |
| 320 |
width: 100% |
| 321 |
} |
| 322 |
} |
| 323 |
@media (prefers-reduced-motion:reduce) { |
| 324 |
.wpbc_booking_resource_selector__choice { |
| 325 |
transition: none |
| 326 |
} |
| 327 |
.wpbc_booking_resource_selector__spinner { |
| 328 |
animation-duration: 1.6s |
| 329 |
} |
| 330 |
} |