@import url("./base.css");

html:has(.customer-app) {
    scroll-behavior: smooth;
}

.customer-app {
    --app-width: 480px;
    --section-pad: 18px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.app-shell {
    inline-size: min(100%, var(--app-width));
    min-block-size: 100dvh;
    margin-inline: auto;
}

.app-head {
    display: flex;
    min-block-size: 60px;
    padding: max(8px, env(safe-area-inset-top, 0px)) var(--section-pad) 8px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    color: var(--rose);
    font: italic 700 28px/1 var(--serif);
    letter-spacing: .5px;
    text-decoration: none;
}

.brand small, .brand-place {
    display: block;
    margin-block-start: 3px;
    color: var(--ink-2);
    font: 600 9px/1.1 var(--font);
    letter-spacing: 4px;
}

.lang-switch {
    display: flex;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.lang-switch button {
    min-inline-size: 44px;
    min-block-size: 44px;
    border-radius: inherit;
    font-size: 12px;
}

.lang-switch button[aria-pressed="true"], .lang-switch .on {
    background: var(--rose);
    color: #fff;
}

.nav {
    position: sticky;
    z-index: 5;
    inset-block-start: 0;
    display: flex;
    padding-inline: 10px;
    border-block-end: 1px solid var(--line);
    background: rgb(255 246 248 / 96%);
}

.nav a {
    position: relative;
    display: grid;
    flex: 1 1 0;
    min-inline-size: 0;
    min-block-size: 44px;
    padding: 8px 4px;
    align-items: center;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.nav a[aria-current="location"], .nav a.on {
    color: var(--rose);
}

.nav a[aria-current="location"]::after, .nav a.on::after {
    position: absolute;
    inset: auto 30% 0;
    block-size: 3px;
    border-radius: 2px;
    background: var(--rose);
    content: "";
}

#book, #treatments, #promos {
    scroll-margin-block-start: 48px;
}

.sec, .book {
    padding: 16px var(--section-pad);
}

.sec-h {
    display: flex;
    margin-block-end: 12px;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.sec-h h2, .sec-h h3 {
    color: var(--ink-2);
    font-size: 18px;
}

.sec-h > span, .sec-h > p {
    color: var(--muted);
    font-size: 12px;
    text-align: end;
}

.footer {
    margin-block-start: 6px;
    padding: 18px var(--section-pad) calc(18px + var(--safe-bottom));
    border-block-start: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.footer b, .footer strong {
    color: var(--ink-2);
}

.seg {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.seg button {
    flex: 1 1 0;
    min-block-size: 52px;
    padding: 9px 6px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 700;
}

.seg button small {
    display: block;
    margin-block-start: 1px;
    font-size: 11px;
    font-weight: 400;
}

.seg .on {
    background: var(--rose);
    color: #fff;
}

.seg .on.m {
    background: var(--mobile);
}

.ther-h {
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.ther {
    display: flex;
    gap: 10px;
}

.ther-many {
    overflow-x: auto;
    margin-inline: calc(-1 * var(--section-pad));
    padding: 3px var(--section-pad);
    scroll-padding-inline: var(--section-pad);
    scrollbar-width: none;
}

.tp {
    display: flex;
    flex: 1 1 0;
    min-inline-size: 0;
    min-block-size: 60px;
    padding: 9px 10px;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-align: start;
    overflow-wrap: anywhere;
}

.ther-many .tp {
    flex: 0 0 156px;
}

.tp b, .tp strong {
    display: block;
    font-size: 15px;
}

.tp small {
    display: block;
    color: var(--ok);
    font-size: 11px;
}

.tp.on {
    border-color: var(--rose);
    background: var(--rose-soft2);
    box-shadow: inset 0 0 0 2px rgb(229 51 107 / 12%);
}

.av {
    display: grid;
    flex: none;
    inline-size: 38px;
    block-size: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #F7A1BE, var(--rose));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.av2 {
    background: linear-gradient(135deg, #F6C28B, var(--mobile));
}

.av img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.dates {
    display: flex;
    overflow-x: auto;
    margin: 11px calc(-1 * var(--section-pad)) 0;
    padding: 3px var(--section-pad);
    gap: 8px;
    scroll-padding-inline: var(--section-pad);
    scrollbar-width: none;
}

.date {
    flex: 0 0 auto;
    min-inline-size: 62px;
    min-block-size: 70px;
    padding: 7px 5px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.date b {
    display: block;
    font-size: 13px;
}

.date i {
    display: block;
    margin-block: 1px;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
}

.date em {
    display: block;
    color: var(--ok);
    font-size: 10.5px;
    font-style: normal;
}

.date.tue em {
    color: #A35A12;
}

.date.full, .date:disabled, .date.full em, .date:disabled em {
    background: var(--disabled-bg);
    color: var(--disabled);
}

.date.on {
    border-color: var(--rose);
    background: var(--rose);
    color: #fff;
}

.date.on em {
    background: transparent;
    color: #fff;
}

.slots-h {
    display: flex;
    margin: 13px 0 8px;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.slots-h b {
    color: var(--ink);
}

.slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.slot {
    display: flex;
    min-block-size: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.slot small {
    margin-block-start: 2px;
    color: var(--ok);
    font-size: 10px;
    font-weight: 500;
}

.slot.off, .slot:disabled {
    border-color: transparent;
    background: var(--disabled-bg);
    color: var(--disabled);
    text-decoration: line-through;
}

.slot.off small, .slot:disabled small {
    display: none;
}

.slot.on {
    border-color: var(--rose);
    background: var(--rose);
    color: #fff;
}

.slot.on small {
    color: #fff;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-block-start: 10px;
    color: var(--muted);
    font-size: 11px;
}

.legend i {
    display: inline-block;
    inline-size: 10px;
    block-size: 10px;
    margin-inline-end: 4px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    vertical-align: -1px;
}

.legend i.off {
    border-color: transparent;
    background: var(--disabled-bg);
}

.booking-empty, .empty-state {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--muted);
    font-size: 14px;
}

.tue-notice {
    margin-block-start: 10px;
    border-color: #F2CFA6;
    background: var(--mobile-soft);
}

.tue-notice button, .booking-retry {
    display: flex;
    min-block-size: 44px;
    margin-block-start: 8px;
    font-size: 13px;
}

.bottom-bar {
    position: sticky;
    z-index: 7;
    inset-block-end: 0;
    margin: 12px calc(-1 * var(--section-pad)) -16px;
    padding: 12px var(--section-pad) calc(12px + var(--safe-bottom));
    border-block-start: 1px solid var(--line);
    background: #fff;
}

.bottom-bar .sum {
    margin-block-end: 8px;
    color: var(--muted);
    font-size: 13px;
}

.bottom-bar .sum b {
    color: var(--ink);
}

.bottom-bar .btn, .sheet > .btn, .booking-actions > .btn {
    inline-size: 100%;
}

.wa-float {
    position: fixed;
    z-index: 8;
    inset-inline-end: max(16px, calc((100% - var(--app-width)) / 2 + 16px));
    inset-block-end: calc(16px + var(--safe-bottom));
    display: flex;
    inline-size: 54px;
    block-size: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wa);
    box-shadow: 0 6px 16px rgb(37 211 102 / 40%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body:has(#site-nav a[href="#book"][aria-current]):has(#book .bottom-bar:not([hidden])) .wa-float {
    inset-block-end: calc(100px + var(--safe-bottom));
}

body:has(#booking-flow:not([hidden])) .wa-float {
    display: none;
}

body:has(dialog[open]) {
    overflow: hidden;
}

#booking-overlay {
    position: fixed;
    inset: auto 0 0;
    inline-size: min(100%, var(--app-width));
    max-inline-size: none;
    max-block-size: 90dvh;
    margin: 0 auto;
    padding: 10px var(--section-pad) calc(24px + var(--safe-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    color: var(--ink);
    scrollbar-width: thin;
}

#booking-overlay[open] {
    animation: sheet-in 220ms ease-out both;
}

#booking-overlay::backdrop {
    background: rgb(40 15 28 / 45%);
}

@keyframes sheet-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.grab {
    inline-size: 40px;
    block-size: 5px;
    margin: 0 auto 12px;
    border-radius: 3px;
    background: #E8D8DF;
}

.sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sheet h2, .sheet h4 {
    color: var(--ink-2);
    font-size: 18px;
}

.sheet .sub {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.booking-dialog-close, .promo-preview-close {
    display: grid;
    min-inline-size: 44px;
    min-block-size: 44px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: var(--rose-dark);
    font-size: 24px;
    line-height: 1;
}

.svc {
    margin-block-end: 12px;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
}

.svc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.svc-top b, .svc-top strong {
    font-size: 16px;
}

.svc-top small {
    display: block;
    margin-block-start: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.svc-top .tag {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-block-size: 44px;
    background: linear-gradient(transparent 25%, var(--rose-soft) 25% 75%, transparent 75%);
    text-decoration: none;
}

.opts {
    display: flex;
    margin-block-start: 10px;
    gap: 8px;
}

.opt {
    flex: 1 1 0;
    min-inline-size: 0;
    min-block-size: 44px;
    padding: 8px 6px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    text-align: center;
}

.opt b, .opt strong, .opt em {
    display: block;
}

.opt b, .opt strong {
    font-size: 14px;
}

.opt span:not(.hot) {
    display: block;
    margin-block-start: 2px;
    color: var(--rose);
    font-size: 17px;
    font-weight: 800;
}

.opt s, .booking-price s {
    margin-inline-start: 3px;
    color: var(--muted);
    font-size: 11px;
}

.opt em {
    margin-block-start: 2px;
    color: #A35A12;
    font-size: 10px;
    font-style: normal;
}

.opt.on {
    border-color: var(--rose);
    background: var(--rose-soft2);
    box-shadow: inset 0 0 0 2px rgb(229 51 107 / 15%);
}

.opt.dis, .opt:disabled {
    border-color: transparent;
    background: var(--disabled-bg);
    color: var(--disabled);
}

.opt.dis span:not(.hot), .opt:disabled span:not(.hot) {
    color: var(--disabled);
}

.opt.dis em, .opt:disabled em {
    color: #9C8C95;
}

.hot {
    display: inline-block;
    margin-inline-start: 4px;
    padding: 1px 5px;
    border-radius: 6px;
    background: var(--rose);
    color: #fff;
    font-size: 10px;
    vertical-align: 1px;
}

.opt.dis .hot, .opt:disabled .hot {
    background: #D8CDD2;
}

.sheet > .btn {
    margin-block-start: 16px;
}

.booking-form-header {
    display: flex;
    min-block-size: 44px;
    padding-inline: var(--section-pad);
    align-items: center;
    gap: 6px;
}

.booking-form-header h2, .back {
    font-size: 15px;
    font-weight: 700;
}

.back {
    display: inline-flex;
    align-items: center;
    min-inline-size: 44px;
    min-block-size: 44px;
    text-align: start;
}

.booking-form-header + .sec {
    padding-block-start: 0;
}

.summary {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--rose-soft2);
    font-size: 13.5px;
    line-height: 1.8;
}

.summary .r {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
}

.summary .r > span:first-child, .summary dt {
    color: var(--muted);
}

.summary .r > :last-child {
    text-align: end;
    overflow-wrap: anywhere;
}

.booking-price, .summary .booking-price {
    color: var(--rose);
}

.f {
    margin-block-start: 14px;
}

.f label {
    display: block;
    margin-block-end: 6px;
    font-size: 13px;
    font-weight: 700;
}

.f label em {
    color: var(--rose);
    font-style: normal;
}

.f label small {
    margin-inline-start: 4px;
    color: var(--muted);
    font-weight: 400;
}

.inp {
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 46px;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
}

.inp::placeholder {
    color: #9C8C95;
}

.inp.err, .inp[aria-invalid="true"], .booking-phone:has([aria-invalid="true"], .err) {
    border-color: var(--danger);
}

.ta {
    min-block-size: 70px;
    resize: vertical;
}

.booking-phone {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.booking-phone .inp {
    min-block-size: 43px;
    border: 0;
    background: none;
}

.booking-country {
    max-inline-size: 42%;
    min-block-size: 44px;
    padding-inline: 10px 4px;
    border: 0;
    background: none;
    font-size: 16px;
    font-weight: 600;
}

.booking-country-other {
    margin-block-start: 8px;
}

.ferr {
    margin-block-start: 4px;
    color: var(--danger);
    font-size: 12px;
}

.booking-trap {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

#booking-flow .sum {
    font-size: 11.5px;
}

.booking-submit-status {
    color: var(--muted);
    font-size: 12px;
}

.booking-bottom .btn.busy::before {
    flex: none;
    inline-size: 16px;
    block-size: 16px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: booking-spin 700ms linear infinite;
    content: "";
}

@keyframes booking-spin {
    to { transform: rotate(360deg); }
}

.ok-ic {
    display: grid;
    inline-size: 72px;
    block-size: 72px;
    margin: 20px auto 12px;
    place-items: center;
    border-radius: 50%;
    background: var(--rose-soft);
    color: var(--rose);
    font-size: 38px;
    font-weight: 800;
}

#booking-flow .ok-ic + h2, #booking-flow .ok-ic + h3 {
    color: var(--ink-2);
    font-size: 22px;
    text-align: center;
}

.booking-subtitle {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.success-summary {
    background: #fff;
}

.booking-actions {
    display: grid;
    gap: 12px;
    margin-block-start: 18px;
}

.booking-actions p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.acc {
    overflow: hidden;
    margin-block-end: 14px;
    scroll-margin-block-start: 54px;
}

.acc-h {
    display: flex;
    inline-size: 100%;
    min-block-size: 44px;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: start;
}

.acc-h b, .acc-h strong {
    color: var(--ink-2);
    font-size: 17px;
}

.acc-h small {
    display: block;
    margin-block-start: 2px;
    color: var(--muted);
    font-size: 12px;
}

.acc-h .arr {
    color: var(--rose);
    font-size: 18px;
    transition: transform 200ms ease;
}

.acc.is-open .arr {
    transform: rotate(180deg);
}

.ptable {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 16px 14px;
}

.pcell {
    padding: 8px 4px;
    border-radius: 12px;
    background: var(--rose-soft2);
    text-align: center;
}

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

.pcell b, .pcell strong {
    display: block;
    color: var(--rose);
    font-size: 18px;
    font-weight: 800;
}

.pcell.m {
    background: var(--mobile-soft);
}

.pcell.m b, .pcell.m strong {
    color: #B8650F;
}

.acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 200ms ease;
}

.acc.is-open .acc-panel {
    grid-template-rows: 1fr;
}

.acc-panel-inner {
    min-block-size: 0;
    overflow: hidden;
}

.steps {
    padding: 12px 16px 16px;
    border-block-start: 1px dashed var(--line);
}

.steps h4, .steps h5 {
    margin-block-end: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.steps ol {
    padding: 0;
    list-style: none;
}

.step {
    display: flex;
    padding-block: 7px;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.step i, .step-number {
    display: grid;
    flex: none;
    inline-size: 24px;
    block-size: 24px;
    place-items: center;
    border-radius: 8px;
    background: var(--rose);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

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

.treatment-cta {
    inline-size: 100%;
    min-block-size: 44px;
    margin-block-start: 10px;
    font-size: 14px;
}

.promise {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block-start: 10px;
    padding: 0;
    list-style: none;
}

.promise-heading {
    margin: 16px 0 8px;
}

.promise-heading h3 {
    font-size: 15px;
}

.promise > div, .promise > li {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    background: #fff;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}

.promise > div::before, .promise > li::before {
    color: var(--rose);
    font-weight: 800;
    content: "✓";
}

.promo {
    margin-block-end: 12px;
    padding: 14px 16px;
}

.promo .tag {
    margin-block-end: 6px;
}

.promo h3, .promo h4, .promo h5 {
    margin-block-end: 4px;
    color: var(--rose-dark);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.promo p {
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.promo-body {
    white-space: pre-line;
}

.perks {
    display: flex;
    gap: 6px;
    margin-block-start: 8px;
    padding: 0;
    list-style: none;
}

.perks > div, .perks > li {
    flex: 1 1 0;
    min-inline-size: 0;
    padding: 8px 4px;
    border-radius: 10px;
    background: var(--rose-soft2);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

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

.promo-wa {
    inline-size: 100%;
    min-block-size: 44px;
    margin-block-start: 10px;
    font-size: 14px;
}

.poster {
    position: relative;
    display: block;
    inline-size: 100%;
    min-block-size: 44px;
    overflow: hidden;
    margin-block-start: 10px;
    border-radius: 12px;
    text-align: start;
}

.poster img {
    display: block;
    inline-size: 100%;
}

.poster span {
    position: absolute;
    inset: auto 8px 8px auto;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgb(0 0 0 / 55%);
    color: #fff;
    font-size: 11px;
}

#promo-preview {
    position: fixed;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    max-inline-size: none;
    max-block-size: none;
    margin: 0;
    padding: 12px;
    border: 0;
    background: #000;
    color: #fff;
    touch-action: pinch-zoom;
}

#promo-preview[open] {
    display: grid;
    place-items: center;
}

#promo-preview img {
    display: block;
    max-block-size: calc(100dvh - 24px);
    object-fit: contain;
}

.promo-preview-close {
    position: absolute;
    z-index: 1;
    inset-block-start: max(10px, env(safe-area-inset-top, 0px));
    inset-inline-end: max(10px, env(safe-area-inset-right, 0px));
    background: rgb(0 0 0 / 60%);
    color: #fff;
}

.toast {
    position: fixed;
    z-index: 12;
    inset-block-start: calc(14px + env(safe-area-inset-top, 0px));
    inset-inline-start: 50%;
    inline-size: max-content;
    max-inline-size: min(calc(100% - 32px), 440px);
    padding: 9px 14px;
    border-radius: 20px;
    background: #2D1F27;
    color: #fff;
    font-size: 13px;
    text-align: center;
    transform: translateX(-50%);
}
