/* Booking flow additions shared by the account portal and the public booking pages. */
/* Searchable item picker */
.item-search{position:relative}
.item-search-box{position:relative}
.item-search-icon{position:absolute;top:50%;left:14px;transform:translateY(-50%);color:var(--admin-muted,#687583);pointer-events:none;display:flex}
.item-search-box .form-control{min-height:48px;padding-left:42px}
.item-search-results{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:320px;overflow-y:auto;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--admin-line,#dedede);border-radius:8px;box-shadow:0 14px 34px rgb(8 49 80/.16)}
.item-search-results[hidden]{display:none}
.item-search-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:6px;cursor:pointer}
.item-search-option:hover,.item-search-option.is-active{background:#eef6fd}
.item-search-option[aria-selected="true"] .item-search-copy small{color:#147a4b;font-weight:600}
.item-search-copy{display:flex;flex-direction:column;min-width:0}
.item-search-copy small{color:var(--admin-muted,#687583)}
.item-search-add{flex:0 0 auto;padding:6px 12px;border-radius:999px;background:#005aab;color:#fff;font-size:.82rem;font-weight:700;white-space:nowrap}
.item-search-empty{padding:12px;color:var(--admin-muted,#687583)}
.item-selected-heading{margin:0 0 10px;font-size:1rem;font-weight:700;color:var(--admin-ink,#141414)}
.item-selected-row{align-items:center}
.item-selected-row>div:first-child{display:flex;flex-direction:column;min-width:0}
.item-selected-controls{display:flex;align-items:center;gap:14px}
.item-selected-total{min-width:84px;text-align:right}
.item-remove{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--admin-line,#dedede);border-radius:50%;background:#fff;color:#bd2d3b;font-size:1.2rem;line-height:1;cursor:pointer}
.item-remove:hover,.item-remove:focus-visible{background:#bd2d3b;border-color:#bd2d3b;color:#fff;outline:0}

/* Compact stepper: fixed columns so the + button always fits (the default stepper needs ~180px). */
.quantity-stepper.quantity-stepper-sm{flex:0 0 auto;grid-template-columns:40px 52px 40px;width:auto;max-width:none}
.quantity-stepper.quantity-stepper-sm button{min-height:38px}
.quantity-stepper.quantity-stepper-sm input{text-align:center;padding-left:4px;padding-right:4px}
.quantity-stepper button:disabled{opacity:.45;cursor:not-allowed}

.slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.slot-button{padding:9px 6px;border:1px solid var(--admin-line,#cfd8e1);border-radius:6px;background:#fff;color:var(--admin-ink,#141414);font-weight:600;font-size:.9rem;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.slot-button:hover:not(:disabled){border-color:#005aab}
.slot-button[aria-pressed="true"]{background:#005aab;border-color:#005aab;color:#fff}
.slot-button:disabled{background:#f2f4f6;color:#9aa5b1;text-decoration:line-through;cursor:not-allowed}
.slot-button:focus-visible{outline:3px solid #89c4f2;outline-offset:2px}

.wallet-buttons{display:grid;gap:10px;margin-bottom:6px}
.wallet-buttons[hidden]{display:none}
#google-pay-button{min-height:44px}
.apple-pay-button{display:block;width:100%;height:44px;border:0;border-radius:6px;cursor:pointer;-webkit-appearance:-apple-pay-button;-apple-pay-button-type:pay;-apple-pay-button-style:black}
.wallet-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:var(--admin-muted,#687583);font-size:.85rem}
.wallet-divider::before,.wallet-divider::after{content:"";flex:1;border-top:1px solid var(--admin-line,#dedede)}

.confirmation-card{max-width:640px;margin:0 auto;text-align:center}
.confirmation-card .notice-panel{padding:14px 16px;border:1px solid #cfe3f5;border-radius:8px;background:#f2f8fe;color:var(--admin-ink,#141414);line-height:1.6}
.confirmation-icon{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#e6f4ec;color:#147a4b;font-size:2rem;font-weight:700}

@media(max-width:575.98px){.item-selected-row{flex-direction:column;align-items:stretch}.item-selected-controls{justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.slot-button,[data-booking-processing-form] input[type=radio],[data-booking-processing-form] input[type=checkbox],[data-booking-processing-form] .binary-choice label,[data-booking-processing-form] .form-check{transition:none}}

/* Booking form: custom radios, checkboxes and choice cards. Scoped to forms marked data-booking-processing-form (the booking form); other checkboxes keep their default look. */
[data-booking-processing-form]{--choice-accent:var(--primary-deep,var(--admin-blue,#005aab));--choice-line:var(--line,var(--admin-line,#dedede));--choice-ink:var(--navy-deep,var(--admin-ink,#141414));--choice-muted:var(--ink-soft,var(--admin-muted,#707070));--choice-tint:rgb(0 90 171/.07);--choice-ring:rgb(0 90 171/.22);--choice-ring-soft:rgb(0 90 171/.12);--choice-border:#78828d}
@supports (color:color-mix(in srgb,red,blue)){[data-booking-processing-form]{--choice-tint:color-mix(in srgb,var(--choice-accent) 7%,transparent);--choice-ring:color-mix(in srgb,var(--choice-accent) 22%,transparent);--choice-ring-soft:color-mix(in srgb,var(--choice-accent) 12%,transparent)}}
[data-booking-processing-form] input[type=radio],[data-booking-processing-form] input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:22px;height:22px;margin:0;border:2px solid var(--choice-border);background:#fff center/14px no-repeat;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
[data-booking-processing-form] input[type=radio]{border-radius:50%}
[data-booking-processing-form] input[type=checkbox]{border-radius:6px}
[data-booking-processing-form] input[type=radio]:not(:disabled):hover,[data-booking-processing-form] input[type=checkbox]:not(:disabled):hover{border-color:var(--choice-accent)}
[data-booking-processing-form] input[type=radio]:disabled,[data-booking-processing-form] input[type=checkbox]:disabled{cursor:not-allowed;opacity:.55}
[data-booking-processing-form] input[type=radio]:checked{border-color:var(--choice-accent);background-color:#fff;background-image:radial-gradient(circle,var(--choice-accent) 0 45%,transparent 50%)}
[data-booking-processing-form] input[type=checkbox]:checked{border-color:var(--choice-accent);background-color:var(--choice-accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")}
[data-booking-processing-form] input[type=radio]:focus-visible,[data-booking-processing-form] input[type=checkbox]:focus-visible{outline:0;box-shadow:0 0 0 4px var(--choice-ring)}
[data-booking-processing-form] input.is-invalid[type=checkbox]:not(:checked){border-color:#dc3545}
@media(forced-colors:active){[data-booking-processing-form] input[type=radio],[data-booking-processing-form] input[type=checkbox]{appearance:auto;-webkit-appearance:auto;width:22px;height:22px;border:0;background:none;accent-color:Highlight}[data-booking-processing-form] input[type=radio]:focus-visible,[data-booking-processing-form] input[type=checkbox]:focus-visible{outline:2px solid Highlight;outline-offset:2px;box-shadow:none}[data-booking-processing-form] .service-choice:has(input:checked),[data-booking-processing-form] .service-choice.is-selected,[data-booking-processing-form] .binary-choice label.is-selected,[data-booking-processing-form] .form-check.is-selected{border-color:Highlight;border-width:3px}}

/* Service / payment choice cards */
[data-booking-processing-form] .service-choice{display:flex;min-height:0;padding:20px 22px;border-width:2px;border-color:var(--choice-line);background:#fff}
[data-booking-processing-form] .service-choice input{top:20px;right:20px;width:22px;height:22px}
[data-booking-processing-form] .service-choice-copy{padding-right:34px}
[data-booking-processing-form] .service-choice.is-selected{border-color:var(--choice-accent);background:var(--choice-tint);box-shadow:0 0 0 4px var(--choice-ring-soft)}
[data-booking-processing-form] .service-choice:has(input:checked){border-color:var(--choice-accent);background:var(--choice-tint);box-shadow:0 0 0 4px var(--choice-ring-soft)}
[data-booking-processing-form] .service-choice:has(input:focus-visible){border-color:var(--choice-accent);box-shadow:0 0 0 4px var(--choice-ring)}
[data-booking-processing-form] .service-choice-copy small{margin:6px 0 12px;color:var(--choice-muted)}
[data-booking-processing-form] .service-choice-copy b{display:inline-block;align-self:flex-start;padding:4px 10px;border-radius:999px;background:#fff;border:1px solid var(--choice-line);color:var(--choice-ink)}

/* Yes / No questions as two large segmented options */
[data-booking-processing-form] .binary-choice{padding:18px;border-color:var(--choice-line);border-radius:14px;background:#fff}
[data-booking-processing-form] .binary-choice>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
[data-booking-processing-form] .binary-choice label{justify-content:center;gap:10px;min-height:46px;padding:10px 14px;border:2px solid var(--choice-line);border-radius:10px;background:#fff;color:var(--choice-ink);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}
[data-booking-processing-form] .binary-choice label:hover{border-color:var(--choice-accent)}
[data-booking-processing-form] .binary-choice label.is-selected{border-color:var(--choice-accent);background:var(--choice-tint);color:var(--choice-accent)}
[data-booking-processing-form] .binary-choice label:has(input:checked){border-color:var(--choice-accent);background:var(--choice-tint);color:var(--choice-accent)}
[data-booking-processing-form] .binary-choice label:has(input:focus-visible){box-shadow:0 0 0 4px var(--choice-ring)}

/* Terms checkbox as a tappable row */
[data-booking-processing-form] .form-check{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;min-height:0;margin:0;padding:14px;border:2px solid var(--choice-line);border-radius:12px;background:#fff;transition:border-color .15s ease,background-color .15s ease}
[data-booking-processing-form] .form-check.is-selected{border-color:var(--choice-accent);background:var(--choice-tint)}
[data-booking-processing-form] .form-check:has(input:checked){border-color:var(--choice-accent);background:var(--choice-tint)}
[data-booking-processing-form] .form-check:has(input:focus-visible){box-shadow:0 0 0 4px var(--choice-ring)}
[data-booking-processing-form] .form-check .form-check-input{float:none;margin:2px 0 0}
[data-booking-processing-form] .form-check .form-check-label{flex:1;font-size:.9rem;line-height:1.5;color:var(--choice-ink);cursor:pointer}
[data-booking-processing-form] .form-check .invalid-feedback{display:block;flex:0 0 100%}
@media(max-width:767.98px){[data-booking-processing-form] .service-choice{padding:16px 18px}}

.card-accepted{padding:9px 12px;border-radius:6px;background:var(--admin-ink,#141414);color:#fff;font-size:.88rem;font-weight:600}
.square-note{display:flex;align-items:flex-start;gap:8px;margin-top:10px}.square-note .square-mark{flex:0 0 auto;margin-top:2px}
