/* ============================================================
   Public booking page & wizard (per book_an_appointment mockup).
   ============================================================ */

.page-booking {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--grad-hero);
}

.bk-container {
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.bk-main { flex: 1; padding-bottom: var(--sp-8); }

/* ---- Header ---- */
.bk-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--sp-6);
}

.bk-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    min-height: 64px;
    padding-block: var(--sp-2);
    flex-wrap: wrap;
}

.bk-brand { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; flex: 1 1 auto; }
/* The logo stands alone, so it may use the width the name would have taken. */
.bk-brand__logo { max-height: 44px; max-width: min(320px, 60vw); width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); flex: none; }
.bk-brand__mark {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.bk-brand__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--c-ink);
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 640px) {
    .bk-brand__name { font-size: 1rem; }
    /* The switcher (LT EN PL RU) needs its row: a wide wordmark may have the
       rest of it, not more. */
    .bk-brand__logo { max-height: 36px; max-width: min(200px, 45vw); }
}

/* ---- Hero ---- */
.bk-hero { text-align: center; margin-bottom: var(--sp-6); }
.bk-hero__about { color: var(--c-text-soft); max-width: 560px; margin: 0 auto var(--sp-3); }
.bk-hero__facts { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.bk-hero__facts .chip { text-decoration: none; }

/* ---- Step dots ---- */
.bk-steps {
    display: flex;
    justify-content: center;
    gap: var(--sp-5);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-6);
}

.bk-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--c-text-faint);
    text-transform: uppercase;
}

.bk-steps__item span {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-surface-mid);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--t-med) var(--ease-spring);
}

.bk-steps__item.is-active { color: var(--c-action); font-weight: 600; }
.bk-steps__item.is-active span {
    background: var(--grad-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}
.bk-steps__item.is-done span { background: var(--c-success-tint); color: var(--c-success); }

@media (max-width: 560px) {
    .bk-steps { gap: var(--sp-3); }
    .bk-steps__item { font-size: 9px; }
}

/* ---- Steps ---- */
.bk-step { animation: fade-up var(--t-med) var(--ease-out); }
.bk-step__title { text-align: center; margin-bottom: var(--sp-5); }
.bk-category { color: var(--c-text-soft); font-size: var(--fs-body); margin: var(--sp-5) 0 var(--sp-3); }

.bk-step__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
}
.bk-step__actions .btn--primary:only-child,
.bk-step__actions .btn--primary:last-child { margin-left: auto; }

.bk-summary { font-weight: 600; color: var(--c-ink); font-family: var(--font-heading); }

/* ---- Services ---- */
.bk-services { display: flex; flex-direction: column; gap: var(--sp-3); }

.bk-service {
    position: relative;
    display: block;
    cursor: pointer;
}
.bk-service input { position: absolute; opacity: 0; }

.bk-service__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5);
    padding-right: 64px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.bk-service:hover .bk-service__body { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.bk-service.is-selected .bk-service__body { border-color: var(--c-action); background: linear-gradient(135deg, rgba(99,91,255,.04), rgba(168,85,247,.04)); }

.bk-service__name { font-weight: 600; color: var(--c-ink); font-size: var(--fs-body-lg); }
.bk-service__desc { color: var(--c-text-soft); font-size: var(--fs-sm); }
.bk-service__meta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-1); }
.bk-service__price { font-weight: 700; font-family: var(--font-heading); color: var(--c-ink); }

.bk-service__check {
    position: absolute;
    top: 50%; right: var(--sp-5);
    transform: translateY(-50%) scale(0.5);
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad-primary);
    color: #fff;
    opacity: 0;
    transition: all var(--t-med) var(--ease-spring);
}
.bk-service.is-selected .bk-service__check { opacity: 1; transform: translateY(-50%) scale(1); }

/* ---- Staff ---- */
.bk-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-3);
}

.bk-staff {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-5) var(--sp-3);
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.bk-staff:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--c-action); }
.bk-staff--any .avatar { background: var(--grad-primary-soft); color: var(--c-action); }
.bk-staff__name { font-weight: 600; color: var(--c-ink); }
.bk-staff__role { font-size: var(--fs-sm); color: var(--c-text-faint); }

/* Branch chooser at the top of step 1 (multi-location tenants). */
.bk-locpick { margin-bottom: var(--sp-5); }
.bk-locpick__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-3);
}
.bk-locpick__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.bk-locpick__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--c-action); }
.bk-locpick__item.is-active { border-color: var(--c-action); box-shadow: 0 0 0 3px var(--c-primary-tint); }
.bk-locpick__name { font-weight: 700; color: var(--c-ink); }
.bk-locpick__addr { font-size: var(--fs-sm); color: var(--c-text-faint); }

/* ---- Days strip ---- */
.bk-days {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-4);
    scrollbar-width: thin;
}

.bk-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
    padding: var(--sp-2) var(--sp-2);
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
    flex-shrink: 0;
}
.bk-day:disabled { opacity: 0.35; cursor: not-allowed; }
.bk-day:not(:disabled):hover { border-color: var(--c-action); }
.bk-day.is-active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.35);
}
.bk-day.is-active .bk-day__dow, .bk-day.is-active .bk-day__mon { color: rgba(255,255,255,0.8); }

.bk-day__dow { font-size: 11px; color: var(--c-text-faint); text-transform: uppercase; font-family: var(--font-mono); }
.bk-day__num { font-weight: 700; font-size: 1.2rem; font-family: var(--font-heading); }
.bk-day__mon { font-size: 11px; color: var(--c-text-faint); }

/* ---- Slots ---- */
.bk-slots__group { color: var(--c-text-faint); font-size: var(--fs-sm); margin: var(--sp-4) 0 var(--sp-2); font-weight: 500; }

.bk-slots__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: var(--sp-2);
}

.bk-slot {
    padding: 10px 8px;
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-ink);
    transition: all var(--t-fast);
}
.bk-slot:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.35);
}

.bk-noslots { text-align: center; color: var(--c-text-faint); padding: var(--sp-6); }

/* ---- Details / recap ---- */
.bk-details { max-width: 480px; margin-inline: auto; }

.bk-recap { padding: var(--sp-4); margin-bottom: var(--sp-5); }
.bk-recap__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    padding: 6px 0;
    font-size: var(--fs-sm);
}
.bk-recap__row--total {
    border-top: 1px solid var(--c-border);
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
    font-size: var(--fs-body);
}

/* ---- Marketing consent (matches the wizard, not the login page) ---- */
.bk-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-3) 0 var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    cursor: pointer;
    transition: border-color var(--t-fast, .15s) ease, background var(--t-fast, .15s) ease;
}
.bk-consent:hover { border-color: var(--c-action); }
.bk-consent:has(input:checked) {
    border-color: var(--c-action);
    background: linear-gradient(135deg, rgba(99,91,255,.05), rgba(168,85,247,.05));
}
.bk-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--c-action);
    cursor: pointer;
}

/* ---- Success ---- */
.bk-success {
    text-align: center;
    max-width: 480px;
    margin-inline: auto;
    padding: var(--sp-7) var(--sp-5);
}

.bk-success__mark { margin: 0 auto var(--sp-4); }

.bk-success__ring {
    stroke-dasharray: 185;
    stroke-dashoffset: 185;
    animation: draw 700ms var(--ease-out) forwards;
}
.bk-success__tick {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: draw 400ms 500ms var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.bk-success h2 { margin-bottom: var(--sp-2); }
.bk-success__actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-5);
}

/* ---- Team ---- */
.bk-team { margin-top: var(--sp-8); }
.bk-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-3);
}
.bk-team__member {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow-card);
}
.bk-team__name { font-weight: 600; color: var(--c-ink); }
.bk-team__role { font-size: var(--fs-sm); color: var(--c-text-faint); }

/* ---- Manage page ---- */
/* ---- A client's own visit (/b/{token}) ----
   One card read top to bottom: is it on (the status band), when (the date
   tile and the time), with whom and where, what and how much, and what can
   be done about it. Left-aligned throughout: the old card centred a date
   over rows that ran edge to edge, and nothing lined up with anything.
   The actions run loudest to quietest: confirm, calendar, move, and the
   cancel as a plain red link that asks again inside the page. */
.bk-manage { max-width: 560px; margin-inline: auto; }
.bk-visit { padding: 0; overflow: hidden; text-align: left; }

.bk-visit__status {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: var(--c-surface-low);
    border-bottom: 1px solid var(--c-border);
}
.bk-visit__status-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-text-soft);
    color: #fff;
}
.bk-visit__status-text { min-width: 0; }
.bk-visit__status-title { margin: 0; font-size: 1.125rem; line-height: 1.25; color: var(--c-ink); }
.bk-visit__status-sub { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--c-text-soft); }
.bk-visit--ok .bk-visit__status { background: var(--c-success-tint); border-bottom-color: color-mix(in srgb, var(--c-success) 22%, transparent); }
.bk-visit--ok .bk-visit__status-icon { background: var(--c-success); }
.bk-visit--wait .bk-visit__status { background: var(--c-warning-tint); border-bottom-color: color-mix(in srgb, var(--c-warning) 25%, transparent); }
.bk-visit--wait .bk-visit__status-icon { background: var(--c-warning); }
.bk-visit--off .bk-visit__status { background: var(--c-error-tint); border-bottom-color: color-mix(in srgb, var(--c-error) 20%, transparent); }
.bk-visit--off .bk-visit__status-icon { background: var(--c-error); }

/* When: the wizard's day chip, grown up, beside the time in the largest
   type on the page. A visit that is off or over loses the colour. */
.bk-visit__when { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); }
.bk-visit__tile {
    flex: 0 0 auto;
    width: 84px;
    padding: var(--sp-3) 0;
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.28);
}
.bk-visit__tile-dow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.bk-visit__tile-dow:empty { display: none; }
.bk-visit__tile-num { font-family: var(--font-heading); font-weight: 700; font-size: 2.25rem; line-height: 1; }
.bk-visit__tile-mon { font-family: var(--font-mono); font-size: 12px; opacity: 0.85; }
.bk-visit--off .bk-visit__tile,
.bk-visit.is-past .bk-visit__tile { background: var(--c-surface-mid); color: var(--c-text-soft); box-shadow: none; }
.bk-visit__when-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
.bk-visit__date { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-soft); }
.bk-visit__time {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.1;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
}
.bk-visit__time-dash { color: var(--c-text-faint); font-weight: 400; }
.bk-visit--off .bk-visit__time { color: var(--c-text-faint); text-decoration: line-through; text-decoration-thickness: 2px; }

/* With whom, where, how to reach them: an icon, a small label, the fact. */
.bk-visit__facts { padding: 0 var(--sp-5); display: flex; flex-direction: column; }
.bk-visit__row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--c-border); }
.bk-visit__avatar,
.bk-visit__row-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--c-surface-low);
    color: var(--c-text-soft);
    font-weight: 700;
}
.bk-visit__avatar { background: color-mix(in srgb, var(--c-action) 14%, var(--c-surface)); color: var(--c-action); }
.bk-visit__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-visit__row-text { min-width: 0; display: flex; flex-direction: column; }
.bk-visit__row-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-faint); }
.bk-visit__row-main { font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; }
.bk-visit__row-sub { font-size: var(--fs-sm); color: var(--c-text-soft); overflow-wrap: anywhere; }
.bk-visit__row-link { color: var(--c-action); text-decoration: none; }
.bk-visit__row-link:hover { text-decoration: underline; }
.bk-visit__row-note { font-size: var(--fs-sm); color: var(--c-text); white-space: pre-line; overflow-wrap: anywhere; }

/* What and how much: name, length, price in three columns that line up. */
.bk-visit__services { margin: var(--sp-2) var(--sp-5) 0; padding: var(--sp-4); border-radius: var(--r-md); background: var(--c-surface-low); }
.bk-visit__service { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--sp-3); align-items: baseline; padding: 6px 0; }
.bk-visit__service-name { font-weight: 500; overflow-wrap: anywhere; }
.bk-visit__service-meta { font-size: var(--fs-sm); color: var(--c-text-faint); white-space: nowrap; }
.bk-visit__service-price { min-width: 64px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-visit__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px dashed var(--c-border-strong);
}
.bk-visit__total strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* What can be done, loudest first. */
.bk-visit__actions { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.bk-visit__actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.bk-visit__group { display: flex; flex-direction: column; gap: var(--sp-2); }
.bk-visit__group-label { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-faint); }
.bk-visit__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
.bk-visit__pair .btn { min-width: 0; white-space: normal; }
.bk-visit__hint { margin: 0; font-size: var(--fs-sm); color: var(--c-text-faint); text-align: center; }
.bk-visit__nowrap { white-space: nowrap; }
.bk-visit__cancel {
    align-self: center;
    padding: var(--sp-2) var(--sp-3);
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    color: var(--c-error);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
}
.bk-visit__cancel:hover { background: var(--c-error-tint); }
.bk-visit__cancel:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.bk-visit__panel {
    padding: var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    animation: fade-up var(--t-med) var(--ease-out);
}
.bk-visit__panel--danger { border-color: color-mix(in srgb, var(--c-error) 35%, var(--c-border)); background: var(--c-error-tint); }
.bk-visit__panel-title { margin: 0 0 var(--sp-3); font-size: var(--fs-body); }
.bk-visit__panel .bk-days { margin-bottom: var(--sp-2); }
.bk-visit__confirm-move { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--c-border-strong); }
.bk-visit__confirm-text { margin: 0 0 var(--sp-3); font-weight: 600; text-align: center; }
.bk-visit__locked { display: flex; flex-direction: column; gap: var(--sp-3); }
/* A chosen time stays lit until the move is confirmed or dropped. */
.bk-slot.is-active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.35);
}
@media (max-width: 420px) {
    /* Two buttons side by side on a phone: a little less padding and type,
       so "Apple, Outlook" and "Taip, atšaukti" each keep to one line. */
    .bk-visit__pair .btn { padding-inline: var(--sp-2); font-size: var(--fs-sm); }
    .bk-visit__status, .bk-visit__when { padding-inline: var(--sp-4); }
    .bk-visit__when { gap: var(--sp-3); }
    .bk-visit__tile { width: 72px; }
    .bk-visit__facts, .bk-visit__actions { padding-inline: var(--sp-4); }
    .bk-visit__services { margin-inline: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
    .bk-visit__panel { animation: none; }
}

/* ---- Footer ---- */
/* "Powered by" and the privacy link side by side; on a narrow phone they
   wrap onto two centred lines instead of pushing the page sideways. */
.bk-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2) var(--sp-4);
    text-align: center;
    padding: var(--sp-5);
    font-size: var(--fs-sm);
}
.bk-footer a { color: var(--c-text-faint); }

/* ---- Save my details: turn a booking into a free client account ----
   A second card below the appointment card. Centred to match the manage
   card; the code-entry and the create-account states share these rules. */
.bk-save-identity {
    margin-top: var(--sp-4);
    text-align: left;
}
.bk-save-identity__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.bk-save-identity__body {
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
    margin: 0 0 var(--sp-4);
}
.bk-save-identity__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
}
/* The OTP box at a natural width beside its button; both stack on a phone. */
.bk-save-identity__form .cli-code { flex: 1 1 160px; max-width: 220px; }
.bk-save-identity__form .btn { flex: 0 0 auto; }
@media (max-width: 420px) {
    .bk-save-identity .btn { width: 100%; }
    .bk-save-identity__form .cli-code { max-width: none; }
}
.bk-save-identity__err {
    background: var(--c-error-tint);
    color: var(--c-error);
    border-radius: var(--r-md);
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-4);
}

.bk-day--holiday, .bk-day--sunday {
    border-color: color-mix(in srgb, var(--c-error) 45%, var(--c-border));
    background: color-mix(in srgb, var(--c-error) 7%, var(--c-surface));
}
.bk-day--holiday .bk-day__num, .bk-day--sunday .bk-day__num { color: var(--c-error); }

/* Online visit: the join affordance on the manage page (/b/{token}). */
.bk-online { margin: var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.bk-online .btn--block { width: 100%; }
.bk-online__pending { font-size: var(--fs-sm); margin: 0; }

/* ---- Language switcher (header) ---- */
.bk-langs { display: flex; gap: var(--sp-2); flex: none; }
.bk-langs__item {
    padding: var(--sp-1) var(--sp-2);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-soft);
    text-decoration: none;
}
.bk-langs__item:hover { color: var(--c-text); background: var(--c-surface-2, rgba(0, 0, 0, 0.04)); }
.bk-langs__item.is-active { color: var(--c-action); background: color-mix(in srgb, var(--c-action) 12%, transparent); }

/* ---- Demo salon banner: what this is + the language choice ---- */
.bk-demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-5);
}
.bk-demo__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sp-1) var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border: 1px dashed color-mix(in srgb, var(--c-action) 45%, var(--c-border));
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--c-action) 6%, var(--c-surface));
    font-size: var(--fs-sm);
    flex: 1 1 320px;
}
.bk-demo__text strong { color: var(--c-action); }
.bk-demo__inside { font-weight: 600; white-space: nowrap; }
/* ---- Verified number: the code panel that replaces the confirm button ---- */
.bk-verify { padding: var(--sp-4); margin-bottom: var(--sp-4); }
.bk-verify__title { margin: 0 0 var(--sp-2); font-size: var(--fs-md); }
.bk-verify__text { margin: 0 0 var(--sp-3); color: var(--c-text-soft); font-size: var(--fs-sm); }
.bk-verify__row { display: flex; gap: var(--sp-2); align-items: stretch; }
.bk-verify__row .btn { flex-shrink: 0; }
.bk-verify__code { flex: 1; min-width: 0; font-size: 1.35rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.bk-verify__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }

/* ---- Sign in with Google on the details step ---- */
/* The button above the form fills the name and the address from the
   account; a confirmed address shows locked, in the success tint, with the
   chip and a plain link to type another (which has no proof). */
.bk-google { margin-bottom: var(--sp-4); }
.bk-google .field__hint { margin-top: var(--sp-2); text-align: center; }
.bk-verified { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.bk-verified__other {
    background: none;
    border: 0;
    padding: 0;
    color: var(--c-text-soft);
    font: inherit;
    font-size: var(--fs-sm);
    text-decoration: underline;
    cursor: pointer;
}
.bk-verified__other:hover { color: var(--c-ink); }
.input.is-verified { background: var(--c-success-tint); border-color: var(--c-success); }
.bk-success__verified { color: var(--c-success); font-weight: 600; margin-top: var(--sp-2); }
