/*
 * Booking público — complementos ao Bootstrap (template SmartAdmin / Plus Jakarta).
 * Grid, navbar, cards e modal vêm do Bootstrap.
 */
:root {
    /* Espaço para a barra fixa de resumo (mobile) — só a faixa de totais + botões */
    /* Altura aproximada da barra fixa mobile (incl. padding extra do chevron circular por fora) */
    --booking-mobile-summary-bar-height: 5.75rem;
    /* Painel expansível com a lista de serviços (altura máx.) */
    --booking-mobile-drawer-max: min(50vh, 22rem);
    --booking-bg: #f3f4f6;
    --booking-text: #1a1a1a;
    --booking-muted: #6b6b6b;
    --booking-border: #e8e8e8;
    --booking-accent: #0d6efd;
    --booking-radius: 0.75rem;
    --booking-split-max: 70rem;
    /* Navbar fixa — alinhar com .booking-navbar__inner */
    --booking-navbar-height: 3.5rem;
    /* Espaço extra entre a navbar e o conteúdo (resumo sticky usa o mesmo offset) */
    --booking-content-top-gap: 1.5rem;
    --booking-action-btn-min-height: 3.25rem;
    --booking-action-btn-padding-y: 0.75rem;
    --booking-action-btn-padding-x: 1.15rem;
}

/* Botões de ação principais: Seguinte, Pagamento, auth, modais de marcação */
.booking-app .booking-summary-next-btn,
#booking-slot-hold-expired-modal #booking-slot-hold-extend,
#booking-slot-hold-expired-modal #booking-slot-hold-restart,
.booking-app .booking-page--confirm .btn.btn-dark,
#bookingModal #booking-modal-confirm,
#bookingModal #booking-modal-apply-edit,
#bookingModal #booking-modal-remove-line,
.booking-auth-modal .btn.btn-dark.w-100,
.booking-auth-modal .btn.btn-outline-secondary.w-100 {
    min-height: var(--booking-action-btn-min-height);
    padding-top: var(--booking-action-btn-padding-y);
    padding-bottom: var(--booking-action-btn-padding-y);
    font-weight: 600;
    line-height: 1.35;
}

.booking-app .booking-summary-next-btn,
#booking-slot-hold-expired-modal #booking-slot-hold-extend,
#booking-slot-hold-expired-modal #booking-slot-hold-restart,
.booking-app .booking-page--confirm .btn.btn-dark,
#bookingModal #booking-modal-confirm,
#bookingModal #booking-modal-apply-edit,
#bookingModal #booking-modal-remove-line {
    padding-left: var(--booking-action-btn-padding-x);
    padding-right: var(--booking-action-btn-padding-x);
}

/* Offset para âncoras (#cat-*) e cartão resumo (sticky): navbar + margem superior */
.booking-app {
    --booking-sticky-offset: calc(var(--booking-navbar-height) + var(--booking-content-top-gap));
    --booking-summary-title-space: 3.75rem;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.booking-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--booking-text);
    background: var(--booking-bg);
    -webkit-font-smoothing: antialiased;
}

/* Evita "shift" e regressões de sticky quando o modal manipula o body */
.booking-body.booking-modal-open {
    padding-right: 0 !important;
}

.booking-container-wide {
    max-width: var(--booking-split-max);
}

.booking-navbar {
    z-index: 1030;
}

.booking-navbar__inner {
    min-height: var(--booking-navbar-height);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 0.35rem;
}

.booking-navbar__cell--start {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.booking-navbar__cell--center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: min(22rem, 78vw);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.booking-navbar__cell--center > * {
    pointer-events: auto;
}

.booking-navbar__cell--center--empty {
    pointer-events: none;
}

.booking-navbar__cell--end {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.booking-navbar__brand {
    max-width: 100%;
    min-width: 0;
    vertical-align: bottom;
}

.booking-navbar__brand-logo {
    display: block;
    width: auto;
    max-width: min(11.5rem, 44vw);
    max-height: calc(var(--booking-navbar-height) - 1.25rem);
    object-fit: contain;
}

.booking-navbar__auth-open {
    flex-shrink: 0;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.booking-navbar-new-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 50rem;
    background: transparent;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 0.35rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.booking-navbar-new-booking:hover {
    background: #f3f4f6;
    color: #111827;
}

.booking-navbar-new-booking:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.booking-navbar-new-booking .bi {
    font-size: 1.15rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .booking-navbar-new-booking {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0;
        gap: 0;
        border: 0;
        border-radius: 0.35rem;
        box-sizing: border-box;
        margin-right: 0.65rem;
    }

    .booking-navbar-account__toggle,
    .booking-navbar-lang__toggle {
        height: 2.5rem;
        min-height: 2.5rem;
        padding-top: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        align-items: center;
    }

    .booking-navbar-account__toggle {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

.booking-navbar-account__initials {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.booking-navbar-account__toggle,
.booking-navbar-lang__toggle {
    height: 2.125rem;
    min-height: 2.125rem;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.booking-navbar-account__toggle {
    flex-shrink: 0;
    max-width: min(52vw, 15rem);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    border-color: #d1d5db !important;
}

.booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark:hover,
.booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark:focus-visible,
.booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark:active {
    border-color: #d1d5db !important;
}

.booking-navbar-account__toggle-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
}

.booking-navbar-account__toggle-icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.9;
}

.booking-navbar-account__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: left;
}

.booking-navbar-account {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.booking-navbar-account__menu {
    z-index: 1050;
    min-width: 12.5rem;
    margin-top: 0 !important;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.1);
    /* Com data-bs-display="static" e .booking-navbar-account com height:100% — topo do menu no fundo da navbar */
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

.booking-navbar-account__menu .dropdown-item {
    font-size: 0.9375rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.booking-navbar-account__menu .dropdown-divider {
    margin: 0.45rem 0;
}

.booking-navbar-account__menu form {
    margin: 0;
}

.booking-navbar-account__item-icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.88;
}

.booking-navbar-account__menu .dropdown-item.text-danger .booking-navbar-account__item-icon {
    opacity: 1;
}

.booking-navbar-lang {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.booking-navbar-lang__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-color: #d1d5db !important;
}

.booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark:hover,
.booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark:focus-visible,
.booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark:active,
.booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark.show {
    border-color: #d1d5db !important;
}

.booking-navbar-lang__toggle-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.booking-navbar-lang__toggle-icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.9;
}

.booking-navbar-lang__code {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

.booking-navbar-lang__menu {
    z-index: 1050;
    min-width: 0;
    width: max-content;
    margin-top: 0 !important;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.1);
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

.booking-navbar-lang__menu .dropdown-item {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
}

.booking-offcanvas {
    --bs-offcanvas-width: min(29rem, 92vw);
}

.booking-offcanvas__header {
    padding: 2rem 2rem 0.75rem !important;
}

.booking-offcanvas__body {
    padding: 1.35rem 1.9rem 2rem !important;
}

.booking-offcanvas__close-btn {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
    border: 0;
    background: #f3f4f6;
    color: #1d2125;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.booking-offcanvas__close-btn:hover {
    background: #e9ecef;
}

.booking-offcanvas__close-btn:focus-visible {
    outline: 2px solid var(--booking-accent);
    outline-offset: 2px;
}

.booking-offcanvas__agency {
    color: var(--booking-text);
    margin-bottom: 2.15rem !important;
}

.booking-offcanvas__agency-title {
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 1.8rem !important;
}

.booking-offcanvas__agency-link {
    font-weight: 600;
    text-decoration: none;
}

.booking-offcanvas__info-list {
    border-top: 0;
    margin-top: 0.95rem !important;
}

.booking-offcanvas__info-item {
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--booking-border);
}

.booking-offcanvas__info-item:last-child {
    border-bottom: 0;
}

.booking-offcanvas__info-item--with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    align-items: start;
}

.booking-offcanvas__info-item--with-action > .booking-offcanvas__info-label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.25rem;
}

.booking-offcanvas__info-item--with-action > .booking-offcanvas__info-value {
    grid-column: 1;
    grid-row: 2;
}

.booking-offcanvas__info-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.booking-offcanvas__info-label {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #3b4046;
    font-weight: 700;
}

.booking-offcanvas__info-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.booking-offcanvas__info-value {
    margin: 0;
    color: #6b6f75;
}

.booking-offcanvas__status-open {
    color: #0f7b35;
    font-weight: 700;
}

.booking-offcanvas__status-warning {
    color: #b58100;
    font-weight: 700;
}

.booking-offcanvas__status-closed {
    color: #b42318;
    font-weight: 700;
}

.booking-offcanvas__hours-details summary {
    cursor: pointer;
    list-style: none;
}

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

.booking-offcanvas__hours-summary {
    display: block;
}

.booking-offcanvas__hours-summary .booking-offcanvas__icon-btn {
    transition: transform 0.2s ease;
}

.booking-offcanvas__hours-details[open] .booking-offcanvas__hours-summary .booking-offcanvas__icon-btn {
    transform: rotate(180deg);
}

.booking-offcanvas__hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #5a6067;
    padding: 0.15rem 0;
}

.booking-offcanvas__hours-list-current {
    font-weight: 700;
    color: #1f2328;
}

.booking-offcanvas__hours-list {
    margin-top: 0.65rem !important;
    display: none;
}

.booking-offcanvas__hours-details[open] + .booking-offcanvas__hours-list {
    display: block;
}

.booking-offcanvas__info-item--hours {
    grid-template-rows: auto auto auto;
}

.booking-offcanvas__info-item--hours .booking-offcanvas__hours-details {
    align-self: center;
}

.booking-offcanvas__info-item--hours .booking-offcanvas__hours-list {
    grid-column: 1 / -1;
    grid-row: 3;
}

.booking-offcanvas__social-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.booking-offcanvas__follow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.booking-offcanvas__follow-row .booking-offcanvas__info-label {
    margin: 0;
}

.booking-offcanvas__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #2f3338;
    text-decoration: none;
}

.booking-offcanvas__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #2f3338;
    text-decoration: none;
    border: 0;
    padding: 0;
    flex-shrink: 0;
}

.booking-offcanvas__icon-btn i {
    font-size: 1.05rem;
}

.booking-offcanvas__icon-btn:hover {
    background: #e9ecef;
    color: #1f2328;
}

.booking-offcanvas__social-link i {
    font-size: 1.05rem;
}

.booking-offcanvas__social-link:hover {
    background: #e9ecef;
    color: #1f2328;
}

.booking-offcanvas__footer {
    padding-top: 1.35rem;
}

.booking-offcanvas-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--booking-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.booking-offcanvas-nav__link i {
    font-size: 1rem;
    color: #8a8f96;
    font-weight: 400;
    flex-shrink: 0;
}

.booking-offcanvas-nav__link:hover {
    color: var(--booking-text);
}

button.booking-offcanvas-nav__link {
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: inherit;
    font: inherit;
}

.booking-offcanvas__logout {
    color: #1858b7;
    font-weight: 600;
}

.booking-offcanvas__logout:hover {
    color: #0f4aa3;
}

/* Passos da marcação (navbar, centro) */
.booking-navbar-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

.booking-navbar-steps__item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.booking-navbar-steps__sep {
    color: #c5c9ce;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0 0.25rem;
    user-select: none;
}

.booking-navbar-steps__btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-decoration: none;
    padding: 0.2rem 0.28rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    border: none;
    background: transparent;
    font-family: inherit;
}

.booking-navbar-steps__btn--past {
    color: var(--booking-accent);
}

.booking-navbar-steps__btn--past:hover {
    text-decoration: underline;
    color: #0a58ca;
}

.booking-navbar-steps__btn--past:focus-visible {
    outline: 2px solid var(--booking-accent);
    outline-offset: 2px;
}

.booking-navbar-steps__btn--current {
    color: var(--booking-text);
    background: rgba(0, 0, 0, 0.06);
    cursor: default;
}

.booking-navbar-steps__btn--future {
    color: var(--booking-muted);
    opacity: 0.55;
    cursor: default;
}

/* Desktop (lg+): voltar | nome da loja (texto) ao centro absoluto | ações (+ nova marcação visível) */
@media (min-width: 992px) {
    .booking-navbar .booking-navbar__inner {
        gap: 0.45rem 0.65rem;
    }

    .booking-navbar__cell--center {
        max-width: min(28rem, 88vw);
    }

    .booking-navbar__lead {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-shrink: 0;
        width: 2.75rem;
    }

    .booking-navbar__lead-spacer {
        display: block;
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
    }

    .booking-navbar__back {
        width: 2.5rem;
        min-width: 2.5rem;
        max-width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border: 0;
        background: transparent;
        color: var(--booking-text);
        text-decoration: none;
        box-shadow: none;
        border-radius: 50%;
        box-sizing: border-box;
    }

    .booking-navbar__back:hover,
    .booking-navbar__back:focus-visible {
        color: var(--booking-text);
        background: rgba(0, 0, 0, 0.06);
    }

    .booking-navbar__back:focus-visible {
        outline: 2px solid rgba(0, 0, 0, 0.3);
        outline-offset: 2px;
    }

    .booking-navbar__back .bi {
        font-size: 1.2rem;
        line-height: 1;
    }

    .booking-navbar__store-title {
        display: block;
        width: 100%;
        min-width: 0;
        font-size: 1.0625rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1.2;
        color: var(--booking-text);
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding: 0 0.35rem;
    }

    .booking-navbar-new-booking {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        margin-right: 0.5rem;
        box-sizing: border-box;
    }

    .booking-navbar-new-booking .bi {
        font-size: 1.25rem;
    }

}

/* Mobile / tablet: voltar | nome da loja (centro absoluto) | só perfil */
@media (max-width: 991.98px) {
    :root {
        --booking-navbar-height: 3.125rem;
    }

    .booking-navbar .booking-navbar__inner {
        gap: 0.25rem 0.4rem;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        min-height: auto;
    }

    .booking-navbar__cell--center {
        max-width: min(19rem, 82vw);
    }

    .booking-navbar__cell--center .booking-navbar-steps {
        display: none !important;
    }

    .booking-navbar__lead {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-shrink: 0;
        width: 2.5rem;
    }

    .booking-navbar__lead-spacer {
        display: block;
        width: 2.35rem;
        height: 2.35rem;
        flex-shrink: 0;
    }

    .booking-navbar__back {
        width: 2.35rem;
        min-width: 2.35rem;
        max-width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border: 0;
        background: transparent;
        color: var(--booking-text);
        text-decoration: none;
        box-shadow: none;
        border-radius: 50%;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .booking-navbar__back:hover,
    .booking-navbar__back:active {
        color: var(--booking-text);
        background: transparent;
    }

    .booking-navbar__back:focus-visible {
        color: var(--booking-text);
        background: transparent;
        outline: 2px solid rgba(0, 0, 0, 0.35);
        outline-offset: 2px;
    }

    .booking-navbar__back .bi {
        font-size: 1.35rem;
        line-height: 1;
    }

    .booking-navbar__store-title {
        display: block;
        width: 100%;
        min-width: 0;
        font-size: 0.9375rem;
        font-weight: 700;
        letter-spacing: 0.045em;
        line-height: 1.2;
        color: var(--booking-text);
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding: 0 0.2rem;
    }

    .booking-navbar__auth-open {
        max-width: none;
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        padding-left: 0;
        padding-right: 0;
        border-radius: 0.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .booking-navbar__auth-open:hover,
    .booking-navbar__auth-open:active,
    .booking-navbar__auth-open:focus-visible {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--booking-text) !important;
    }

    .booking-navbar__auth-open-icon {
        font-size: 1.35rem;
        line-height: 1;
    }

    .booking-navbar .booking-navbar-account__toggle-icon {
        font-size: 1.35rem;
        line-height: 1;
    }

    .booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark:hover,
    .booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark:active,
    .booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark:focus-visible,
    .booking-navbar-account .booking-navbar-account__toggle.btn-outline-dark.show {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--booking-text) !important;
    }

    /* Só ícone de perfil (sem iniciais nem nome visível) — coluna da direita mais estreita */
    .booking-navbar .booking-navbar-account__initials,
    .booking-navbar .booking-navbar-account__name {
        display: none !important;
    }

    .booking-navbar-account .booking-navbar-account__toggle {
        max-width: none;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
        -webkit-tap-highlight-color: transparent;
    }

    /* Sem caret do Bootstrap no botão de perfil (só ícone) */
    .booking-navbar .booking-navbar-account__toggle.dropdown-toggle::after {
        display: none !important;
    }

    .booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark:hover,
    .booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark:active,
    .booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark:focus-visible,
    .booking-navbar-lang .booking-navbar-lang__toggle.btn-outline-dark.show {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--booking-text) !important;
    }

    .booking-navbar .booking-navbar-lang__toggle.dropdown-toggle::after {
        display: none !important;
    }

}

/*
 * Conteúdo por baixo da navbar fixa + margem superior.
 * !important: nas páginas com .py-4 no mesmo elemento, o utility do Bootstrap ganharia sem isto.
 */
.booking-main-body {
    padding-top: calc(var(--booking-navbar-height) + var(--booking-content-top-gap)) !important;
}

/* Ancoras: conteúdo não fica escondido atrás da navbar */
.booking-category-section {
    scroll-margin-top: var(--booking-sticky-offset);
}

.booking-invoice-nif-input {
    max-width: 12rem;
}

.booking-step3-welcome {
    font-size: 0.9375rem;
    letter-spacing: -0.015em;
}

/* Página serviços: âncoras ficam por baixo da navbar + barra de categorias (sticky) */
.booking-page--services {
    --booking-category-chips-bar-height: 3.375rem;
}

.booking-page--services .booking-category-section {
    scroll-margin-top: calc(
        var(--booking-navbar-height) + var(--booking-category-chips-bar-height) + 0.5rem
    );
}

.booking-category-heading {
    font-size: 0.75rem;
    color: #8c9198;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.booking-category-heading::first-letter {
    text-transform: uppercase;
}

.booking-category-card__header {
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid var(--booking-border);
    background-color: #fff;
}

/* Barra de chips: sticky na section (bloco inteiro) por baixo da navbar fixa. */
.booking-category-section.booking-category-section--chips {
    position: sticky;
    top: var(--booking-navbar-height);
    z-index: 1010;
}

.booking-category-card.booking-category-card--chips {
    position: relative;
    overflow: visible;
    background-color: #fff;
}

.booking-category-card--chips .booking-category-chips {
    position: static;
    top: auto;
    z-index: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background-color: transparent !important;
}

.booking-category-card--chips .booking-category-chips__scroll {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

.booking-services-heading {
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

/* Voltar só em mobile: ao lado do título do passo (desktop mantém o botão no resumo) */
.booking-page-main-heading {
    min-width: 0;
    gap: 1rem;
}

/* Barra de atalhos por categoria — sticky imediatamente por baixo da navbar fixa */
.booking-category-chips {
    position: sticky;
    top: var(--booking-navbar-height);
    z-index: 1020;
    min-height: var(--booking-category-chips-bar-height, 3.375rem);
    margin-bottom: 0;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.45rem 0 0.55rem;
    background-color: var(--booking-bg);
    box-sizing: border-box;
    --booking-chips-edge-size: 1.5rem;
}

.booking-category-chips::before,
.booking-category-chips::after {
    content: '';
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    width: var(--booking-chips-edge-size);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.booking-category-chips::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 42%, rgba(255, 255, 255, 0));
}

.booking-category-chips::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 42%, rgba(255, 255, 255, 0));
}

.booking-category-chips.can-scroll-left::before {
    opacity: 1;
}

.booking-category-chips.can-scroll-right::after {
    opacity: 1;
}

.booking-category-chips__arrow {
    display: none;
}

.booking-category-chips__scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-bottom: 0rem;
    padding-top: 0.4rem;
}

.booking-category-chips__scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.booking-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    max-width: 14rem;
    margin: 0;
    padding: 0.35rem 0.85rem;
    font: inherit;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--booking-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border: 1px solid var(--booking-border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition:
        background-color 0.12s ease,
        border-color 0.12s ease,
        box-shadow 0.12s ease;
}

.booking-category-chip:hover {
    border-color: #cfd4d9;
    background: #fafafa;
}

.booking-category-chip:focus-visible {
    outline: 2px solid var(--booking-accent);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .booking-category-chips {
        --booking-chips-arrow-size: 2.15rem;
    }

    .booking-category-chips__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        width: var(--booking-chips-arrow-size);
        height: var(--booking-chips-arrow-size);
        border: 1px solid transparent;
        border-radius: 999px;
        background: #fff;
        color: #374151;
        box-shadow: none;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .booking-category-chips__arrow:hover {
        background: #f8fafc;
        box-shadow: 0 2px 9px rgba(15, 23, 42, 0.14);
    }

    .booking-category-chips__arrow:focus-visible {
        outline: 2px solid var(--booking-accent);
        outline-offset: 2px;
    }

    .booking-category-chips__arrow--left {
        left: 0.55rem;
    }

    .booking-category-chips__arrow--right {
        right: 0.55rem;
    }

    .booking-category-chips.can-scroll-left .booking-category-chips__arrow--left,
    .booking-category-chips.can-scroll-right .booking-category-chips__arrow--right {
        opacity: 1;
        pointer-events: auto;
    }

    .booking-category-chips__scroll {
        padding-left: calc(var(--booking-chips-arrow-size) + 0.25rem);
        padding-right: calc(var(--booking-chips-arrow-size) + 0.25rem);
    }
}

/* Stripe Payment Element: espaço mínimo até o iframe carregar */
#booking-stripe-mount {
    min-height: 7.5rem;
}

/*
 * Resumo: sticky na coluna direita.
 * Em lg+ a row usa align-items-lg-stretch (Blade) para a coluna direita ter a mesma altura que a esquerda;
 * sem isso o sticky não tem “trilho”.
 */
/*
 * Coluna da lista (lg+): não esticar à altura da coluna do resumo — senão o sticky
 * da barra de categorias deixa de funcionar no scroll da página (flex + stretch).
 */
@media (min-width: 992px) {
    .booking-page--services .booking-services-row > .col-lg-8 {
        align-self: flex-start;
    }
}

.booking-summary-column {
    display: flex;
    flex-direction: column;
}

.booking-summary-column > aside {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.booking-summary-panel {
    position: sticky;
    top: var(--booking-sticky-offset);
    z-index: 1010;
    align-self: flex-start;
}

/* Altura = viewport menos navbar/gap; lista com scroll; rodapé com total + botão fixos na base do cartão */
.booking-summary-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--booking-sticky-offset) - var(--booking-summary-title-space) - 1rem);
    max-height: calc(100vh - var(--booking-sticky-offset) - var(--booking-summary-title-space) - 1rem);
    overflow: hidden;
    width: 100%;
}

.booking-summary-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.booking-summary-heading {
    letter-spacing: 0.06em;
    color: #1a1a1a;
}

.booking-summary-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
}

.booking-summary-footer {
    flex-shrink: 0;
    padding: 0.5rem 0 0 0;
    margin-top: 0.75rem;
    border-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Faixa com totais + ações (no mobile o drawer fica acima desta faixa no mesmo footer fixo). */
.booking-summary-footer-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.booking-technician-row {
    padding: 0;
    border-bottom: 1px solid var(--booking-border);
}

.booking-technician-row:last-child {
    border-bottom: none;
}

.booking-technician-row__label {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    width: 100%;
}

.booking-technician-row__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    overflow: hidden;
    background: #eceff3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-technician-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-technician-row__avatar--icon {
    color: #5b6572;
    font-size: 1.1rem;
}

.booking-technician-row__avatar-fallback {
    font-size: 0.875rem;
    font-weight: 700;
    color: #5b6572;
}

.booking-technician-row__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.booking-technician-row__name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.booking-technician-row__meta {
    font-size: 0.8125rem;
    color: var(--booking-muted);
}

.booking-technician-row__choice {
    padding-left: 0.5rem;
}

.booking-technician-row.is-hidden-tech {
    display: none;
}

.booking-slots__day {
    letter-spacing: -0.01em;
}

.booking-slots__status {
    white-space: pre-line;
}

.booking-slots-suggested-wrap__label {
    letter-spacing: -0.01em;
}

.booking-slots-suggested-wrap {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--booking-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.booking-slots-more {
    font-weight: 600;
    margin-top: 0.35rem;
}

.booking-slots__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.booking-slot-pill {
    border-radius: var(--bs-border-radius, 0.375rem);
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
}

.booking-slot-pill.is-active {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.booking-calendar-view-toggle {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    border: none;
    border-radius: 999px;
    background: #e8eaee;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 0;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.booking-calendar-view-toggle::before,
.booking-calendar-view-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8rem;
    height: 1px;
    background: #e5e7eb;
    transform: translateY(-50%);
}

.booking-calendar-view-toggle::before {
    right: calc(100% + 0.55rem);
}

.booking-calendar-view-toggle::after {
    left: calc(100% + 0.55rem);
}

.booking-calendar-view-toggle:hover {
    background: #dfe3e8;
}

.booking-calendar-view-toggle i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.booking-calendar-view-toggle.is-week i {
    transform: rotate(0deg);
}

.booking-week-view {
    width: 100%;
    padding-bottom: 0.25rem;
}

.booking-week-view__header {
    display: grid;
    grid-template-columns: 2.75rem 1fr 2.75rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.booking-week-view__title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.booking-week-view__nav {
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.booking-week-view__nav:hover,
.booking-week-view__nav:active,
.booking-week-view__nav:focus-visible {
    background: transparent;
    color: #111827;
    box-shadow: none;
}

.booking-week-view__nav:focus-visible {
    outline: 2px solid rgba(17, 24, 39, 0.28);
    outline-offset: 2px;
}

.booking-week-view__nav:disabled {
    cursor: not-allowed;
    color: #a6acb4;
    background: transparent;
}

.booking-week-view__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
}

.booking-week-view__day {
    min-height: 4.9rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: #1a1a1a;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.35rem 0.25rem;
}

.booking-week-view__day:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
}

/* Sem hover no dia de hoje (vista semanal) */
.booking-week-view__day.is-today:hover:not(:disabled):not(.is-active) {
    background: transparent;
}

/* Dia selecionado: manter fundo sólido ao passar o rato */
.booking-week-view__day.is-active:hover:not(:disabled) {
    background: #1f2937;
}

.booking-week-view__day:disabled {
    color: #a6acb4;
}

.booking-week-view__day.is-holiday:disabled {
    color: #c4a35a;
}

.booking-week-view__day.is-active {
    background: #1f2937;
    color: #fff;
}

.booking-week-view__day.is-active .booking-week-view__weekday,
.booking-week-view__day.is-active .booking-week-view__daynum {
    color: #fff;
}

.booking-week-view__weekday {
    font-size: 0.75rem;
    color: #6b6b6b;
}

.booking-week-view__daynum {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.booking-page--datetime .flatpickr-calendar.inline {
    width: 100%;
    max-width: none;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.booking-page--datetime .booking-slots {
    margin-top: 0;
    padding-top: 1.9rem;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-rContainer,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-days,
.booking-page--datetime .flatpickr-calendar.inline .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: none;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-weekday,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day {
    width: calc(100% / 7);
    max-width: none;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-current-month {
    pointer-events: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-months {
    margin-bottom: 1.7rem;
    padding-bottom: 0.35rem;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month {
    top: -0.15rem !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
    border: none !important;
    background-color: transparent !important;
    color: #111827 !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, opacity 0.15s ease;
    box-shadow: none !important;
    margin-top: 1px !important;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month:hover,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month:hover,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month:active,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month:active,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month:focus,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month:focus-visible,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month:focus-visible {
    outline: 2px solid rgba(17, 24, 39, 0.28);
    outline-offset: 2px;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month.flatpickr-disabled,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month.flatpickr-disabled {
    cursor: not-allowed;
    opacity: 0.45 !important;
    background-color: transparent !important;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month svg,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    fill: #111827 !important;
    stroke: #111827 !important;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-prev-month:hover svg,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-next-month:hover svg {
    fill: #111827 !important;
    stroke: #111827 !important;
}

.booking-flatpickr-nav-icon {
    font-size: 1.2rem;
    line-height: inherit;
    color: #111827;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-weekday {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b6b6b;
    padding: 0.35rem 0 0.3rem;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day {
    height: 2.8rem;
    line-height: 2.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: #1a1a1a;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day.prevMonthDay,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day.nextMonthDay,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day.flatpickr-disabled {
    color: #8f96a0 !important;
    opacity: 1 !important;
}

.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day.selected,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day.startRange,
.booking-page--datetime .flatpickr-calendar.inline .flatpickr-day.endRange {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.booking-page--step3 .iti {
    width: 100%;
}

.booking-page--step3 .booking-phone-input {
    width: 100%;
}

/* Campos principais do checkout — mais altura e leve destaque */
.booking-page--step3 #booking-contact-name,
.booking-page--step3 #booking-contact-email {
    min-height: 3.75rem;
    padding: 0.85rem 1.1rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.booking-page--step3 .iti input.iti__tel-input,
.booking-page--step3 .iti input[type='tel'] {
    min-height: 3.75rem;
    padding: 0.85rem 1.1rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.booking-auth-modal #booking-auth-step-ident .iti,
.booking-auth-modal #booking-auth-step-register .iti {
    display: block;
    width: 100%;
}

.booking-auth-modal #booking-auth-step-ident .iti__dropdown-content,
.booking-auth-modal #booking-auth-step-register .iti__dropdown-content {
    z-index: 1080;
}

.booking-auth-channel-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem;
    margin-bottom: 1.5rem;
    background: #f3f4f6;
    border-radius: 999px;
}

.booking-auth-channel-tab {
    flex: 1 1 50%;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.25;
    min-height: 2.875rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.booking-auth-modal #booking-auth-step-ident .form-control,
.booking-auth-modal #booking-auth-step-register .form-control,
.booking-auth-modal #booking-auth-step-ident .iti input.iti__tel-input,
.booking-auth-modal #booking-auth-step-ident .iti input[type='tel'],
.booking-auth-modal #booking-auth-step-register .iti input.iti__tel-input,
.booking-auth-modal #booking-auth-step-register .iti input[type='tel'] {
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.35;
}

.booking-auth-modal #booking-auth-step-ident .iti,
.booking-auth-modal #booking-auth-step-register .iti {
    --iti-spacer-horizontal: 1rem;
}

/* Modais Booking (login, serviço, tempo expirado): mesmo padding; largura padrão Bootstrap */
#bookingModal .modal-header,
.booking-auth-modal .modal-header,
#booking-slot-hold-expired-modal .modal-header {
    padding: 1.75rem 2rem 1rem;
}

#bookingModal .modal-body,
#booking-slot-hold-expired-modal .modal-body {
    padding: 1.15rem 2rem 1rem;
}

.booking-auth-modal .modal-body {
    padding: 1.35rem 2rem 2.1rem;
}

.booking-auth-modal .modal-body:has(+ .booking-auth-modal__support) {
    padding-bottom: 1rem;
}

.booking-auth-modal__support {
    justify-content: center;
    padding: 0 2rem 1.35rem;
    margin-top: -0.25rem;
}

.booking-support-whatsapp-help {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #128c7e;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.15s ease;
}

.booking-support-whatsapp-help:hover,
.booking-support-whatsapp-help:focus-visible {
    color: #075e54;
    text-decoration: underline;
}

.booking-support-whatsapp-help i {
    font-size: 1.15rem;
    line-height: 1;
    color: #25d366;
}

body:has(#booking-auth-modal.show) .booking-support-whatsapp {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.booking-auth-modal #booking-auth-modal-subtitle {
    margin-bottom: 1.35rem;
}

.booking-auth-modal #booking-auth-modal-error {
    margin-bottom: 1.25rem;
}

.booking-auth-modal .booking-auth-channel-tabs {
    margin-bottom: 1.5rem;
}

.booking-auth-modal .mb-3 {
    margin-bottom: 1.35rem !important;
}

.booking-auth-modal #booking-auth-email-next {
    margin-top: 0.5rem;
}

.booking-auth-modal #booking-auth-code-submit {
    margin-bottom: 1rem !important;
}

.booking-auth-modal #booking-auth-code-status {
    margin-top: 0.85rem !important;
}

.booking-auth-modal #booking-auth-step-register .alert {
    margin-bottom: 1.35rem !important;
}

.booking-auth-modal .booking-auth-otp-inputs {
    gap: 0.65rem;
}

#bookingModal .modal-footer.booking-modal-footer,
#booking-slot-hold-expired-modal .modal-footer {
    padding: 1rem 2rem 1.85rem;
}

.booking-auth-channel-tab.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.booking-auth-channel-tab:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.booking-auth-modal #booking-auth-step-login .input-group .btn,
.booking-auth-modal #booking-auth-step-register .input-group .btn {
    z-index: 0;
}

.booking-auth-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-auth-modal__back {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #111827;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.booking-auth-modal__back i {
    font-size: 1.1rem;
    line-height: 1;
}

.booking-auth-otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.booking-auth-otp-input {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .booking-auth-modal .modal-dialog {
        margin: 0.75rem;
    }

    .booking-auth-modal .modal-content {
        border-radius: 1rem;
    }

    #bookingModal .modal-header,
    .booking-auth-modal .modal-header,
    #booking-slot-hold-expired-modal .modal-header {
        padding: 1.35rem 1.35rem 0.85rem;
    }

    #bookingModal .modal-body,
    #booking-slot-hold-expired-modal .modal-body {
        padding: 1rem 1.35rem 0.85rem;
    }

    .booking-auth-modal .modal-body {
        padding: 1.15rem 1.35rem 1.65rem;
    }

    .booking-auth-modal .modal-body:has(+ .booking-auth-modal__support) {
        padding-bottom: 0.85rem;
    }

    .booking-auth-modal__support {
        padding: 0 1.35rem 1.25rem;
    }

    #bookingModal .modal-footer.booking-modal-footer,
    #booking-slot-hold-expired-modal .modal-footer {
        padding: 0.85rem 1.35rem 1.5rem;
    }

    .booking-auth-modal .form-control,
    .booking-auth-modal .form-select,
    .booking-auth-modal .btn {
        min-height: 3rem;
        font-size: 1rem;
    }

    .booking-auth-modal .btn {
        font-weight: 600;
    }

    .booking-auth-modal .booking-auth-otp-input {
        min-height: 3.25rem;
        font-size: 1.2rem;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}

.booking-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 3rem;
    align-items: start;
}

.booking-account-layout__flash {
    grid-column: 1 / -1;
    min-width: 0;
}

.booking-account-sidebar {
    position: sticky;
    top: 5rem;
}

.booking-account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.booking-account-nav__link {
    display: block;
    padding: 0.75rem 0.65rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 500;
}

.booking-account-nav__link:hover {
    background: #f3f4f6;
    color: #111827;
}

.booking-account-nav__link.is-active {
    background: #f3f4f6;
    color: #111827;
}

.booking-account-nav__link--danger {
    border: 0;
    background: transparent;
    color: #b42318;
}

.booking-account-nav__link--danger:hover {
    background: #fef3f2;
    color: #912018;
}

.booking-contact-status-badge {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
}

.booking-contact-verify-btn {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
}

.booking-profile-completion__bar {
    height: 0.5rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.booking-profile-completion__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827, #4b5563);
    transition: width 0.35s ease;
}

.booking-profile-completion__info {
    text-decoration: none;
}

.booking-profile-completion__info:hover,
.booking-profile-completion__info:focus {
    color: #111827 !important;
}

.booking-account-marcacoes__shell {
    background: linear-gradient(180deg, #fafafa 0%, #fff 3.5rem);
}

.booking-account-marcacoes--plain .booking-account-marcacoes__shell {
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.booking-account-marcacoes__body--plain {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.booking-account-marcacoes--plain .booking-marcacao-list {
    width: 100%;
    margin-top: 0;
}

.booking-account-marcacoes__head {
    padding-bottom: 0.25rem;
}

.booking-marcacao-list {
    margin-top: 0.25rem;
}

.booking-marcacao-empty {
    border-color: #e8eaef !important;
}

.booking-marcacao-card {
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid #e8eaef;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.booking-marcacao-card:hover {
    border-color: #dde1e8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.booking-marcacao-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.1rem 0.85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #eef0f3;
}

.booking-marcacao-card__when {
    min-width: 0;
    flex: 1 1 12rem;
}

.booking-marcacao-card__date {
    font-size: 0.9rem;
    line-height: 1.35;
}

.booking-marcacao-card__time {
    margin-top: 0.2rem;
}

.booking-marcacao-card__badges {
    flex: 0 1 auto;
}

.booking-marcacao-card__badge {
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

.booking-marcacao-card__badge--muted {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
}

.booking-marcacao-card__badge--status {
    background: #111827 !important;
    color: #fff !important;
}

.booking-marcacao-card__body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-marcacao-card__section--notes .booking-marcacao-card__notes {
    line-height: 1.45;
}

.booking-marcacao-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.booking-marcacao-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 1rem;
}

@media (min-width: 576px) {
    .booking-marcacao-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.booking-marcacao-card__kv {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    border: 1px solid #f0f1f4;
}

.booking-marcacao-card__kv--service {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-marcacao-card__svc-name {
    line-height: 1.35;
}

.booking-marcacao-card__svc-tech {
    margin-top: 0.2rem;
    line-height: 1.3;
}

.booking-marcacao-card__k {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.booking-marcacao-card__v {
    font-size: 0.875rem;
    color: #111827;
}

.booking-marcacao-card__section--boxed {
    padding: 0.85rem 0.95rem;
    border-radius: 0.65rem;
    background: #fafbfc;
    border: 1px solid #eef0f3;
}

/* Pagamentos: mesmos cards de estatística, sem caixa exterior (fora do --boxed) */
.booking-marcacao-card__section--payments {
    margin: 0;
    padding: 0;
}

.booking-marcacao-card__section--total-snapshot {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.booking-marcacao-card__total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-marcacao-card__total-line__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.booking-marcacao-card__total-line__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.booking-marcacao-card__total-line--lead .booking-marcacao-card__total-line__value {
    font-size: 1.12rem;
}

.booking-marcacao-card__total-line__value--soft {
    font-size: 0.875rem;
    font-weight: 600;
}

.booking-marcacao-card__total-line--split {
    padding-top: 0.35rem;
    border-top: 1px solid #eef0f3;
}

.booking-marcacao-card__total-line--grand {
    margin-top: 0.1rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    background: #f3f4f6;
}

.booking-marcacao-card__total-line__label--grand {
    text-transform: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: normal;
}

.booking-marcacao-card__total-line--grand .booking-marcacao-card__total-line__value {
    font-size: 0.9rem;
}

.booking-marcacao-card__services-list {
    border-radius: 0.5rem;
    border: 1px solid #f0f1f4;
    background: #f9fafb;
    overflow: hidden;
}

.booking-marcacao-card__service-group {
    border-bottom: 1px solid #eef0f3;
}

.booking-marcacao-card__service-group:last-child {
    border-bottom: none;
}

.booking-marcacao-card__service-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
}

.booking-marcacao-card__service-row--extra {
    padding-top: 0;
    padding-left: 1.1rem;
}

.booking-marcacao-card__svc-option {
    margin-top: 0.1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: #8b96a3;
}

.booking-marcacao-card__svc-name--extra {
    font-weight: 500;
    color: #8b96a3;
}

.booking-marcacao-card__svc-price--extra {
    font-weight: 500;
    color: #6b7280;
}

.booking-marcacao-card__service-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.booking-marcacao-card__service-row-cat {
    color: #6b7280;
}

.booking-marcacao-card__service-row-tech {
    color: #6b7280;
}

.booking-marcacao-card__hint {
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}

.booking-marcacao-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.booking-marcacao-stats--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .booking-marcacao-stats--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.booking-marcacao-stat--full {
    grid-column: 1 / -1;
}

.booking-marcacao-stat {
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e8eaef;
}

.booking-marcacao-stat__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.booking-marcacao-stat__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.booking-marcacao-stat__value--total {
    font-size: 1.35rem;
}

.booking-marcacao-stat__amount-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.booking-marcacao-stat__method {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
}

.booking-marcacao-stat__suffix {
    display: inline-block;
    margin-left: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
}

.booking-marcacao-card__alert {
    padding: 0.75rem 0.85rem;
    border-radius: 0.5rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.booking-account-content section {
    scroll-margin-top: 6rem;
}

.booking-account-content .card + .card {
    margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
    .booking-account-layout {
        grid-template-columns: 1fr;
    }

    .booking-account-sidebar {
        display: none;
    }
}

.booking-page--login .booking-login__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Linha de serviço (botão dentro do list-group) */
.booking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.12s ease;
    border: none;
    background: transparent;
}

.booking-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.booking-row:focus-visible {
    outline: 2px solid var(--booking-accent);
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}

.booking-row--btn {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.booking-row__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.booking-row__name {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.booking-row__duration {
    font-size: 0.8125rem;
    color: var(--booking-muted);
    line-height: 1.35;
    margin-top: 0.1rem;
}

.booking-row__price {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-right: 0.85rem;
    display: flex;
    align-items: center;
}

.booking-row__meta {
    font-size: 0.8125rem;
    color: var(--booking-muted);
    line-height: 1.35;
    margin-top: 0.15rem;
}

.booking-row__aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
}

.booking-row__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Modal — variantes do serviço (radio à direita) */
.booking-modal-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--booking-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.booking-modal-option {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--booking-border);
    transition: background-color 0.12s ease;
}

.booking-modal-option:last-child {
    border-bottom: none;
}

.booking-modal-option:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.booking-modal-option__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.booking-modal-option__name {
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.booking-modal-option__meta {
    font-size: 0.8125rem;
    color: var(--booking-muted);
    line-height: 1.35;
}

.booking-modal-option__radio {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 0.25rem;
}

.booking-modal-option__radio input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
}

.booking-modal-options-error {
    font-weight: 500;
}

.booking-modal-footer__pane--edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Resumo — linhas geradas em JS */
.is-hidden {
    display: none !important;
}

.booking-summary-store {
    padding-bottom: 0.15rem;
}

.booking-summary-store__trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.2rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background-color 0.12s ease;
}

.booking-summary-store__trigger:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.booking-summary-store__trigger:focus-visible {
    outline: 2px solid var(--booking-accent, #1858b7);
    outline-offset: 2px;
}

.booking-summary-store__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.booking-summary-store__photo {
    max-height: 2.6rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.booking-summary-store__photo img {
    width: auto;
    height: auto;
    max-height: 2.6rem;
    max-width: 6.5rem;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.booking-summary-store__lines {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.booking-summary-store__line {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--booking-muted);
}

.booking-summary-store__line--name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1f26;
    letter-spacing: -0.01em;
}

.booking-summary-store__line--status {
    margin-top: 0.05rem;
}

.booking-summary-store__info-badge {
    display: none;
}

@media (max-width: 991.98px) {
    .booking-summary-store__info-badge {
        display: inline-flex;
        flex-shrink: 0;
        align-self: center;
        width: 1.75rem;
        height: 1.75rem;
        margin-left: 0.35rem;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.06);
        color: var(--booking-muted, #6b7280);
        border: 1px solid rgba(0, 0, 0, 0.08);
        pointer-events: none;
    }

    .booking-summary-store__info-badge .bi {
        font-size: 0.95rem;
        line-height: 1;
    }
}

.booking-summary-services .booking-summary-list:not(.is-hidden) {
    margin-top: 0.35rem;
}

.booking-summary-empty {
    font-size: 0.9375rem;
    color: var(--booking-muted);
    padding-bottom: 0.25rem;
}

.booking-summary-list {
    margin: 0;
    padding: 0;
    position: relative;
}

.booking-summary-extra {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--booking-border);
}

.booking-summary-slot-hold {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.booking-summary-slot-hold strong {
    font-variant-numeric: tabular-nums;
}

.booking-summary-extra__title {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8c9198;
}

.booking-summary-tech {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.booking-summary-tech__avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    overflow: hidden;
    background: #eceff3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b6572;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.booking-summary-tech__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-summary-tech__avatar-fallback {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #5b6572;
    line-height: 1;
}

.booking-summary-tech__body,
.booking-summary-datetime__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.booking-summary-tech__name,
.booking-summary-datetime__date {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.booking-summary-tech__meta,
.booking-summary-datetime__time {
    margin-top: 0.1rem;
    font-size: 0.8125rem;
    color: var(--booking-muted);
    line-height: 1.3;
}

.booking-summary-datetime {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.booking-summary-datetime__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--booking-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b6572;
    font-size: 1rem;
    flex-shrink: 0;
}

.booking-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0 0.8rem 1.05rem;
    position: relative;
}

.booking-summary-line:first-child {
    padding-top: 0;
}

.booking-summary-line:last-child {
    padding-bottom: 0;
}

.booking-summary-line::before {
    content: '';
    position: absolute;
    left: 0rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d8dde3;
}

.booking-summary-line::after {
    content: '';
    position: absolute;
    left: -0.45rem;
    top: 0.99rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #c3cbd4;
    border: 4px solid #fff;
}

.booking-summary-line:first-child::before {
    top: 1rem;
}

.booking-summary-line:first-child::after {
    top: 0.2rem;
}

.booking-summary-line:last-child::before {
    bottom: auto;
    height: 1.675rem;
}

/* Um só serviço: sem coluna / marcador da timeline */
.booking-summary-list:has(> .booking-summary-line:only-child) > .booking-summary-line {
    padding-left: 0;
}

.booking-summary-list:has(> .booking-summary-line:only-child) > .booking-summary-line::before,
.booking-summary-list:has(> .booking-summary-line:only-child) > .booking-summary-line::after {
    content: none;
    display: none;
}

.booking-summary-line__body {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.booking-summary-line__service {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.booking-summary-line__option {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: #8b96a3;
}

.booking-summary-line__extra {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #a0a8b3;
}

.booking-summary-line__duration {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--booking-muted);
}

.booking-summary-line__side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    text-align: right;
}

.booking-summary-line__aside-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    max-width: 100%;
}

.booking-summary-line__price {
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
    line-height: 1.3;
}

.booking-summary-line__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--booking-muted);
    cursor: pointer;
    transition:
        color 0.12s ease,
        background-color 0.12s ease;
}

.booking-summary-line__edit i {
    font-size: 0.95rem;
    line-height: 1;
}

.booking-summary-line__edit:hover {
    color: var(--booking-text);
    background: rgba(0, 0, 0, 0.05);
}

.booking-summary-fees {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e8ecef;
}

.booking-summary-fee {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

.booking-summary-fee__label {
    color: #5c6670;
    min-width: 0;
}

.booking-summary-fee__value {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.booking-summary-line__edit:focus-visible {
    outline: 2px solid var(--booking-accent);
    outline-offset: 1px;
}

.booking-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

.booking-summary-total__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.booking-summary-total__label {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
}

.booking-summary-total__duration {
    font-size: 0.8125rem;
    color: var(--booking-muted);
    line-height: 1.2;
}

.booking-summary-total__mobile-meta {
    font-size: 0.8125rem;
    line-height: 1.2;
    color: var(--booking-muted);
    font-variant-numeric: tabular-nums;
}

.booking-summary-total__sep {
    display: inline-block;
    margin: 0 0.35rem;
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.55;
    transform: translateY(-0.02em);
}

.booking-summary-total__value {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* -------------------------------------------------------------------------
 * Resumo em mobile: barra fixa (totais + chevron + botões); lista na gaveta.
 * ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .booking-page--services .booking-main-body,
    .booking-page--datetime .booking-main-body,
    .booking-page--technician .booking-main-body,
    .booking-page--step3 .booking-main-body {
        padding-bottom: calc(var(--booking-mobile-summary-bar-height) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    }

    /* Sem serviços: barra fixa não existe — evita espaço vazio por baixo do conteúdo */
    .booking-app:has(#booking-summary-empty:not(.is-hidden)) .booking-main-body {
        padding-bottom: 1rem !important;
    }

    /* Gaveta de serviços aberta: espaço extra para o painel acima da barra */
    .booking-app:has(.booking-summary-footer.is-drawer-open) .booking-main-body {
        padding-bottom: calc(
            var(--booking-mobile-summary-bar-height) + var(--booking-mobile-drawer-max) + env(safe-area-inset-bottom, 0px) + 0.75rem
        ) !important;
    }

    .booking-summary-panel {
        position: relative;
        top: auto;
        align-self: stretch;
        z-index: 1010;
        padding-top: 0;
    }

    /*
     * O cartão não pode ser display:none (o footer fixo ficaria oculto).
     * display:contents remove a caixa visual (borda/sombra) sem retirar os filhos do fluxo lógico.
     */
    .booking-summary-card {
        display: contents;
        height: auto;
        max-height: none;
        min-height: 0;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible;
    }

    .booking-summary-card__body {
        display: contents;
        padding: 0 !important;
        margin: 0;
        min-height: 0;
    }

    /* bottom: ajustado em runtime (app.js) com visualViewport quando a barra do browser muda de altura */
    /* column + flex-end: gaveta em cima, barra de totais colada ao fundo do ecrã */
    .booking-summary-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040 !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 0;
        margin-top: 0;
        padding: 0;
        border-top: 1px solid var(--booking-border);
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -0.35rem 1rem rgba(0, 0, 0, 0.08);
    }

    .booking-summary-footer-bar {
        position: relative;
        z-index: 1040 !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-shrink: 0;
        /* padding-top extra: metade do chevron circular fica acima da faixa */
        padding: 0.9rem max(0.88rem, env(safe-area-inset-left, 0px)) max(0.72rem, env(safe-area-inset-bottom, 0px)) max(0.88rem, env(safe-area-inset-right, 0px));
    }

    .booking-summary-mobile-drawer {
        position: relative;
        z-index: 1040 !important;
        width: 100%;
        min-height: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid transparent;
        background: #fff;
    }

    .booking-summary-footer.is-drawer-open .booking-summary-mobile-drawer {
        max-height: var(--booking-mobile-drawer-max);
        border-bottom-color: var(--booking-border);
    }

    /* Alinhar com .booking-summary-footer-bar (padding da barra fixa) */
    .booking-summary-mobile-drawer .booking-summary-scroll {
        max-height: var(--booking-mobile-drawer-max);
        margin-top: 0;
        padding: 0.72rem max(0.88rem, env(safe-area-inset-right, 0px)) 0.85rem max(0.88rem, env(safe-area-inset-left, 0px));
        background: #fff;
    }

    .booking-summary-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.34);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1031 !important;
    }

    .booking-summary-mobile-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Carrinho vazio: sem barra de resumo no ecrã */
    .booking-summary-card__body:has(#booking-summary-empty:not(.is-hidden)) .booking-summary-footer {
        display: none !important;
    }

    .booking-summary-footer-bar:has(#booking-summary-total.is-hidden) {
        justify-content: flex-end;
    }

    .booking-summary-total {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 0.4rem;
        row-gap: 0.08rem;
        justify-content: flex-start;
        font-size: 1rem;
    }

    .booking-summary-total[role='button'] {
        cursor: pointer;
    }

    .booking-summary-total__meta {
        display: contents;
    }

    .booking-summary-total__label {
        flex: 1 0 100%;
        font-size: 0.9375rem;
    }

    .booking-summary-total__duration,
    .booking-summary-total__value {
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.3;
        color: var(--booking-muted);
        letter-spacing: normal;
    }

    .booking-summary-total__duration {
        flex: 0 0 auto;
        order: 2;
    }

    .booking-summary-total__value {
        flex: 0 0 auto;
        white-space: nowrap;
        order: 3;
    }

    .booking-summary-total__duration,
    .booking-summary-total__value {
        display: none;
    }

    .booking-summary-total__mobile-meta {
        display: block !important;
        flex: 0 0 auto;
        order: 2;
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.3;
        color: var(--booking-muted);
    }

    /*
     * Chevron circular, centrado na barra inteira, metade por cima da faixa.
     * position:absolute → bloco de posicionamento = .booking-summary-footer-bar (position:relative).
     */
    .booking-summary-total__toggle {
        position: absolute;
        left: 50%;
        top: 0;
        z-index: 2;
        width: 2.28rem;
        height: 2.28rem;
        margin: 0;
        border-radius: 999px;
        background: #fff;
        border: 0;
        /* Só para cima: offset Y negativo (sem “mancha” por baixo do círculo) */
        box-shadow: 0 -0.35rem 0.85rem rgba(0, 0, 0, 0.1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #1f2937;
        transform: translate(-50%, -42%);
    }

    .booking-summary-total__toggle-icon {
        font-size: 1.2rem;
        line-height: 1;
        transition: transform 0.25s ease;
    }

    /* Fechado: chevron para cima; aberto: roda 180° → para baixo */
    .booking-summary-footer.is-drawer-open .booking-summary-total__toggle-icon {
        transform: rotate(180deg);
    }

    .booking-summary-actions {
        flex: 0 0 auto;
        gap: 0.35rem;
    }

    .booking-summary-footer .booking-summary-next-btn {
        font-size: 1rem;
        padding-top: var(--booking-action-btn-padding-y);
        padding-bottom: var(--booking-action-btn-padding-y);
        padding-left: var(--booking-action-btn-padding-x);
        padding-right: var(--booking-action-btn-padding-x);
        min-height: var(--booking-action-btn-min-height);
        line-height: 1.35;
        white-space: nowrap;
    }

    .booking-page-main-heading .booking-page-back-mobile.booking-summary-back-btn {
        padding: 0;
        width: 2.35rem;
        min-width: 2.35rem;
        max-width: 2.35rem;
        min-height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .booking-summary-footer .booking-summary-back-btn {
        padding: 0;
        width: 2.35rem;
        min-width: 2.35rem;
        max-width: 2.35rem;
        min-height: calc(0.9375rem * 1.35 + 1rem);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.booking-summary-back-btn {
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
    padding-left: 0;
    padding-right: 0;
}

.booking-summary-back-btn i {
    font-size: 1rem;
    line-height: 1;
}

    .booking-summary-next-btn {
        flex: 0 0 auto !important;
        min-width: 6.25rem;
    }
}

/* Desktop: barra de resumo com botão Seguinte / Pagamento mais alto */
@media (min-width: 992px) {
    .booking-summary-footer .booking-summary-next-btn {
        font-size: 1rem;
        padding-left: var(--booking-action-btn-padding-x);
        padding-right: var(--booking-action-btn-padding-x);
    }
}

.flatpickr-current-month {
    padding: 11.5px 0 0 0 !important;
}

/* Step 3 — secção de pagamento / pré-pagamento */
.booking-payment-breakdown {
    background: var(--bs-light, #f8f9fa);
    border: 1px solid var(--bs-border-color);
    padding: 0.65rem 0.85rem;
}

.booking-payment-breakdown__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
}

.booking-payment-breakdown__row + .booking-payment-breakdown__row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-payment-breakdown__row--muted .booking-payment-breakdown__label,
.booking-payment-breakdown__row--muted .booking-payment-breakdown__value {
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
}

.booking-payment-breakdown__label {
    color: var(--bs-body-color);
}

.booking-payment-breakdown__value {
    font-weight: 600;
    white-space: nowrap;
}

.booking-payment-wallet-option {
    border: 1px solid var(--bs-border-color);
    background: #fff;
    padding: 0.85rem 1rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.booking-payment-wallet-option--active {
    border-color: rgba(25, 135, 84, 0.45);
    background: rgba(25, 135, 84, 0.04);
}

.booking-payment-wallet-option__check .form-check-input {
    margin-top: 0.2rem;
}

.booking-payment-credits-only {
    background: rgba(25, 135, 84, 0.06);
    border: 1px solid rgba(25, 135, 84, 0.2);
    padding: 0.85rem 1rem;
}

.booking-payment-credits-only__icon {
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.booking-payment-card-section {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

/* Step 3 — política de cancelamento (linha temporal) */
.booking-cancel-policy__empty {
    line-height: 1.45;
}

.booking-cancel-policy__timeline {
    padding-top: 0.15rem;
}

.booking-cancel-policy__warning {
    margin-bottom: 0;
    line-height: 1.45;
}

.booking-cancel-policy__track-wrap {
    margin-bottom: 0.85rem;
    overflow: hidden;
    padding-top: 3.2rem;
}

.booking-cancel-policy__track {
    position: relative;
    height: 4px;
    margin: 0 0 0.35rem;
    border-radius: 999px;
    background: #e5e7eb;
}

.booking-cancel-policy__deadline-point {
    position: absolute;
    top: 50%;
    left: 62%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 0.5rem);
}

.booking-cancel-policy__badge-stack {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(16rem, 78vw);
}

.booking-cancel-policy__badge {
    display: inline-block;
    max-width: 100%;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.booking-cancel-policy--unavailable .booking-cancel-policy__badge {
    background: #6b7280;
}

.booking-cancel-policy__badge-limit {
    margin-top: 0.15rem;
    font-size: 0.6rem;
    color: #6b7280;
    white-space: nowrap;
    text-align: center;
}

.booking-cancel-policy--unavailable .booking-cancel-policy__pin {
    border-color: #d97706;
    color: #b45309;
    background: #fffbeb;
}

.booking-cancel-policy__pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid #9ca3af;
    background: #fff;
    color: #6b7280;
    font-size: 0.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.booking-cancel-policy__axis {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.booking-cancel-policy__axis-label {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.booking-cancel-policy__axis-end {
    text-align: right;
}

.booking-cancel-policy__description {
    line-height: 1.5;
}

.booking-cancel-policy__description strong {
    color: #111;
    font-weight: 600;
}

/* WhatsApp de suporte — canto inferior esquerdo */
.booking-support-whatsapp {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1025;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.18);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.booking-support-whatsapp:hover,
.booking-support-whatsapp:focus-visible {
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 0.35rem 1.25rem rgba(15, 23, 42, 0.22);
}

.booking-support-whatsapp:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.booking-support-whatsapp i {
    font-size: 1.7rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .booking-support-whatsapp {
        width: 2.75rem;
        height: 2.75rem;
        left: max(0.88rem, env(safe-area-inset-left, 0px));
    }

    .booking-support-whatsapp i {
        font-size: 1.35rem;
    }

    /* Com barra de resumo fixa: encostado por cima da faixa de totais */
    body:has(.booking-app #booking-summary-total:not(.is-hidden)) .booking-support-whatsapp {
        bottom: calc(var(--booking-mobile-summary-bar-height) + env(safe-area-inset-bottom, 0px) + 0.2rem);
    }

    /* Resumo expandido: ocultar atrás do painel (z-index inferior à barra 1040) */
    body:has(.booking-summary-footer.is-drawer-open) .booking-support-whatsapp {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (min-width: 992px) {
    .booking-support-whatsapp {
        left: max(1.25rem, env(safe-area-inset-left, 0px));
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
}

.booking-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 0.85rem 0;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(17, 24, 39, 0.96);
    color: #f9fafb;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.booking-cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.booking-cookie-consent__text {
    flex: 1 1 16rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #e5e7eb;
}

.booking-cookie-consent__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.booking-cookie-consent__link:hover {
    color: #f3f4f6;
}

.booking-cookie-consent__accept {
    min-width: 6.5rem;
}

body.booking-body:has(.booking-cookie-consent:not(.d-none)) .booking-support-whatsapp {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    body.booking-body:has(.booking-cookie-consent:not(.d-none)) .booking-support-whatsapp {
        bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }
}
