.page {
    min-height: 100dvh;
    padding-bottom: 96px;
}

/* Studio header */

.studio {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.studio__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: 'brand account lang' 'facts facts facts';
    align-items: center;
    gap: 8px 16px;
}

.studio__brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.studio__mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--on-ink);
    font: 400 17px/1 var(--font-display);
    letter-spacing: .02em;
}

.studio__name {
    font: 400 22px/1.1 var(--font-display);
    letter-spacing: -.005em;
}

.studio__facts {
    grid-area: facts;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    color: var(--muted);
    font-size: 13.5px;
}

.studio__facts a {
    color: inherit;
    text-underline-offset: 3px;
}

.studio__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

.lang {
    grid-area: lang;
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: var(--surface-sunken);
}

.lang__option {
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
}

.lang__option[aria-current='true'] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(16, 32, 30, .12);
}

/* Steps */

.steps {
    list-style: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px var(--gutter) 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.steps__item {
    flex: 1 0 auto;
    display: flex;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.steps__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
}

.steps__link:not(:disabled) {
    cursor: pointer;
}

.steps__link:not(:disabled):hover .steps__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.steps__link:focus-visible {
    outline: 2px solid var(--brand-deep);
    outline-offset: 3px;
    border-radius: 6px;
}

.steps__number {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.steps__item[aria-current='step'] {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.steps__item[aria-current='step'] .steps__number {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.steps__item.is-done {
    color: var(--brand-deep);
    border-bottom-color: var(--brand);
}

.steps__item.is-done .steps__number {
    background: var(--brand-wash);
    border-color: var(--brand);
}

/* Layout */

.layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px var(--gutter) 40px;
    display: grid;
    gap: 32px;
}

.flow {
    min-width: 0;
}

.panel__head {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 62ch;
}

.display {
    font: 400 clamp(28px, 4.2vw, 40px)/1.08 var(--font-display);
    letter-spacing: -.012em;
    text-wrap: balance;
}

/* Headings receive focus when a step opens; they are no controls, so no focus ring. */
.display[tabindex='-1']:focus {
    outline: none;
}

.lead {
    color: var(--ink-soft);
    font-size: 15.5px;
}

.back {
    justify-self: start;
    margin-bottom: 4px;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-deep);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-underline-offset: 3px;
}

.link-button:hover {
    text-decoration: underline;
}

/* Search & category chips */

.toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 calc(var(--gutter) * -1) 8px;
    padding: 10px var(--gutter) 12px;
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 10px;
}

.search {
    position: relative;
    display: block;
}

.search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    translate: 0 -50%;
    color: var(--muted);
}

.search__input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    /* 16px: below that, Safari on the iPhone zooms into the field and stays zoomed. */
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}

.search__input::placeholder {
    color: var(--muted);
}

.search__input:focus {
    outline: none;
    border-color: var(--brand-deep);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.chips::-webkit-scrollbar,
.steps::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: none;
    scroll-snap-align: start;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}

.chip:hover {
    border-color: var(--line-strong);
}

.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.search-empty {
    padding: 32px 0;
    color: var(--muted);
    text-align: center;
}

/* Categories & services */

.category {
    margin-top: 28px;
    /* Without JavaScript the chip links jump here; keep the heading clear of the sticky bar. */
    scroll-margin-top: 130px;
}

.category__head {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.category__title {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.category__text {
    color: var(--muted);
    font-size: 14px;
    max-width: 70ch;
}

.services {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
}

.service {
    border-top: 1px solid var(--line);
    transition: background-color .2s;
}

.service:first-child {
    border-top: 0;
}

.service.is-selected {
    background: var(--brand-wash);
}

.service__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'text add' 'meta add';
    gap: 6px 16px;
    align-items: center;
    padding: 16px 16px 16px 18px;
}

.service__text {
    grid-area: text;
    min-width: 0;
}

.service__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: pretty;
}

.service__description {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.service__description.is-expanded {
    -webkit-line-clamp: unset;
}

.service__more {
    margin-top: 2px;
    font-size: 13px;
}

.service__meta {
    grid-area: meta;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}

.service__price {
    font-weight: 700;
    font-size: 15px;
}

.service__duration {
    color: var(--muted);
    font-size: 14px;
}

.add {
    grid-area: add;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: background-color .18s, border-color .18s, transform .18s;
}

.add svg {
    width: 20px;
    height: 20px;
}

.add:hover {
    border-color: var(--ink);
}

.add:active {
    transform: scale(.94);
}

.add__check {
    display: none;
}

.add[aria-pressed='true'] {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand, var(--ink));
}

.add[aria-pressed='true'] .add__plus {
    display: none;
}

.add[aria-pressed='true'] .add__check {
    display: block;
}

/* Questions */

.questions {
    display: grid;
    /* The room below belongs inside the card: as a margin it would collapse out of it and leave the
       tint of a chosen service short of its lower edge. */
    margin: 0 18px;
    padding-bottom: 16px;
    border-top: 1px solid var(--line);
}

.question {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 14px 0 4px;
    border: 0;
}

.question__label {
    float: left;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.question__hint {
    flex: none;
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 600;
}

.question--optional .question__hint {
    color: var(--muted);
    font-weight: 500;
}

/* A question the customer skipped, marked once she wanted to move on. */
.question--open {
    margin: 0 -10px;
    padding: 12px 10px 6px;
    border-radius: var(--radius-s);
    background: var(--warning-wash);
}

.question--open .question__hint {
    color: var(--warning);
}

.question--open .choice {
    border-color: var(--warning);
}

.choices {
    clear: both;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
    gap: 8px;
}

.choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    min-height: 50px;
    padding: 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.choice:hover {
    border-color: var(--line-strong);
}

.choice__mark {
    grid-row: span 2;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}

.choice:has(input:checked) {
    border-color: var(--brand-deep);
    box-shadow: inset 0 0 0 1px var(--brand-deep);
}

.choice:has(input:checked) .choice__mark {
    border-color: var(--brand-deep);
    box-shadow: inset 0 0 0 4px var(--surface);
    background: var(--brand-deep);
}

/* Questions with several answers: square boxes that tick, not round dots. */
.choice:has(input[type='checkbox']) .choice__mark {
    position: relative;
    border-radius: 5px;
}

.choice:has(input[type='checkbox']:checked) .choice__mark {
    box-shadow: none;
}

.choice:has(input[type='checkbox']:checked) .choice__mark::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid var(--surface);
    border-width: 0 2px 2px 0;
    rotate: 45deg;
}

.choice:has(input:focus-visible) {
    outline: 2px solid var(--brand-deep);
    outline-offset: 2px;
}

.choice__label {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* Without a surcharge below it the label has the second row to itself and sits in the middle. */
.choice:not(:has(.choice__delta)) .choice__label {
    grid-row: span 2;
}

.choice__delta {
    grid-column: 2;
    font-size: 12.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.choice:has(input:checked) .choice__delta {
    color: var(--brand-deep);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-sunken);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge--required {
    background: var(--brand-wash);
    color: var(--brand-deep);
}

.badge--offer {
    background: var(--offer-wash);
    color: var(--offer);
    letter-spacing: 0;
}

/* Summary */

.summary {
    display: none;
}

.summary__card {
    padding: 22px;
    border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    display: grid;
    gap: 16px;
}

.summary__title {
    font: 400 24px/1.15 var(--font-display);
}

.summary__empty {
    color: var(--muted);
    font-size: 14.5px;
}

.summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.summary__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: start;
}

.summary__name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.summary__detail {
    color: var(--muted);
    font-size: 13px;
}

.summary__price {
    font-size: 14.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.summary__remove {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -3px -6px 0 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.summary__remove svg {
    width: 16px;
    height: 16px;
}

.summary__remove:hover {
    background: var(--surface-sunken);
    color: var(--ink);
}

.totals {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 6px;
}

.totals__row {
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
}

.totals__row dd {
    margin: 0;
}

.totals__row--strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.summary__hint {
    padding: 10px 12px;
    border-radius: var(--radius-s);
    background: var(--warning-wash);
    color: var(--warning);
    font-size: 13.5px;
    font-weight: 500;
}

.cta {
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--on-brand, var(--ink));
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .005em;
    cursor: pointer;
    transition: background-color .15s, transform .15s, opacity .15s;
}

.cta:hover:not(:disabled) {
    background: color-mix(in srgb, var(--brand) 88%, var(--ink));
}

.cta:active:not(:disabled) {
    transform: translateY(1px);
}

.cta:disabled {
    background: var(--surface-sunken);
    color: var(--muted);
    cursor: not-allowed;
}

.assurances {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.assurances li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
}

.assurances svg {
    width: 18px;
    height: 18px;
    color: var(--brand-deep);
}

/* The page a visitor meets when something fails (templates/bundles/TwigBundle/Exception). */
.error-page {
    display: grid;
    gap: 14px;
    max-width: 34rem;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 12vh var(--gutter) 40px;
    align-content: start;
}

.error-page__code {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

.error-page__back {
    justify-self: start;
    width: auto;
    margin-top: 8px;
    padding-inline: 28px;
    text-decoration: none;
}

/* Times could not be loaded: the message and the way to try again. */
.time-error:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

/* A deposit from a framed booking page: PayPal's tab may be blocked, the link never is. */
.payment-link:not([hidden]) {
    display: grid;
    gap: 12px;
}

.payment-link .cta,
.error-page__back {
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

/* Nobody offers the whole combination: the way back to change it. */
.staff-none:not([hidden]) {
    display: grid;
    gap: 8px;
    justify-items: start;
}

/* The reservation ran out: said at the button, with the way on. */
.hold-lost {
    display: grid;
    gap: 12px;
}

.hold-lost__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.hold-lost__actions .cta {
    width: auto;
    padding-inline: 22px;
}

/* What is being booked, above the booking form where the sidebar is hidden (phones, tablets). */
.recap {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
}

.recap__title {
    font-size: 15px;
    font-weight: 600;
}

.recap__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.recap__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.recap__list small {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
}

.recap__total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

/* Mobile dock */

.dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -18px rgba(16, 32, 30, .35);
    translate: 0 100%;
    transition: translate .3s cubic-bezier(.2, .8, .2, 1);
}

.dock.is-active {
    translate: 0 0;
}

/* While she types (searching a treatment, answering in words) the keyboard takes half the screen;
   the bar steps aside instead of covering what is left. */
.page:has(:is(input:not([type='checkbox'], [type='radio']), textarea):focus) .dock.is-active {
    translate: 0 100%;
}

.dock:has(.dock__hint:not([hidden])) {
    flex-wrap: wrap;
}

.dock__hint {
    flex-basis: 100%;
    margin: 0;
    color: var(--warning);
    font-size: 13px;
    font-weight: 500;
}

.dock__text {
    flex: 1;
    display: grid;
    min-width: 0;
}

.dock__count {
    font-size: 13px;
    color: var(--muted);
}

.dock__total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta--dock {
    flex: none;
    height: 48px;
    padding: 0 26px;
}

/* Staff */

.staff-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.staff-card {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.staff-card:hover {
    border-color: var(--line-strong);
}

.staff-card[aria-pressed='true'] {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.staff-card--any {
    background: var(--brand-wash);
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--avatar, var(--ink));
    color: var(--avatar-ink, #fff);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
}

.avatar--any {
    background: var(--ink);
    color: var(--on-ink);
}

.avatar--any svg {
    width: 22px;
    height: 22px;
}

.staff-card__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.staff-card__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 650;
}

.staff-card__meta {
    color: var(--muted);
    font-size: 13px;
}

.staff-card__bio {
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.4;
}

.staff-card__price {
    display: grid;
    justify-items: end;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.staff-card__price strong {
    font-size: 15px;
}

.staff-card__price span {
    color: var(--muted);
    font-size: 12.5px;
}

.note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.account-login + .note {
    text-align: center;
}

.note--success {
    padding: 12px 14px;
    border-radius: var(--radius-s);
    background: var(--brand-wash);
    color: var(--brand-deep);
}

.account-deleted {
    max-width: 1180px;
    margin: 14px auto 0;
    width: calc(100% - 2 * var(--gutter));
}

.note--warning {
    padding: 12px 14px;
    border-radius: var(--radius-s);
    background: var(--warning-wash);
    color: var(--warning);
}

/* Day picker & times */

.daybar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.daybar__nav {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.daybar__nav svg {
    width: 18px;
    height: 18px;
}

.daybar__nav:disabled {
    color: var(--line-strong);
    cursor: not-allowed;
}

.days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.days::-webkit-scrollbar {
    display: none;
}

.day {
    flex: none;
    scroll-snap-align: center;
    display: grid;
    justify-items: center;
    gap: 1px;
    width: 58px;
    padding: 9px 0 8px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.day:hover {
    border-color: var(--line-strong);
}

.day__weekday,
.day__month {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.day__number {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.day.is-empty {
    background: var(--surface-sunken);
    border-color: transparent;
    color: var(--muted);
}

.day.is-empty .day__number {
    text-decoration: line-through;
    text-decoration-color: var(--line-strong);
    text-decoration-thickness: 1.5px;
}

.day[aria-pressed='true'] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.day[aria-pressed='true'] .day__weekday,
.day[aria-pressed='true'] .day__month {
    color: var(--on-ink);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter span {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.filter input:checked + span {
    background: var(--brand-wash);
    border-color: var(--brand);
    color: var(--brand-deep);
    font-weight: 600;
}

.filter input:focus-visible + span {
    outline: 2px solid var(--brand-deep);
    outline-offset: 2px;
}

.slots-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
    min-height: 180px;
}

.slots-day {
    margin-bottom: 12px;
    font-weight: 650;
}

.slots-day:empty {
    display: none;
}

.slots,
.slots-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}

.slot {
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}

.slot:hover:not(:disabled) {
    border-color: var(--brand);
    background: var(--brand-wash);
}

/* The time a visitor picked on the studio's website. */
.slot--wished {
    border-color: var(--brand);
    background: var(--brand-wash);
    box-shadow: inset 0 0 0 1.5px var(--brand);
}

.wish-note {
    margin-bottom: 12px;
}

.slot:disabled {
    cursor: wait;
    opacity: .55;
}

.slot.is-loading {
    grid-column: span 2;
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    opacity: 1;
    font-size: 13.5px;
}

.slots-skeleton__item {
    height: 46px;
    border-radius: var(--radius-s);
    background: linear-gradient(90deg, var(--surface-sunken) 0%, #f7faf9 50%, var(--surface-sunken) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

.slots-empty {
    display: grid;
    justify-items: start;
    gap: 12px;
    color: var(--ink-soft);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.button-secondary:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
}

.button-secondary:disabled {
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

/* Reservation & details form */

.reservation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border-radius: var(--radius-m);
    background: var(--ink);
    color: #fff;
}

.reservation__when {
    display: grid;
    gap: 1px;
}

.reservation__date {
    color: var(--on-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.reservation__time {
    font: 400 26px/1.15 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.reservation__staff {
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
}

.countdown {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 13.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.countdown.is-urgent {
    background: var(--warning-wash);
    color: var(--warning);
}

.countdown.is-expired {
    background: #fde2e1;
    color: #9b2c2c;
}

.details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 14px;
    font-weight: 600;
}

.field__optional {
    color: var(--muted);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}

.field textarea {
    resize: vertical;
    min-height: 88px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-deep);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.field input[aria-invalid='true'] {
    border-color: #c53030;
}

.field__hint {
    color: var(--muted);
    font-size: 12.5px;
}

.field__hint--strong {
    color: var(--ink-soft);
    font-weight: 600;
}

.field__error {
    color: #b42318;
    font-size: 13px;
    font-weight: 500;
}

.checks {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.check input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--brand-deep);
}

.check strong {
    display: block;
    font-weight: 600;
}

.check small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.check--required {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}

/* Confirmation */

.done {
    display: grid;
    justify-items: start;
    gap: 14px;
    max-width: 620px;
}

.done__mark svg {
    width: 56px;
    height: 56px;
    color: var(--brand);
    animation: pop .45s cubic-bezier(.2, .9, .3, 1.3);
}

/* The tick takes the type colour of the studio's accent, so it shows on a dark accent too. */
.done__mark path {
    stroke: var(--on-brand, var(--ink));
}

.ticket {
    width: 100%;
    margin: 6px 0 0;
    display: grid;
    border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.ticket__main {
    padding: 22px;
}

.ticket__main dd {
    margin: 0;
    display: grid;
    gap: 2px;
}

.ticket__date {
    color: var(--brand-deep);
    font-weight: 600;
}

.ticket__time {
    font: 400 34px/1.1 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.ticket__staff {
    color: var(--ink-soft);
}

.ticket__reference {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-top: 1.5px dashed var(--line-strong);
    background: var(--surface-sunken);
}

.ticket__reference dt {
    color: var(--muted);
    font-size: 13px;
}

.ticket__reference dd {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
}

.done__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.cta--link {
    display: inline-grid;
    place-items: center;
    padding: 0 24px;
    text-decoration: none;
}

.summary__item--fixed {
    grid-template-columns: minmax(0, 1fr) auto;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

@keyframes pop {
    from {
        transform: scale(.6);
        opacity: 0;
    }
}

@media (min-width: 720px) {
    .details {
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
    }

    .field--wide {
        grid-column: 1 / -1;
    }

    .studio__inner {
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: 'brand facts account lang';
        padding: 16px 28px;
    }

    .studio__facts {
        justify-content: center;
    }

    .steps,
    .layout {
        padding-left: 28px;
        padding-right: 28px;
    }

    .toolbar {
        margin: 0 -28px 8px;
        padding: 12px 28px;
    }

    .service__row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas: 'text meta add';
        padding: 18px 18px 18px 22px;
    }

    .service__meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        min-width: 92px;
    }

    .questions {
        margin: 0 22px;
        padding-bottom: 18px;
    }
}

/*
 * Small controls keep their look but take at least 44 x 44 px of taps: an invisible area around
 * them, centred on the control, for fingers on a phone.
 */
.person__remove,
.back,
.service__more,
.lang__option,
.filter span,
.chip,
.studio__account {
    position: relative;
}

.person__remove::after,
.photos__remove::after,
.back::after,
.service__more::after,
.lang__option::after,
.filter span::after,
.chip::after,
.studio__account::after,
.steps__link:not(:disabled)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    translate: -50% -50%;
}

@media (min-width: 1024px) {
    .page {
        padding-bottom: 0;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 40px;
        align-items: start;
    }

    .summary {
        display: block;
        position: sticky;
        top: 20px;
    }

    .recap {
        display: none;
    }

    .dock {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Manage booking */

.manage {
    display: grid;
    justify-items: start;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.manage--wide {
    max-width: 860px;
}

.manage__status {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-wash);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
}

.manage__status--requested {
    background: var(--warning-wash);
    color: var(--warning);
}

.manage__status--cancelled,
.manage__status--no_show {
    background: var(--surface-sunken);
    color: var(--muted);
}

.ticket--cancelled .ticket__time {
    text-decoration: line-through;
    color: var(--muted);
}

.ticket__items {
    margin-top: 14px !important;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    gap: 8px !important;
}

.ticket__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-variant-numeric: tabular-nums;
}

.manage__actions {
    display: grid;
    justify-items: start;
    gap: 14px;
    width: 100%;
}

.manage__cancel summary {
    list-style: none;
    display: inline-block;
}

.manage__cancel summary::-webkit-details-marker {
    display: none;
}

.manage__cancel form {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 12px;
    padding: 16px;
    border-radius: var(--radius-m);
    background: var(--surface-sunken);
}

.button-secondary--danger {
    border-color: #b42318;
    color: #b42318;
}

.button-secondary--danger:hover:not(:disabled) {
    background: #b42318;
    color: #fff;
}

.manage__help {
    color: var(--muted);
    font-size: 14px;
}

.reschedule__nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.reschedule {
    display: grid;
    gap: 18px;
    width: 100%;
}

.reschedule__date {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.reschedule__slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}

.reschedule__day {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.slot--choice {
    display: grid;
    place-items: center;
}

.slot--choice:has(input:checked) {
    border-color: var(--brand-deep);
    background: var(--brand-deep);
    color: var(--on-brand);
}

.slot--choice:has(input:focus-visible) {
    outline: 2px solid var(--brand-deep);
    outline-offset: 2px;
}

/* Appears once a time is picked and stays in reach at the bottom of the screen. */
.reschedule__confirm {
    position: sticky;
    bottom: 0;
    display: none;
    gap: 8px;
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--ground);
    border-top: 1px solid var(--line);
}

.reschedule:has(input[name="start"]:checked) .reschedule__confirm {
    display: grid;
}

.muted {
    color: var(--muted);
}

/* Customer account */

.account-login {
    display: grid;
    gap: 14px;
    width: 100%;
}

.account-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.account-section {
    display: grid;
    gap: 12px;
    width: 100%;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

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

.account-section__title {
    font: 400 22px/1.2 var(--font-display);
}

.cta--small {
    height: 42px;
    font-size: 14.5px;
}

.visit {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.visit:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-float);
}

.visit__date {
    display: grid;
}

.visit__day {
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 600;
}

.visit__time {
    font: 400 24px/1.1 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.visit__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.visit__go {
    color: var(--muted);
    font-size: 20px;
}

.history-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-list li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14.5px;
}

/* On a phone four columns leave the treatments a sliver: date and status above, the treatments below. */
@media (max-width: 559px) {
    .history-list li {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            'date status'
            'services rebook';
        gap: 2px 12px;
        padding: 11px 0;
    }

    .history-list__date {
        grid-area: date;
        font-size: 13px;
    }

    .history-list__status {
        grid-area: status;
        font-size: 13px;
        text-align: end;
    }

    .history-list__services {
        grid-area: services;
    }

    .history-list__rebook {
        grid-area: rebook;
        align-self: end;
    }
}

.studio__account {
    grid-area: account;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.studio__account-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* Narrow screens: the account link becomes an icon, so long labels (vi, ko) never squeeze the name. */
@media (max-width: 559px) {
    /* Only the step the visitor is on says its name, so the row fits instead of being cut off. */
    .steps__item:not([aria-current='step']) .steps__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    :root {
        --gutter: 13px;
    }

    .steps {
        padding-top: 14px;
    }

    /* The cards keep the text closer to their edge as well, so a phone line holds more words. */
    .service__row {
        padding: 14px 12px 14px 14px;
    }

    .dock {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* A phone shows one screen at a time: less headline, sooner at the treatments. The step the
       visitor is on already says "Leistungen", so the heading of the first step only stays for
       screen readers. */
    .panel[data-step='1'] > .panel__head > .display {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .display {
        font-size: 25px;
    }

    .people {
        margin-top: 4px;
    }

    .lead {
        font-size: 14.5px;
    }

    .panel__head {
        gap: 6px;
        margin-bottom: 14px;
    }

    .toolbar {
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .category__head {
        margin-bottom: 8px;
    }

    /* Framed in the studio's own website, which carries its name right above: no second header and
       no bar of its own colour around the languages, just a quiet row over the steps. */
    .page--embedded .studio {
        background: none;
        border-bottom: 0;
    }

    .page--embedded .studio__brand {
        display: none;
    }

    .page--embedded .studio__inner {
        padding: 10px var(--gutter) 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'lang';
        justify-items: end;
    }

    .page--embedded .lang {
        background: none;
        padding: 0;
        gap: 2px;
    }

    .page--embedded .lang__option {
        padding: 4px 8px;
    }

    .page--embedded .lang__option[aria-current='true'] {
        background: var(--surface);
    }

    .page--embedded .display {
        font-size: 21px;
    }

    /* Every step keeps the same share of the line, so the row reads as one bar. */
    .steps__item {
        flex: 1 1 0;
        min-width: 0;
    }

    .steps__item[aria-current='step'] {
        flex: 2 1 0;
    }

    .steps__label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* A long category text would push the treatments off the screen. */
    .category__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .studio__account {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 50%;
    }

    .studio__account-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .studio__name {
        font-size: 19px;
    }

    .studio__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: 'brand account' 'lang lang' 'facts facts';
    }

    .studio__inner .lang {
        justify-self: start;
    }
}

.studio__account:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Waitlist */

.wish {
    display: grid;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--radius-m);
    background: var(--surface);
    border: 1px solid var(--line);
    list-style: none;
}

.waitlist-form {
    width: 100%;
}

.field--pills > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.field--pills > div > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.field--pills > div > label {
    padding: 7px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.field--pills > div > input:checked + label {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.field--pills > div > input:focus-visible + label {
    outline: 2px solid var(--brand-deep);
}

.waitlist-hint {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
    color: var(--ink-soft);
    font-size: 14.5px;
}

.waitlist-hint a {
    color: var(--brand-deep);
    font-weight: 650;
}

.ticket__person {
    margin-top: 6px;
    color: var(--brand-deep);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Group bookings */

.people {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.person {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 650;
}

.person.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.person__choose,
.person__remove {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.person__choose {
    padding: 7px 14px;
}

.person__remove {
    padding: 7px 12px 7px 0;
    opacity: .7;
}

.person--add {
    padding: 7px 14px;
    border-style: dashed;
    color: var(--ink-soft);
    cursor: pointer;
}

.people:not(.is-group) .person--add {
    border-color: transparent;
    padding-left: 0;
    color: var(--brand-deep);
}

.summary__person {
    padding: 10px 0 2px;
    color: var(--brand-deep);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    list-style: none;
}

.guests {
    display: grid;
    gap: 12px;
}

@media (min-width: 720px) {
    .guests {
        grid-template-columns: 1fr 1fr;
    }
}

/* Embedded on the studio's website */

.page--embedded {
    position: relative;
    min-height: 0;
    padding-bottom: 24px;
}

.page--embedded .studio__facts,
.page--embedded .studio__account {
    display: none;
}

.page--embedded .studio__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand lang';
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Legal */

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 24px 20px 40px;
    font-size: 13px;
}

.legal-links a {
    color: var(--muted);
}

.legal__text {
    max-width: 68ch;
    color: var(--ink-soft);
    line-height: 1.65;
}

.legal__text h2 {
    margin: 26px 0 8px;
    color: var(--ink);
    font: 400 22px/1.2 var(--font-display);
}

.legal__text p,
.legal__text ul {
    margin: 0 0 12px;
}

/* Group bookings: a staff member per person */

.group-staff {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.group-staff__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.group-staff__people {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.group-person {
    display: grid;
    flex: none;
    gap: 1px;
    min-width: 132px;
    padding: 9px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.group-person:hover {
    border-color: var(--line-strong);
}

.group-person[aria-pressed='true'] {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.group-person__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-deep);
}

.group-person__value {
    font-size: 14.5px;
    font-weight: 600;
}

.group-person.is-open .group-person__value {
    color: var(--muted);
    font-weight: 500;
}

.timing {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.timing__title {
    float: left;
    width: 100%;
    padding: 0;
    font-size: 15px;
    font-weight: 650;
}

.timing .choices {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.choice.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.history-list__rebook {
    color: var(--brand-deep);
    font-weight: 600;
    white-space: nowrap;
}

/* Inspiration photos */

.photos {
    display: grid;
    gap: 8px;
}

.photos__label {
    font-size: 14px;
    font-weight: 600;
}

.photos__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photos__list:empty {
    display: none;
}

.photos__item {
    position: relative;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface-sunken);
}

.photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photos__item.is-uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 13px, color-mix(in srgb, var(--surface) 55%, transparent) 14px),
        conic-gradient(var(--brand-deep) 0 25%, transparent 25% 100%) center / 30px 30px no-repeat;
    animation: photo-spin 1s linear infinite;
}

@keyframes photo-spin {
    to { rotate: 360deg; }
}

.photos__item--kept {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.photos__item--kept svg {
    width: 28px;
    height: 28px;
}

.photos__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 75%, transparent);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.photos__add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    padding: 9px 16px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.photos__add svg {
    width: 18px;
    height: 18px;
}

.photos__add:hover,
.photos__add:has(input:focus-visible) {
    border-color: var(--brand-deep);
    color: var(--brand-deep);
}

@media (prefers-reduced-motion: reduce) {
    .photos__item.is-uploading::after {
        animation: none;
    }
}

/* Gift vouchers */

.legal-links__gift {
    color: var(--brand-deep) !important;
    font-weight: 600;
}

.voucher-shop {
    display: grid;
    gap: 28px;
    width: 100%;
}

.voucher-shop__intro {
    display: grid;
    gap: 14px;
    align-content: start;
}

@media (min-width: 900px) {
    .voucher-shop {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

.voucher-amounts {
    margin: 0;
    padding: 0;
    border: 0;
}

.voucher-amounts legend {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.voucher-amounts .choices {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.choice--amount {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 54px;
}

.choice--amount .choice__label {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.gift-card {
    position: relative;
    display: grid;
    gap: 6px;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1.586;
    padding: 26px 28px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 60%),
        linear-gradient(160deg, #173330, #0e1d1b);
    color: #fff;
    box-shadow: 0 24px 50px -24px rgba(16, 32, 30, .55);
}

.gift-card__studio {
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gift-card__label {
    font: 400 22px/1.1 var(--font-display);
}

.gift-card__for {
    color: #c9f3ee;
    font-size: 14.5px;
}

.gift-card__amount {
    margin-top: auto;
    font: 400 clamp(40px, 9vw, 58px)/1 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.gift-card__message {
    margin: 0;
    color: #c9f3ee;
    font-size: 14px;
}

.gift-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.gift-card__code-label,
.gift-card__valid {
    display: block;
    color: #8fa5a1;
    font-size: 11.5px;
}

.gift-card__code {
    display: block;
    font: 700 19px/1.3 ui-monospace, 'SFMono-Regular', Menlo, monospace;
    letter-spacing: .12em;
}

.gift-card__qr {
    flex: none;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
}

.gift-card--preview {
    max-width: 380px;
    transform: rotate(-3deg);
}

.gift-card--closed {
    filter: grayscale(.8);
    opacity: .75;
}

.voucher-actions .cta {
    padding: 0 26px;
}

.voucher-actions .button-secondary {
    min-height: 52px;
    padding: 0 24px;
}

.voucher-info {
    display: grid;
    gap: 10px;
    max-width: 460px;
}

@media print {
    .studio,
    .legal-links,
    .voucher-actions,
    .voucher-info .note {
        display: none !important;
    }

    body,
    .page {
        background: #fff !important;
    }

    .gift-card {
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Reviews: rating an appointment and what the booking page shows */

.manage--review {
    justify-items: stretch;
}

.manage--review > .manage__status,
.manage--review > p:has(.link-button) {
    justify-self: start;
}

.review-form {
    display: grid;
    gap: 20px;
}

.review-form__label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.stars-input {
    margin: 0;
    padding: 0;
    border: 0;
}

.stars-input__row {
    display: flex;
    gap: 6px;
}

.stars-input__star {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-s);
    cursor: pointer;
}

.stars-input__star input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.stars-input__star svg {
    width: 42px;
    height: 42px;
    fill: transparent;
    stroke: var(--line-strong);
    stroke-width: 1.4;
    stroke-linejoin: round;
    transition: fill .12s, stroke .12s, transform .12s;
}

/* A star is lit when it or a later star is chosen, and while pointing at it or a later star. */
.stars-input__star:has(input:checked) svg,
.stars-input__star:has(~ .stars-input__star input:checked) svg,
.stars-input__row:hover .stars-input__star:has(~ .stars-input__star:hover) svg,
.stars-input__row:hover .stars-input__star:hover svg {
    fill: var(--star);
    stroke: var(--star);
}

.stars-input__row:hover .stars-input__star:hover ~ .stars-input__star svg {
    fill: transparent;
    stroke: var(--line-strong);
}

.stars-input__star:hover svg {
    transform: scale(1.08);
}

.stars-input__star:has(input:focus-visible) {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-deep);
}

.stars-input__scale {
    display: flex;
    justify-content: space-between;
    max-width: 284px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
}

.stars-display {
    width: fit-content;
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    background: linear-gradient(90deg, var(--star) var(--percent), var(--line-strong) var(--percent));
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.review-copy {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.review-copy__text {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    background: var(--brand-wash);
    white-space: pre-line;
}

.reviews {
    max-width: 1180px;
    margin: 32px auto 0;
    padding: 0 20px;
}

.reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 16px;
}

.reviews__title {
    font: 400 28px/1.15 var(--font-display);
}

.reviews__score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}

.reviews__average {
    font: 400 34px/1 var(--font-display);
}

.reviews__score .stars-display {
    font-size: 20px;
}

.reviews__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-card {
    display: grid;
    /* Stars on top, the name on the bottom edge, so names line up across a row of cards. */
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
}

.review-card__text {
    margin: 0;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.review-card__meta {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.reviews__disclosure {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.studio__rating {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.studio__rating:hover {
    text-decoration: underline;
}

.ticket__notes-title {
    margin-top: 10px;
    color: var(--warning);
    font-size: 13px;
    font-weight: 700;
}

.ticket__notes {
    margin: 2px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-s);
    background: var(--warning-wash);
    font-size: 14px;
}

.ticket__notes p {
    margin: 0;
}

.ticket__notes p + p {
    margin-top: 6px;
}

.birthday-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.birthday-field legend {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.birthday-field__inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 8px;
}

.birthday-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
}

.birthday-field select:focus {
    outline: none;
    border-color: var(--brand-deep);
    box-shadow: 0 0 0 3px var(--brand-ring);
}
