/* Public online booking page (/appt). Colors and type match the home page. */
:root {
    --bk-bg: #f6f5f2;
    --bk-surface: #ffffff;
    --bk-surface-muted: #f1efea;
    --bk-border: #e4e0d8;
    --bk-border-strong: #d0cabe;
    --bk-text: #1c2321;
    --bk-text-muted: #5f6b67;
    --bk-accent: #0f766e;
    --bk-accent-hover: #0b5e58;
    --bk-accent-soft: #e3f2ef;
    --bk-highlight: #f59e0b;
    --bk-radius: 12px;
    --bk-shadow: 0 1px 2px rgba(28, 35, 33, .06), 0 6px 18px rgba(28, 35, 33, .06);
    --bk-focus: 0 0 0 3px rgba(15, 118, 110, .25);
    --bk-font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bk-bg);
    color: var(--bk-text);
    font-family: var(--bk-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.booking,
.booking button,
.booking input,
#window,
#window button,
#window input,
.k-dialog,
.k-window {
    font-family: var(--bk-font);
}

.booking .bx {
    line-height: 1;
}

/* Sticky header: location, filter summary + panel, and the day picker */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.booking-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--bk-border);
    background: var(--bk-surface);
    box-shadow: 0 6px 18px rgba(28, 35, 33, .06);
}

.booking-header-inner {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
    box-sizing: border-box;
}

.booking-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 8px 0;
}

.booking-brand {
    flex: none;
    text-decoration: none;
}

.booking-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--bk-accent);
    color: #fff;
    font-size: 21px;
}

.booking-location {
    flex: 1 1 auto;
    min-width: 0;
}

.booking-title {
    margin: 0;
    overflow: hidden;
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    margin: 2px 0 0;
    padding: 0;
    color: var(--bk-text-muted);
    font-size: 13px;
    list-style: none;
}

.booking-contact li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.booking-contact li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-contact li[hidden] {
    display: none;
}

.booking-contact .bx {
    color: var(--bk-accent);
    font-size: 15px;
}

.booking-contact a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.booking-contact a:hover {
    color: var(--bk-accent);
    text-decoration: underline;
}

.booking-back {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--bk-border-strong);
    border-radius: 999px;
    color: var(--bk-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.booking-back:hover {
    border-color: var(--bk-accent);
    color: var(--bk-accent);
    text-decoration: none;
}

.booking-back .bx {
    font-size: 17px;
}

/* Filter bar: each chip is a Kendo dropdown styled as a pill */
.booking-filter-bar {
    padding: 0 0 10px;
}

.booking-filter-bar .availability-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Brief highlight when "Change filters" brings people back here. */
#wrapper-filter.is-highlighted .filter-chip {
    border-color: var(--bk-accent);
    box-shadow: var(--bk-focus);
}

.filter-chip {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 38px;
    padding-left: 12px;
    border: 1px solid var(--bk-border-strong);
    border-radius: 999px;
    background: var(--bk-surface);
    transition: border-color .15s, box-shadow .15s;
}

.filter-chip:hover {
    border-color: var(--bk-accent);
}

.filter-chip:focus-within {
    border-color: var(--bk-accent);
    box-shadow: var(--bk-focus);
}

.filter-chip > .bx {
    flex: none;
    color: var(--bk-accent);
    font-size: 17px;
    pointer-events: none;
}

.filter-chip[style*="display: none"] {
    display: none !important;
}

/* The Kendo widget inside a chip: no box of its own, sized to its text. */
#wrapper-filter .filter-chip .k-picker,
#wrapper-filter .filter-chip .k-input,
#wrapper-filter .filter-chip .k-multiselect {
    width: auto !important;
    min-width: 0;
    height: 36px !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

#wrapper-filter .filter-chip .k-input-inner,
#wrapper-filter .filter-chip .k-input-value-text {
    min-height: 0 !important;
    padding: 0 2px 0 6px !important;
    color: var(--bk-text);
    font-size: 13px !important;
    font-weight: 600;
    white-space: nowrap;
}

#wrapper-filter .filter-chip .k-input-button {
    width: 28px;
    min-width: 28px;
    padding: 0 8px 0 0;
    border-radius: 0 999px 999px 0;
    color: var(--bk-text-muted);
}

/* Therapist chip: selected names read as plain text inside the pill. */
#wrapper-filter .filter-chip--staff .k-multiselect .k-input-values {
    flex-wrap: nowrap;
    padding: 0 0 0 4px;
}

#wrapper-filter .filter-chip--staff .k-chip-list {
    flex-wrap: nowrap;
    gap: 2px;
}

#wrapper-filter .filter-chip--staff .k-chip {
    height: 26px;
    padding: 0 4px 0 8px;
    border: 0;
    border-radius: 999px;
    background: var(--bk-surface-muted);
    color: var(--bk-text);
    font-size: 13px;
    font-weight: 600;
}

#wrapper-filter .filter-chip--staff .k-chip-label {
    max-width: 120px;
}

#wrapper-filter .filter-chip--staff .k-input-values .k-input-inner {
    flex: 0 0 8px;
    width: 8px !important;
    min-width: 8px;
    padding: 0 !important;
}

#wrapper-filter .filter-chip--staff .k-clear-value {
    display: none;
}

#wrapper-filter .filter-chip--staff::after {
    content: "\ea4a";
    padding: 0 10px 0 4px;
    color: var(--bk-text-muted);
    font-family: boxicons;
    font-size: 16px;
    pointer-events: none;
}

/* A lone chip ("Anyone" or one therapist) has no remove "x"; pick another
   option from the list instead. */
#wrapper-filter .filter-chip--staff .k-chip:only-child .k-chip-actions {
    display: none;
}

#wrapper-filter .filter-chip--staff .k-chip {
    cursor: pointer;
}

/* Short pill labels ("2", "90m", "Any") are used on phones only. */
.chip-short {
    display: none;
}

.filter-reset {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 14px;
    border: 1px dashed var(--bk-border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--bk-text-muted);
    font: 600 13px/1 var(--bk-font);
    cursor: pointer;
}

.filter-reset:hover {
    border-color: var(--bk-accent);
    color: var(--bk-accent);
}

.filter-reset:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus);
}

.filter-reset .bx {
    font-size: 17px;
}

/* The day-row copy of Reset is only used on phones. */
.booking-day-nav .filter-reset--nav {
    display: none;
}

/* Phones: compact pills so all filters fit on one row. */
@media (max-width: 600px) {
    #resetFilters {
        display: none;
    }

    .booking-day-nav .filter-reset--nav {
        display: inline-flex;
        min-width: 34px;
        height: 34px;
    }

    .chip-long {
        display: none;
    }

    .chip-short {
        display: inline;
    }

    .booking-filter-bar .availability-filters {
        gap: 6px;
    }

    .filter-chip {
        height: 34px;
        padding-left: 9px;
    }

    .filter-chip > .bx {
        font-size: 15px;
    }

    #wrapper-filter .filter-chip .k-picker,
    #wrapper-filter .filter-chip .k-input,
    #wrapper-filter .filter-chip .k-multiselect {
        height: 32px !important;
    }

    #wrapper-filter .filter-chip .k-input-inner,
    #wrapper-filter .filter-chip .k-input-value-text {
        padding: 0 0 0 4px !important;
        font-size: 12.5px !important;
    }

    #wrapper-filter .filter-chip .k-input-button {
        width: 18px;
        min-width: 18px;
        padding: 0 4px 0 0;
    }

    #wrapper-filter .filter-chip--staff .k-chip {
        height: 24px;
        padding: 0 2px;
        background: transparent;
        font-size: 12.5px;
    }

    #wrapper-filter .filter-chip--staff .k-chip-label {
        max-width: 84px;
    }

    #wrapper-filter .filter-chip--staff::after {
        padding: 0 6px 0 0;
        font-size: 14px;
    }

    .filter-reset {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
    }

    .filter-reset span {
        display: none;
    }
}

/* Day picker row */
.booking-days {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 6px;
    border-top: 1px solid var(--bk-border);
}

/* Page body */
.booking-main {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 14px clamp(12px, 3vw, 24px) 12px;
    box-sizing: border-box;
}

/* Cards */
.booking-card {
    margin-bottom: 12px;
    border: 1px solid var(--bk-border);
    border-radius: 16px;
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow);
}

.booking-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.booking-card-title .bx {
    color: var(--bk-accent);
    font-size: 20px;
}

/* All searches run automatically when a filter changes. */
.availability-actions {
    display: none;
}

/* Kendo controls in the filter card and booking window */
#wrapper-filter .k-input,
#wrapper-filter .k-picker,
#wrapper-filter .k-dropdownlist,
#wrapper-filter .k-multiselect,
#window .k-input,
#window .k-picker,
#window .k-dropdownlist,
#window .k-multiselect {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--bk-border-strong);
    border-radius: 10px;
    background: var(--bk-surface);
    box-shadow: none;
    font-family: var(--bk-font);
}

#wrapper-filter .k-input-inner,
#wrapper-filter .k-picker .k-input-inner,
#wrapper-filter .k-dropdownlist .k-input-inner,
#wrapper-filter .k-multiselect .k-input-inner,
#window .k-input-inner,
#window .k-picker .k-input-inner,
#window .k-dropdownlist .k-input-inner,
#window .k-multiselect .k-input-inner {
    min-height: 42px;
    color: var(--bk-text);
    font-family: var(--bk-font);
    font-size: 15px !important;
}

/* The Material theme's "solid" inputs have a transparent top border and an
   ::after underline; draw one full outline on all four sides instead. */
#wrapper-filter .k-input,
#wrapper-filter .k-picker,
#window .k-input,
#window .k-picker {
    border-style: solid !important;
    border-width: 1px !important;
    border-color: var(--bk-border-strong) !important;
    border-radius: 10px !important;
}

#wrapper-filter .k-input:hover,
#wrapper-filter .k-picker:hover,
#window .k-input:hover,
#window .k-picker:hover {
    border-color: #b3ac9f !important;
}

#wrapper-filter .k-input:focus-within,
#wrapper-filter .k-picker:focus-within,
#window .k-input:focus-within,
#window .k-picker:focus-within {
    border-color: var(--bk-accent) !important;
}

#window .k-input.k-invalid,
#window .k-picker.k-invalid {
    border-color: #b42318 !important;
}

#wrapper-filter .k-input::after,
#wrapper-filter .k-picker::after,
#window .k-input::after,
#window .k-picker::after {
    display: none !important;
}

#window .booking-input-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 0 0 0 12px;
    color: var(--bk-text-muted);
    font-size: 18px;
}

#window .booking-decorated .k-input-inner {
    padding-left: 8px;
}

#window .k-input-inner::placeholder {
    color: #97a09c;
    opacity: 1;
}

/* Kendo MultiSelect shows its placeholder as a read-only value. */
#window .k-multiselect .k-input-inner.k-readonly {
    color: #97a09c;
}

#window .k-input.k-invalid,
#window .k-input.k-invalid:focus-within,
#window .k-picker.k-invalid {
    border-color: #b42318;
}

#wrapper-filter .k-input:focus-within,
#wrapper-filter .k-picker:focus-within,
#wrapper-filter .k-dropdownlist:focus-within,
#wrapper-filter .k-multiselect:focus-within,
#window .k-input:focus-within,
#window .k-picker:focus-within,
#window .k-dropdownlist:focus-within,
#window .k-multiselect:focus-within {
    border-color: var(--bk-accent);
    box-shadow: var(--bk-focus);
}

#wrapper-filter .k-input-button,
#wrapper-filter .k-picker .k-button,
#window .k-input-button,
#window .k-picker .k-input-button {
    min-height: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: transparent;
    box-shadow: none;
    color: var(--bk-text-muted);
}

#wrapper-filter .k-chip,
#window .k-chip {
    border-color: #bfe0da;
    background: var(--bk-accent-soft);
    color: var(--bk-accent-hover);
    font-family: var(--bk-font);
    font-weight: 600;
}

/* Day navigation */
.booking-day-nav {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.booking-day-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 36px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--bk-border-strong);
    border-radius: 999px;
    background: var(--bk-surface);
    color: var(--bk-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.booking-day-nav button:hover {
    border-color: var(--bk-accent);
    color: var(--bk-accent);
}

.booking-day-nav button:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus);
}

.booking-day-nav button .bx {
    font-size: 18px;
}

.booking-day-nav .booking-day-nav-icon {
    padding: 0 8px;
}

/* Range calendar day strip (jquery.rangecalendar) */
#cal5.range-calendar {
    padding: 0;
}

#cal5 .calendar-wrapper,
#cal5 .wrapper {
    padding: 2px 0;
}

#cal5 .months .cell {
    padding: 3px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--bk-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Only the chosen month is highlighted; the plugin leaves "current" on
   today's month when another month is picked. */
#cal5 .months .cell.current:not(.selected) {
    background: transparent !important;
    color: var(--bk-text-muted) !important;
}

#cal5 .months .cell.selected {
    background: var(--bk-accent-soft) !important;
    color: var(--bk-accent) !important;
}

#cal5 .months .cell .month-name,
#cal5 .months .cell .date-formatted {
    color: inherit !important;
}

#cal5 .months .cell .bullet {
    display: none;
}

#cal5 .calendar .cell {
    width: 56px;
    padding: 8px 0;
    margin-right: 4px;
    border-right: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--bk-text);
    cursor: pointer;
}

#cal5 .calendar .cell:hover {
    background: var(--bk-surface-muted);
}

#cal5 .calendar .cell .day-number {
    font-size: 18px;
    font-weight: 700;
}

#cal5 .calendar .cell .day {
    color: var(--bk-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

#cal5 .calendar .cell.selected,
#cal5 .calendar .cell.start {
    background: var(--bk-accent) !important;
    color: #fff !important;
}

#cal5 .calendar .cell.selected .day,
#cal5 .calendar .cell.start .day {
    color: rgba(255, 255, 255, .85) !important;
}

#cal5 .range-bar {
    display: none;
}

/* Time slots (Kendo grid) */
.booking-slots {
    overflow: hidden;
}

#ApptGrid {
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--bk-font);
}

#ApptGrid .k-grid-header,
#ApptGrid .k-grid-footer,
#ApptGrid .k-footer-template {
    display: none;
}

#ApptGrid .k-grid-content {
    overflow-x: hidden;
}

/* Kendo sizes the scroll area as the grid height minus its header and
   totals row, measured before the rules above hide them, which left a blank
   band under the list. Let the scroll area fill whatever the grid has. */
#ApptGrid .k-grid-container {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

#ApptGrid .k-grid-content {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
}

#ApptGrid .k-grid-table {
    min-width: 100%;
    table-layout: fixed;
}

#ApptGrid table {
    border: 0;
}

#ApptGrid tr,
#ApptGrid td {
    border-color: var(--bk-border);
    background: transparent;
    text-align: left;
}

#ApptGrid td {
    padding: 12px 16px;
    border-left-width: 0;
    vertical-align: middle;
}

#ApptGrid td:last-child {
    text-align: right;
}

.slot-msg.slot-msg--inline {
    display: none;
    margin-top: 2px;
}

/* Narrow list (phones, or the right column in landscape): text under the time. */
.slots-narrow .slot-msg.slot-msg--inline {
    display: -webkit-box;
    -webkit-line-clamp: 1;
}

#ApptGrid .k-master-row:hover td,
#ApptGrid .k-master-row.k-selected td {
    background: #faf9f6;
}

#ApptGrid .k-grouping-row td {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 16px;
    border-top: 1px solid var(--bk-border);
    background: var(--bk-surface-muted);
}

#ApptGrid .k-grouping-row .k-icon,
#ApptGrid .k-grouping-row .k-svg-icon {
    display: none;
}

/* Collapse (don't remove) Kendo's grouping column so cells stay aligned.
   1px, not 0: Safari's fixed table layout ignores a zero column width and
   shares the free space between this column and the time column, which
   pushed the times ~110px to the right on iPhone. */
#ApptGrid col.k-group-col {
    width: 1px !important;
}

#ApptGrid .k-group-cell {
    width: 1px;
    padding: 0 !important;
    border: 0 !important;
}

#ApptGrid .k-grouping-row p,
#ApptGrid .k-grouping-row .k-reset {
    margin: 0;
    font-size: inherit;
}

.slot-day {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: var(--bk-text);
}

.slot-day strong {
    font-size: 15px;
    font-weight: 700;
}

.slot-day span {
    color: var(--bk-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.slot-time {
    display: block;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.slot-end {
    display: block;
    color: var(--bk-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.slot-msg {
    display: -webkit-box;
    overflow: hidden;
    color: var(--bk-text-muted);
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.slot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--bk-accent);
    border-radius: 999px;
    background: var(--bk-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.slot-btn:hover {
    border-color: var(--bk-accent-hover);
    background: var(--bk-accent-hover);
}

.slot-btn:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus);
}

.slot-btn .bx {
    font-size: 17px;
}

.slot-btn--call {
    border-color: var(--bk-border-strong);
    background: var(--bk-surface);
    color: var(--bk-text);
}

.slot-btn--call:hover {
    border-color: var(--bk-accent);
    background: var(--bk-surface);
    color: var(--bk-accent);
}

.slots-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 16px 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff5e0;
    color: #92400e;
    font-size: 13px;
}

.slots-note[hidden] {
    display: none;
}

.slot-empty {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 40px 16px;
    color: var(--bk-text-muted);
    text-align: center;
}

.slot-empty .bx {
    color: var(--bk-accent);
    font-size: 34px;
}

.slot-empty strong {
    color: var(--bk-text);
    font-size: 16px;
}

.booking-footer {
    color: var(--bk-text-muted);
    font-size: 12px;
    text-align: center;
}

/* Back-to-top button */
.booking-scroll-top {
    position: fixed;
    z-index: 1000;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bk-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease;
}

.booking-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.booking-scroll-top:hover,
.booking-scroll-top:focus-visible {
    background: #000;
}

/* Booking window (Kendo window + wizard) */
.booking-window-glass {
    position: fixed !important;
    top: var(--booking-window-top, 16px) !important;
    left: var(--booking-window-left, 12px) !important;
    width: min(880px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: var(--bk-surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    transition: opacity .16s ease-out;
}

.booking-window-glass .k-window-titlebar {
    min-height: 52px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bk-border);
    background: var(--bk-surface);
    color: var(--bk-text);
    font: 600 16px/1.3 var(--bk-font);
}

.booking-window-glass .k-window-content {
    max-height: calc(100dvh - 80px);
    overflow: auto;
    padding: 16px;
    background: var(--bk-surface);
}

#window {
    color: var(--bk-text);
    font-size: 15px;
    line-height: 1.5;
}

#window p {
    font-size: inherit;
}

.booking-window-info {
    margin: 0 0 10px;
}

.booking-window-location {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.booking-window-info .booking-contact {
    margin-top: 2px;
}

#window .booking-window-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: -4px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bk-surface-muted);
    color: var(--bk-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.booking-window-note > .bx {
    color: var(--bk-accent);
    font-size: 18px;
}

.booking-window-note span {
    flex: 1 1 220px;
}

#window .booking-window-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--bk-accent);
    border-radius: 999px;
    background: var(--bk-surface);
    color: var(--bk-accent);
    font: 600 13px/1 var(--bk-font);
    cursor: pointer;
}

#window .booking-window-change:hover {
    background: var(--bk-accent-soft);
}

.booking-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.booking-selected li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bk-accent-soft);
    color: var(--bk-accent-hover);
    font-size: 14px;
    font-weight: 600;
}

.booking-selected .bx {
    font-size: 17px;
}

#wizard {
    overflow: visible;
    border: 1px solid var(--bk-border);
    border-radius: 14px;
    background: var(--bk-surface);
}

/* Stepper: equal columns, one connector line between each pair of steps
   (Kendo's own progress bar is hidden because it didn't line up). */
#wizard .k-stepper {
    padding: 16px 4px 12px;
    border-bottom: 1px solid var(--bk-border);
    background: var(--bk-surface);
}

#wizard .k-stepper .k-progressbar {
    display: none !important;
}

#wizard .k-step-list-horizontal {
    display: flex;
    margin: 0;
    padding: 0;
}

#wizard .k-step-list-horizontal .k-step {
    position: relative;
    flex: 1 1 0;
    max-width: none !important;
    margin: 0;
    padding: 0;
}

#wizard .k-step-list-horizontal .k-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(-50% + 22px);
    right: calc(50% + 22px);
    height: 2px;
    border-radius: 2px;
    background: var(--bk-border);
}

#wizard .k-step-list-horizontal .k-step.k-step-done::before,
#wizard .k-step-list-horizontal .k-step.k-step-current::before {
    background: var(--bk-accent);
}

#wizard .k-step-list-horizontal .k-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: none;
    margin: 0;
    padding: 0 2px;
    outline: none;
}

#wizard .k-step-indicator {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 2px solid var(--bk-border-strong);
    border-radius: 50%;
    background: var(--bk-surface);
    color: var(--bk-text-muted);
    font-size: 13px;
    font-weight: 700;
    transition: background-color .15s, border-color .15s;
}

#wizard .k-step-indicator::after {
    display: none;
}

#wizard .k-step.k-step-done .k-step-indicator {
    border-color: var(--bk-accent);
    background: var(--bk-accent);
    color: #fff;
}

#wizard .k-step.k-step-current .k-step-indicator {
    border-color: var(--bk-accent);
    background: var(--bk-accent);
    color: #fff;
    box-shadow: 0 0 0 4px var(--bk-accent-soft);
}

#wizard .k-step-link:focus-visible .k-step-indicator {
    box-shadow: var(--bk-focus);
}

#wizard .k-step-label {
    max-width: 100%;
    overflow: hidden;
    color: var(--bk-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wizard .k-step.k-step-current .k-step-label {
    color: var(--bk-text);
}

#wizard .k-step.k-step-done .k-step-label {
    color: var(--bk-accent);
}

#wizard .k-step-disabled .k-step-indicator,
#wizard .k-step.payment-gated .k-step-indicator {
    border-style: dashed;
}

#wizard .k-step.payment-gated {
    opacity: .42;
    pointer-events: none;
}

#wizard .k-wizard-step {
    padding: clamp(16px, 3vw, 28px);
}

#wizard .k-form-layout .k-d-grid,
#wizard .k-form-layout.k-d-grid {
    gap: 14px 12px !important;
}

#wizard .k-form-field {
    margin: 0 !important;
}

#wizard .k-form-field > .k-form-label {
    margin-bottom: 6px;
}

#wizard .k-form-fieldset {
    margin: 0 0 8px;
}

#wizard .k-form-legend {
    width: 100%;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bk-border);
    color: var(--bk-text);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

#wizard .k-form-label {
    color: var(--bk-text);
    font-size: 14px;
    font-weight: 600;
}

#wizard .k-label-optional {
    color: var(--bk-text-muted);
    font-weight: 400;
}

#wizard .k-form-hint {
    margin-top: 4px;
    color: var(--bk-text-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

#wizard .k-form-error {
    color: #b42318;
    font-size: 12.5px;
}



#wizard .k-wizard-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px clamp(16px, 3vw, 28px);
    border-top: 1px solid var(--bk-border);
    background: var(--bk-surface);
}

/* Keep Back / Next in view: pinned to the bottom of the scrolling window.
   The wizard's step wrappers must not clip, or sticky has no effect. */
#wizard .k-wizard-steps,
#wizard .k-wizard-step {
    overflow: visible;
}

#wizard .k-wizard-buttons {
    position: sticky;
    bottom: -16px;
    z-index: 5;
    margin-bottom: -16px;
    padding-bottom: 16px;
    box-shadow: 0 -8px 16px rgba(28, 35, 33, .06);
}

#wizard .k-wizard-buttons-left,
#wizard .k-wizard-buttons-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#wizard .k-wizard-buttons-right {
    margin-left: auto;
}

#wizard .k-wizard-pager {
    color: var(--bk-text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}



#wizard .k-wizard-buttons .k-button,
#wizard .k-button,
#window .k-button,
.booking-body-map .k-button,
#booking-body-map .k-button {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--bk-border-strong);
    border-radius: 999px;
    background: var(--bk-surface);
    box-shadow: none;
    color: var(--bk-text);
    font: 600 15px/1.2 var(--bk-font);
    text-transform: none;
    letter-spacing: normal;
}

#wizard .k-button:hover,
#window .k-button:hover {
    border-color: var(--bk-accent);
    background: var(--bk-surface);
    color: var(--bk-accent);
}

/* The last wizard button is always the forward action (Next / Done). */
#wizard .k-wizard-buttons .k-button:last-child,
#wizard .k-button.k-button-solid-primary {
    min-width: 150px;
    border-color: var(--bk-accent);
    background: var(--bk-accent);
    color: #fff;
}

#wizard .k-wizard-buttons .k-button:last-child:hover,
#wizard .k-button.k-button-solid-primary:hover {
    border-color: var(--bk-accent-hover);
    background: var(--bk-accent-hover);
    color: #fff;
}

#wizard .k-wizard-buttons .k-button:disabled {
    border-color: var(--bk-border) !important;
    background: var(--bk-surface-muted) !important;
    color: #a0a8a5 !important;
    cursor: not-allowed;
    opacity: 1;
}

/* Kendo pickers inside the wizard keep their own compact arrow buttons. */
#window .k-input-button,
#window .k-picker .k-input-button {
    min-width: 40px;
    min-height: 0 !important;
    padding: 0;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    background: transparent !important;
}

#wizard .k-checkbox {
    width: 18px;
    height: 18px;
    border-color: var(--bk-border-strong);
}

#wizard .k-checkbox:checked {
    border-color: var(--bk-accent);
    background-color: var(--bk-accent);
}

#wizard .k-editor {
    border-color: var(--bk-border);
    border-radius: 10px;
}

.k-editor-toolbar {
    display: none !important;
}

.k-editor .k-content {
    height: min(300px, 42vh);
}

/* Customize step: add-ons, amounts, total */
.booking-addons-field .k-multiselect {
    height: auto !important;
    min-height: 44px;
}

.booking-addons-field .k-multiselect.has-selection {
    min-height: 76px;
    align-items: flex-start;
}

.booking-addons-field .k-multiselect .k-chip-list {
    flex-wrap: wrap;
    align-content: flex-start;
}

/* Price fields have no label; drop them to line up with the field beside them. */
.booking-amount-label {
    margin-top: 27px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    padding: 0 4px;
    color: var(--bk-text);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.booking-guest-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bk-surface-muted);
    font-size: 14px;
    font-weight: 600;
}

.booking-guest-total output {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.booking-total-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    margin-top: 6px;
    padding: 12px 18px;
    border: 1px solid #bfe0da;
    border-radius: 12px;
    background: var(--bk-accent-soft);
    color: var(--bk-accent-hover);
    font-size: 15px;
    font-weight: 700;
}

.booking-total-field span::before {
    content: "Total for all guests";
}

.booking-total-field__value {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

/* Focus / avoid: field + "Body map" button */
.booking-area-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.booking-area-field .k-multiselect {
    flex: 1 1 auto;
    min-width: 0;
}

#window .booking-area-map-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
}

#window .booking-area-map-button .bx {
    color: var(--bk-accent);
    font-size: 20px;
}

/* Body map popup */
.bm-window {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}

/* Fit the popup to the screen; its content scrolls and the footer stays visible. */
.bm-window .k-window-content {
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
}

.bm-window .k-window-titlebar {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bk-border);
    background: var(--bk-surface);
    color: var(--bk-text);
    font: 600 16px/1.3 var(--bk-font);
}

#booking-body-map {
    --bm-focus: #15803d;
    --bm-focus-soft: rgba(22, 163, 74, .5);
    --bm-avoid: #b91c1c;
    --bm-avoid-soft: rgba(220, 38, 38, .5);
    padding: 16px 18px 18px;
    color: var(--bk-text);
    font-family: var(--bk-font);
}

.bm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bm-segment {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: var(--bk-surface-muted);
}

.bm-segment button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--bk-text-muted);
    font: 600 14px/1 var(--bk-font);
    cursor: pointer;
}

.bm-segment button.is-active {
    background: var(--bk-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    color: var(--bk-text);
}

.bm-segment button:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus);
}

.bm-segment--view button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.bm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bm-dot--focus {
    background: var(--bm-focus);
}

.bm-dot--avoid {
    background: var(--bm-avoid);
}

.bm-count:not(:empty) {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bk-text);
    color: #fff;
    font-size: 11px;
    box-sizing: border-box;
}

.bm-hint {
    margin: 10px 0 12px;
    color: var(--bk-text-muted);
    font-size: 13px;
}

.bm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
}

.booking-body-map__canvas {
    position: relative;
    height: min(56vh, 520px);
    min-height: 320px;
    padding: 12px 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid var(--bk-border);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 40%, #ffffff, #f3f1ec);
}

/* Same shape as the body images, centered in the canvas. */
.bm-figure {
    position: relative;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 971 / 1619;
    margin: 0 auto;
}

.booking-body-map__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.booking-body-map__canvas[data-view="front"] .booking-body-map__part[data-part-view="back"],
.booking-body-map__canvas[data-view="back"] .booking-body-map__part[data-part-view="front"] {
    display: none;
}

.booking-body-map__canvas[data-view="front"] .booking-body-map__image--back,
.booking-body-map__canvas[data-view="back"] .booking-body-map__image--front {
    display: none !important;
}

.booking-body-map__canvas[data-view="front"] .booking-body-map__image--front,
.booking-body-map__canvas[data-view="back"] .booking-body-map__image--back {
    display: block !important;
}

/* Tap zones are invisible until hovered or selected. */
.booking-body-map__part {
    position: absolute;
    z-index: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 45%;
    background: transparent;
    cursor: pointer;
    transition: background-color .12s, border-color .12s;
}

.booking-body-map__part:hover,
.booking-body-map__part:focus-visible {
    border-color: rgba(28, 35, 33, .35);
    border-style: dashed;
    outline: none;
}

.booking-body-map__part.is-focus {
    z-index: 2;
    border: 2px solid var(--bm-focus);
    background: var(--bm-focus-soft);
}

.booking-body-map__part.is-avoid {
    z-index: 2;
    border: 2px solid var(--bm-avoid);
    background: var(--bm-avoid-soft);
}

/* Areas not offered in the current list (e.g. "Face") can't be tapped. */
.booking-body-map__part.is-disabled {
    pointer-events: none;
}

.bm-list {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bm-list-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.bm-chips {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    max-height: min(52vh, 480px);
    overflow-y: auto;
}

.bm-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 12px 0 8px;
    border: 1px solid var(--bk-border-strong);
    border-radius: 999px;
    background: var(--bk-surface);
    color: var(--bk-text);
    font: 500 13px/1 var(--bk-font);
    cursor: pointer;
}

.bm-chip .bx {
    color: var(--bk-text-muted);
    font-size: 16px;
}

.bm-chip:hover {
    border-color: var(--bk-text-muted);
}

.bm-chip:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus);
}

#booking-body-map[data-mode="focus"] .bm-chip.is-selected {
    border-color: var(--bm-focus);
    background: #e8f5ec;
    color: #14532d;
}

#booking-body-map[data-mode="avoid"] .bm-chip.is-selected {
    border-color: var(--bm-avoid);
    background: #fdecec;
    color: #7f1d1d;
}

.bm-chip.is-selected .bx {
    color: inherit;
}

.booking-body-map__footer {
    position: sticky;
    bottom: -18px;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 16px -18px -18px;
    padding: 14px 18px;
    border-top: 1px solid var(--bk-border);
    background: var(--bk-surface);
}

#booking-body-map .booking-body-map__footer .k-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--bk-border-strong);
    border-radius: 999px;
    background: var(--bk-surface);
    color: var(--bk-text);
    font: 600 14px/1 var(--bk-font);
    text-transform: none;
}

#booking-body-map .booking-body-map__footer .k-button[data-action='apply'] {
    min-width: 140px;
    justify-content: center;
    border-color: var(--bk-accent);
    background: var(--bk-accent);
    color: #fff;
}

#booking-body-map .booking-body-map__footer .k-button[data-action='apply']:hover {
    background: var(--bk-accent-hover);
}

#booking-body-map .booking-body-map__footer .bx {
    font-size: 18px;
}

/* Payment and summary */
#square-booking-payment,
#booking-summary-details {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--bk-border);
    border-radius: 14px;
    background: var(--bk-surface);
    font-size: 15px;
    line-height: 1.6;
}

#booking-summary-details p {
    margin: 0 0 10px;
}

/* Confirm step: full booking review */
#booking-summary-details:empty {
    display: none;
}

#booking-summary-details,
#booking-summary-details * {
    font-family: var(--bk-font);
}

.review-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
}

.review-title .bx {
    color: var(--bk-accent);
    font-size: 22px;
}

.review-section {
    padding: 12px 0;
    border-top: 1px solid var(--bk-border);
}

.review-section h4 {
    margin: 0 0 8px;
    color: var(--bk-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.review-section dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.review-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    font-size: 14px;
}

.review-row dt {
    color: var(--bk-text-muted);
    font-weight: 500;
}

.review-row dd {
    margin: 0;
    color: var(--bk-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.review-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px;
    padding: 12px 16px;
    border: 1px solid #bfe0da;
    border-radius: 12px;
    background: var(--bk-accent-soft);
    color: var(--bk-accent-hover);
    font-weight: 700;
}

.review-total strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

#window .review-note {
    display: flex;
    gap: 8px;
    margin: 0;
    color: var(--bk-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.review-note .bx {
    flex: none;
    color: var(--bk-accent);
    font-size: 18px;
}

@media (max-width: 600px) {
    .review-row {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
        font-size: 13px;
    }
}

#square-booking-total {
    margin: 0 0 16px;
    color: var(--bk-text);
    font-size: 18px;
    font-weight: 700;
}

#square-card-container {
    min-height: 76px;
    margin-bottom: 14px;
}

.square-wallet-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px auto;
}

#window #square-booking-card {
    width: 100%;
    margin-top: 14px;
    border-color: var(--bk-accent);
    background: var(--bk-accent);
    color: #fff;
}

#window #square-booking-card:hover {
    border-color: var(--bk-accent-hover);
    background: var(--bk-accent-hover);
}

#window #square-booking-apple {
    border-color: #111;
    background: #111;
    color: #fff;
}

#window #square-booking-google {
    border-color: var(--bk-border-strong);
    background: #fff;
    color: #111;
}

#square-booking-message {
    min-height: 1.5rem;
    margin: 14px 0 0;
    color: var(--bk-text-muted);
    font-weight: 600;
}

/* Kendo alerts and the confirmation dialog */
.k-dialog {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}

.k-dialog .k-dialog-content {
    color: var(--bk-text);
    font-size: 15px;
    line-height: 1.55;
}

.k-dialog .k-dialog-actions .k-button,
.k-dialog .k-actions .k-button {
    min-height: 42px;
    border-radius: 999px;
    font: 600 14px/1.2 var(--bk-font);
    text-transform: none;
}

.booking-confirmed {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.booking-confirmed .bx {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: var(--bk-accent-soft);
    color: var(--bk-accent);
    font-size: 32px;
}

.booking-confirmed h2 {
    margin: 6px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.booking-confirmed p {
    margin: 0;
    color: var(--bk-text-muted);
}

.k-dialog-wrapper .k-dialog {
    position: unset !important;
    top: 50px !important;
}

/* Tablets */


/* Phones */
@media (max-width: 600px) {
    .booking-back-label {
        display: none;
    }

    .booking-back {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .booking-brand-mark {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .booking-day-nav {
        justify-content: space-between;
    }

    .availability-filters {
        gap: 10px;
    }

    .booking-day-nav .booking-day-nav-label {
        display: none;
    }

    .booking-day-nav button {
        padding: 0 10px;
    }

    #ApptGrid td {
        padding: 10px 12px;
    }

    .slot-msg {
        font-size: 12px;
    }

    .slot-msg.slot-msg--inline {
        display: -webkit-box;
        -webkit-line-clamp: 1;
    }

    .slot-btn {
        min-width: 0;
        padding: 0 14px;
    }

    .booking-window-glass .k-window-content {
        padding: 12px;
    }

    #wizard {
        border: 0;
        border-radius: 0;
    }

    #wizard .k-wizard-step {
        padding: 12px 2px;
    }

    /* Name, email, phone and therapist each get a full row on phones. */
    #wizard .k-grid-cols-2 > .k-form-field,
    #wizard .k-grid-cols-8 > .k-col-span-4 {
        grid-column: 1 / -1 !important;
    }

    #wizard .k-step-label {
        font-size: 11px;
    }


    #wizard .k-wizard-buttons {
        bottom: -12px;
        margin: 0 -12px -12px;
        padding: 10px 12px 12px;
    }

    /* Compact window header so the form starts higher. */
    .booking-window-info {
        margin-bottom: 6px;
    }

    .booking-window-location {
        font-size: 15px;
    }

    .booking-window-info .booking-contact {
        font-size: 12px;
    }

    .booking-selected {
        gap: 4px 6px;
        margin-bottom: 8px;
    }

    .booking-selected li {
        padding: 4px 9px;
        font-size: 12.5px;
    }

    #window .booking-window-note {
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    #window .booking-window-note span {
        display: none;
    }

    #window .booking-window-note::before {
        content: "Need a different therapist, length or guests?";
        flex: 1 1 auto;
    }

    #window .booking-window-note > .bx {
        order: -1;
    }

    /* Back / Next share the row; a lone Next fills it. */
    #wizard .k-wizard-buttons {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 10px;
    }

    #wizard .k-wizard-buttons .k-button,
    #wizard .k-wizard-buttons .k-button:last-child {
        min-width: 0;
    }

    .square-wallet-buttons {
        grid-template-columns: 1fr;
    }

    #window .booking-area-map-button span {
        display: none;
    }

    #wizard .k-wizard-pager {
        display: none;
    }

    #wizard .k-wizard-buttons-left,
    #wizard .k-wizard-buttons-right {
        display: contents;
    }

    #booking-body-map {
        padding: 12px;
    }

    .bm-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .booking-body-map__canvas {
        height: 42vh;
        min-height: 280px;
    }

    .bm-chips {
        max-height: none;
    }

    .booking-body-map__footer {
        position: sticky;
        bottom: -12px;
        margin: 12px -12px -12px;
        padding: 12px;
        background: var(--bk-surface);
    }

    #booking-body-map .booking-body-map__footer .k-button {
        flex: 1 1 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slot-btn,
    .booking-scroll-top,
    .booking-window-glass {
        transition: none;
    }
}

/* Dropdown lists opened from the filter chips and wizard (Kendo popups). */
.k-animation-container .k-popup {
    overflow: hidden;
    border: 1px solid var(--bk-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 35, 33, .16);
    font-family: var(--bk-font);
}

.k-animation-container .k-list-item {
    min-height: 40px;
    padding: 8px 14px;
    color: var(--bk-text);
    font-size: 14px;
}

.k-animation-container .k-list-item:hover {
    background: var(--bk-surface-muted);
}

.k-animation-container .k-list-item.k-selected {
    background: var(--bk-accent-soft);
    color: var(--bk-accent-hover);
    font-weight: 600;
}


/* ---------- Fit phones exactly, in both orientations ---------- */

/* Phones (portrait): the time list fills the screen below the header, so the
   footer would only add a scroll. */
@media (max-width: 600px) {
    .booking-footer {
        display: none;
    }

    .booking-slots {
        margin-bottom: 0;
    }

    .booking-main {
        padding-top: 10px;
    }
}

/* Short landscape screens (phones turned sideways): two columns. Location,
   filters and days on the left; the time list fills the right. */
@media (orientation: landscape) and (max-height: 540px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .booking {
        display: grid;
        grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
        height: 100vh;
        height: 100dvh;
    }

    .booking-header {
        position: relative;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        border-right: 1px solid var(--bk-border);
        border-bottom: 0;
        box-shadow: none;
    }

    .booking-header-inner {
        padding: 0 12px;
        padding-left: max(12px, env(safe-area-inset-left));
    }

    .booking-header-bar {
        min-height: 0;
        padding: 8px 0;
    }

    .booking-brand-mark {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .booking-title {
        font-size: 16px;
    }

    .booking-contact {
        font-size: 12px;
    }

    .booking-back-label {
        display: none;
    }

    .booking-back {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
    }

    .booking-filter-bar {
        padding-bottom: 8px;
    }

    /* The left column is phone-width: use the short pill labels. */
    .chip-long {
        display: none;
    }

    .chip-short {
        display: inline;
    }

    #resetFilters {
        display: none;
    }

    .booking-day-nav .filter-reset--nav {
        display: inline-flex;
        min-width: 34px;
        height: 34px;
    }

    .booking-filter-bar .availability-filters {
        gap: 6px;
    }

    .booking-days {
        padding-top: 6px;
    }

    .booking-main {
        width: auto;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 8px;
        padding-right: max(8px, env(safe-area-inset-right));
        overflow: hidden;
    }

    .booking-slots {
        margin: 0;
    }

    #slotsTitle {
        padding-top: 10px !important;
        font-size: 15px;
    }

    .booking-footer {
        display: none;
    }

    .booking-scroll-top {
        display: none;
    }

    /* Booking window: keep the form visible on a short screen. */
    .booking-window-glass .k-window-titlebar {
        min-height: 0;
        padding: 8px 16px;
        font-size: 15px;
    }

    .booking-window-glass .k-window-content {
        padding: 8px 12px;
    }

    .booking-window-info {
        display: none;
    }

    .booking-selected {
        margin-bottom: 6px;
    }

    .booking-selected li {
        padding: 3px 9px;
        font-size: 12.5px;
    }

    #window .booking-window-note {
        margin-bottom: 6px;
        padding: 6px 10px;
    }

    #window .booking-window-note span {
        display: none;
    }

    #window .booking-window-note::before {
        content: "Need a different therapist, length or guests?";
        flex: 1 1 auto;
    }

    #window .booking-window-note > .bx {
        order: -1;
    }

    #wizard {
        border: 0;
    }

    #wizard .k-stepper {
        padding: 6px 0 4px;
    }

    #wizard .k-step-indicator {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    #wizard .k-step-list-horizontal .k-step:not(:first-child)::before {
        top: 12px;
    }

    #wizard .k-step-label {
        font-size: 11px;
    }

    #wizard .k-wizard-step {
        padding: 10px 4px;
    }

    #wizard .k-wizard-buttons {
        bottom: -8px;
        margin: 0 -12px -8px;
        padding: 8px 12px;
    }

    #wizard .k-wizard-buttons .k-button {
        min-height: 40px;
    }
}

/* "Please complete: …" above the wizard buttons when Next is blocked. */
.booking-step-errors {
    position: sticky;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px clamp(16px, 3vw, 28px) 0;
    padding: 10px 14px;
    border: 1px solid #fecaca;
    box-shadow: 0 -4px 12px rgba(28, 35, 33, .08);
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.booking-step-errors .bx {
    flex: none;
    margin-top: 1px;
    font-size: 18px;
}

/* Review step: promo code and offers */
.review-coupon {
    display: grid;
    gap: 6px;
    margin: 12px 0 4px;
}

.review-coupon label {
    font-weight: 600;
}

.review-coupon-row {
    display: flex;
    gap: 8px;
}

.review-coupon-row input {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    text-transform: uppercase;
}

.review-coupon-message {
    margin: 0;
    font-size: .88rem;
}

.review-coupon-message[data-kind="error"] { color: #b91c1c; }
.review-coupon-message[data-kind="ok"] { color: #15803d; }

.review-offers {
    margin: 0;
}

.review-offers dd {
    color: #15803d;
    font-weight: 700;
}

/* /m: account link box */
.my-appts-account {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #e4e0d8;
    border-radius: 16px;
    background: #fff;
}

.my-appts-account > .bx {
    font-size: 2rem;
    color: #0f766e;
}

.my-appts-account h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.my-appts-account p {
    margin: 0 0 10px;
}

/* Length and service lists: Price and Members columns */
.price-row {
    display: grid;
    grid-template-columns: minmax(6rem, 1fr) 5.5rem 11rem;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 25rem;
    box-sizing: border-box;
}

/* Rows fill the list item (Kendo wraps them in .k-list-item-text), so the
   columns line up with the header. */
.k-list-item-text:has(> .price-row) {
    flex: 1 1 auto;
    min-width: 0;
}

.price-head {
    padding: 8px 14px;
    border-bottom: 1px solid #e7e5e4;
    color: #78716c;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.price-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-regular {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-member {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #065f46;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-head .price-member {
    color: #78716c;
}

.price-member .bx {
    color: #d97706;
}

.price-member.is-none,
.price-regular.is-none {
    color: #a8a29e;
    font-weight: 400;
}

@media (max-width: 480px) {
    /* Phones: narrower columns; the member cell may wrap to two lines. */
    .price-row {
        grid-template-columns: minmax(0, 1fr) 4rem 7rem;
        gap: 6px;
        min-width: 0;
        font-size: .88rem;
    }

    .price-member {
        flex-wrap: wrap;
        white-space: normal;
        text-align: right;
    }
}

/* Optional tip per guest */
.booking-tip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-tip-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #d6d3d1;
    border-radius: 12px;
    background: #fff;
    color: #1c1917;
    font: inherit;
    line-height: 1.15;
    cursor: pointer;
}

.booking-tip-chip small {
    color: #78716c;
    font-size: .75rem;
}

.booking-tip-chip:hover {
    border-color: #0f766e;
}

.booking-tip-chip.is-active {
    border-color: #0f766e;
    background: #ccfbf1;
    color: #134e4a;
    font-weight: 700;
}

.booking-tip-chip.is-active small {
    color: #134e4a;
}

.booking-tip-other {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.booking-tip-other[hidden] {
    display: none;
}

.booking-tip-other input {
    width: 7rem;
}

.booking-tip-hint {
    display: block;
    margin-top: 6px;
    color: #78716c;
    font-size: .8rem;
}

/* Slot results: Price (non-member) and Members columns, labelled in the cell */
.slot-price {
    display: inline-grid;
    gap: 1px;
    justify-items: end;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.slot-price small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #78716c;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.slot-price strong {
    color: #1c1917;
    font-size: 1rem;
    font-weight: 700;
}

.slot-price--member strong {
    color: #065f46;
}

.slot-price strong.is-none {
    color: #a8a29e;
    font-weight: 400;
}

.slot-price .bx {
    color: #d97706;
}

/* Phones: the member price under the price, not uppercase */
.slot-price .slot-price-member {
    color: #065f46;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    text-align: right;
}
