/* Stili condivisi dell’area clienti Comfort Zona. */
:root {
    --cz-bg: #f8f6f1;
    --cz-surface: #fff;
    --cz-surface-warm: #f7f3ea;
    --cz-border: #e8e0d5;
    --cz-text-dark: #162421;
    --cz-text-muted: #52645e;
    --cz-action: #22524c;
    --cz-action-hover: #183f3b;
    --cz-action-border: #bfa57d;
    --cz-input-border: #89978f;
    --cz-control-radius: 12px;
    --cz-panel-radius: 18px;
    --cz-panel-shadow: 0 2px 10px rgba(45, 50, 40, .045);
    --cz-panel-padding: clamp(16px, 2.4vw, 24px);
    --cz-serif: 'Playfair Display', Georgia, serif;
    --app-width: 66rem;
    --app-gutter: clamp(1rem, 3vw, 2rem);
    --app-header-fallback: calc(67px + env(safe-area-inset-top, 0px));
    --fs-page-title: clamp(1.65rem, 3.2vw, 2.25rem);
    --fs-section-title: 1.25rem;
}

/* Il simbolo e l’azione primaria riprendono il popup di riferimento. */
.cz-customer {
    background: var(--cz-bg);
    color: var(--cz-text-dark);
}

.cz-customer i.ph-light { line-height: 1; }

.cz-symbol {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--cz-action);
    color: #fff;
    font-size: 1.25rem;
}

html:has(.cz-dashboard) {
    scroll-padding-bottom: calc(var(--bottom-nav-real, var(--bottom-nav-height)) + 12px);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--cz-primary-dark);
    border-bottom: 1px solid var(--cz-border);
    color: var(--cz-white);
}

.app-header-inner,
.desktop-nav-inner,
.app-container {
    width: 100%;
    max-width: var(--app-width);
    margin-inline: auto;
    padding-inline: max(var(--app-gutter), env(safe-area-inset-left, 0px))
                    max(var(--app-gutter), env(safe-area-inset-right, 0px));
}

.app-header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 8px;
}

.app-brand {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-family: var(--cz-serif);
    font-size: var(--fs-3xl);
    font-weight: 600;
}

.app-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--cz-control-radius);
}

.header-logo-mini {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-action {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: var(--cz-control-radius);
    background: transparent;
    color: var(--cz-white);
    font-size: var(--fs-3xl);
    cursor: pointer;
}

.header-action:hover,
.header-action:active {
    background: rgba(255, 255, 255, .12);
    border-color: var(--cz-white);
}

@media (display-mode: standalone) {
    #pwaInstallBtn { display: none; }
}

.desktop-nav {
    display: none;
    background: var(--cz-surface);
    border-top: 1px solid var(--cz-border);
}

.desktop-nav-inner {
    display: flex;
    gap: 24px;
}

.desktop-tab-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--cz-text-muted);
    font-weight: 600;
    font-size: var(--fs-lg);
    cursor: pointer;
}

.desktop-tab-btn:hover,
.desktop-tab-btn.active {
    color: var(--cz-primary-dark);
}

.desktop-tab-btn.active {
    border-bottom-color: var(--cz-primary);
}

.bottom-nav {
    padding-top: 4px;
    background: var(--cz-surface);
    box-shadow: 0 -2px 10px rgba(45, 50, 40, .045);
}

.bottom-nav .nav-item {
    min-height: 48px;
    color: var(--cz-text-muted);
}

.bottom-nav .nav-item.active { color: var(--cz-primary-dark); }

.bottom-nav .nav-item.active::after {
    background: var(--cz-primary);
    box-shadow: none;
}

.app-container { padding-block: 24px 32px; }

.page-title {
    margin: 0 0 20px;
    font: 700 var(--fs-page-title)/1.16 var(--cz-serif);
    color: var(--cz-text-dark);
    overflow-wrap: anywhere;
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.page-heading .page-title { margin: 0; }

.home-grid,
.home-primary,
.home-service-column,
.home-tools-column {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.home-grid,
.home-service-column { row-gap: 24px; }

.home-primary > .home-hero-card,
.home-club,
.home-tool,
.loyalty-pass {
    min-width: 0;
    margin: 0;
    padding: var(--cz-panel-padding);
    background: var(--cz-surface);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-panel-radius);
    box-shadow: var(--cz-panel-shadow);
}

.home-primary > .home-hero-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--cz-text-dark);
}

.home-primary .home-hero-card.is-active-app,
.home-primary .home-hero-card.is-empty {
    background: var(--cz-surface);
    border-color: var(--cz-border);
    box-shadow: var(--cz-panel-shadow);
}

.home-primary .home-hero-card.is-empty { justify-content: center; }

.home-hero-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home-hero-main > div { min-width: 0; }

.home-primary .home-hero-eyebrow {
    margin-bottom: 4px;
    color: var(--cz-text-muted);
    font-size: var(--fs-sm);
    text-transform: none;
    letter-spacing: 0;
}

.home-primary .home-hero-title {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    color: var(--cz-text-dark);
}

.home-primary .home-hero-card .home-hero-meta {
    margin-top: 14px;
    color: var(--cz-text-dark);
}

.home-hero-duration { white-space: nowrap; }

.home-primary .home-hero-payment {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cz-text-muted);
    font-weight: 500;
}

.home-primary .home-hero-payment.is-onsite { color: var(--cz-gold-text); }
.home-primary .home-hero-actions { width: 100%; }
.home-primary .home-hero-btn { flex: 1 1 auto; justify-content: center; }

.home-club-header,
.home-club-body,
.loyalty-pass-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.home-club-header h2,
.home-section-title {
    font: 700 var(--fs-section-title)/1.25 var(--cz-serif);
    color: var(--cz-text-dark);
    margin: 0;
}

.home-club-tier {
    padding: 4px 8px;
    border-radius: var(--radius-tag);
    background: var(--cz-gold-light);
    color: var(--cz-gold-text);
    font-size: var(--fs-2xs);
    font-weight: 600;
}

.home-club-body {
    margin-top: 8px;
    column-gap: 8px;
}

.home-club-body > div {
    flex: 1 1 9rem;
    min-width: 0;
}

.home-club-points {
    font: 600 var(--fs-page-title)/1.05 var(--font-heading);
    color: var(--cz-text-dark);
}

.home-club-points span {
    font: 600 var(--fs-md)/1.25 var(--font-main);
    color: var(--cz-text-muted);
}

.home-club-note,
.home-tool-note,
.home-empty-note {
    font-size: var(--fs-lg);
    line-height: 1.45;
    color: var(--cz-text-muted);
}

.home-club-note { margin-top: 4px; }

.home-club-progress {
    margin-top: 12px;
    height: 4px;
    border-radius: var(--radius-tag);
    background: var(--cz-gold-light);
}

.home-club-progress > div {
    height: 100%;
    border-radius: inherit;
    background: var(--cz-action);
}

.home-section-title { margin-bottom: 10px; }

.home-section-count {
    font: 600 var(--fs-md)/1.25 var(--font-main);
    color: var(--cz-text-muted);
}

.home-categories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--cz-surface);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-panel-radius);
    box-shadow: var(--cz-panel-shadow);
}

.home-categories button {
    min-height: 72px;
    min-width: 0;
    padding: 8px 3px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--cz-primary-dark);
    font-size: var(--fs-2xs);
    font-weight: 600;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.home-categories button:first-child { border-radius: var(--cz-panel-radius) 0 0 var(--cz-panel-radius); }
.home-categories button:last-child { border-radius: 0 var(--cz-panel-radius) var(--cz-panel-radius) 0; }
.home-categories button + button { border-inline-start: 1px solid var(--cz-border); }
.home-categories button i { font-size: var(--fs-section-title); }
.home-categories button:hover,
.home-categories button:active { background: var(--cz-primary-soft); }

.home-wallet-items .wallet-item-card:last-child {
    margin-bottom: 0;
}

.home-wallet-items .wallet-btn-group button,
.home-club .home-club-qr,
.home-tool button.btn-pill-primary,
.home-tool button.btn-pill-outline {
    min-height: 44px;
    border-radius: var(--radius-control);
}

.home-voucher-form,
.home-referral-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.home-tool-note { margin-bottom: 10px; }

.home-tool .form-control-custom {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    border-radius: var(--radius-control);
}

.home-text-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--cz-primary);
    font: 600 var(--fs-md)/1.35 var(--font-main);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.home-text-action:hover { text-decoration: underline; }

.home-club-qr i,
.home-text-action i { font-size: var(--fs-base); }
.home-tool > .home-text-action { margin-top: 4px; }

.profile-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-avatar-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
}

.profile-avatar-circle {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-family: var(--cz-serif);
    font-size: var(--fs-section-title);
    font-weight: 600;
}

.profile-name-title {
    font: 600 var(--fs-section-title)/1.25 var(--font-heading);
    color: var(--cz-text-dark);
    overflow-wrap: anywhere;
}

.profile-tier-sub {
    color: var(--cz-text-muted);
    font-size: var(--fs-lg);
}

.profile-notification {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--cz-border);
}

.profile-notification > span { flex: 1; }
.profile-form-title { margin-bottom: 14px; }

.profile-notification[hidden] { display: none; }

.profile-notification[aria-disabled="true"] {
    color: var(--cz-text-muted);
    text-decoration: none;
    cursor: default;
}

.profile-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--cz-border);
}

.loyalty-pass { margin-bottom: 12px; }

.loyalty-pass-heading .home-section-title { margin-bottom: 2px; }

.loyalty-pass-name {
    color: var(--cz-text-muted);
    font-size: var(--fs-lg);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.loyalty-pass .home-club-body { margin-top: 14px; }

.loyalty-reward-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    background: var(--cz-surface-warm);
    color: var(--cz-text-dark);
    font-size: var(--fs-lg);
    line-height: 1.4;
    text-decoration: none;
}

.loyalty-reward-link > span { flex: 1; }

a.loyalty-reward-link:hover { border-color: var(--cz-action-border); }

.loyalty-tool { margin-bottom: 18px; }

.fedelta-subnav {
    flex-wrap: nowrap;
    gap: 4px;
}

.fedelta-subnav .subnav-chip {
    flex: 1 0 auto;
    justify-content: center;
    min-height: 44px;
    gap: 4px;
    padding: 7px 5px;
}

.fedelta-subnav .subnav-chip:focus-visible { outline-offset: -3px; }

@media (max-width: 380px) {
    .fedelta-subnav .subnav-chip i { display: none; }
}

.rewards-filter-pills {
    flex-wrap: wrap;
    overflow: visible;
    padding-inline: 0;
}

.rewards-filter-pills .reward-filter-chip {
    min-height: 44px;
    padding: 7px 10px;
}

.cz-dashboard .reward-card-ready:hover {
    transform: none;
    box-shadow: var(--cz-panel-shadow);
}

.rewards-grid .btn-redeem-active {
    width: auto;
    min-height: 44px;
}

.treatment-group-title {
    padding-block: 14px 4px;
    font: 700 var(--fs-section-title)/1.25 var(--cz-serif);
    color: var(--cz-text-dark);
    text-transform: none;
    letter-spacing: 0;
}

.treatment-row-name { font-size: var(--fs-xl); }
.treatment-item-row { padding: 12px 14px; }
.treatment-row-meta { border-top: 0; padding-top: 0; }
.treatment-row-duration { white-space: normal; }

.booking-manage-link {
    width: 100%;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 8px 12px;
    gap: 8px;
    background: var(--cz-surface);
    text-align: left;
}

.booking-manage-link > span { flex: 1; }

.treatment-cat-chip.active,
.treatment-cat-chip.active:hover,
.treatment-cat-chip.active:focus,
.treatment-item-row {
    box-shadow: none;
}

.treatment-item-row:hover {
    border-color: var(--cz-primary-border);
    box-shadow: none;
}

/* Superfici, azioni e campi dei flussi cliente. */
.cz-dashboard :is(.card-custom, .wallet-item-card, .treatment-item-row, .booking-ticket-card,
                   .reward-card-ready, .reward-card-locked, .treatments-empty-state) {
    background: var(--cz-surface);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-panel-radius);
    box-shadow: var(--cz-panel-shadow);
}

.cz-dashboard .booking-ticket-top { background: var(--cz-surface-warm); }

.appointment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.appointments-list { display: grid; gap: 12px; }
.appointments-list .booking-ticket-card { margin: 0; }
.appointments-list .booking-ticket-details { flex-wrap: wrap; }

.cz-customer :is(.booking-ticket-name, .detail-modal-title) {
    color: var(--cz-text-dark);
}

.cz-dashboard :is(.reward-pill-ready, .reward-pill-locked) {
    background: var(--cz-surface-warm);
    color: var(--cz-gold-text);
    box-shadow: none;
}

.cz-dashboard :is(.btn-pill-primary, .btn-submit-main, .btn-step-nav-next, .btn-redeem-active,
                  .btn-detail-checkout, .btn-detail-book-agenda, .booking-ticket-move-btn),
.cz-auth-page button.btn-submit,
.cz-receipt-page a.btn-primary {
    background: var(--cz-action);
    color: #fff;
    border: 1px solid var(--cz-action-border);
    border-radius: var(--cz-control-radius);
    box-shadow: 0 1px 3px rgba(22, 36, 33, .16);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.cz-dashboard :is(.btn-pill-primary, .btn-submit-main, .btn-step-nav-next, .btn-redeem-active,
                  .btn-detail-checkout, .btn-detail-book-agenda, .booking-ticket-move-btn):hover:not(:disabled),
.cz-auth-page button.btn-submit:hover,
.cz-receipt-page a.btn-primary:hover {
    background: var(--cz-action-hover);
    color: #fff;
    transform: none;
    box-shadow: 0 1px 3px rgba(22, 36, 33, .16);
}

.cz-dashboard :is(.btn-pill-primary, .btn-submit-main, .btn-step-nav-next, .btn-redeem-active):disabled {
    background: #e4e9e4;
    color: var(--cz-text-muted);
    border-color: #d5ded7;
    opacity: 1;
    box-shadow: none;
}

.cz-dashboard :is(.btn-pill-outline, .btn-step-nav-back, .btn-service-book-action,
                  .btn-service-buy-action, .subnav-chip, .reward-filter-chip),
.cz-receipt-page :is(a.btn-outline, a.btn-whatsapp) {
    background: var(--cz-surface);
    color: var(--cz-action);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
}

.cz-dashboard :is(.btn-pill-outline, .btn-step-nav-back, .btn-service-book-action,
                  .btn-service-buy-action, .subnav-chip, .reward-filter-chip):hover,
.cz-receipt-page :is(a.btn-outline, a.btn-whatsapp):hover {
    background: var(--cz-primary-soft, #eef5f4);
    border-color: var(--cz-action);
    color: var(--cz-action);
    transform: none;
    box-shadow: none;
}

.cz-dashboard :is(.subnav-chip, .reward-filter-chip).active {
    background: var(--cz-primary-soft);
    border-color: var(--cz-action);
    color: var(--cz-action);
}

.cz-dashboard :is(.form-control-custom, .treatment-search-input, .ticket-notes-textarea),
.cz-auth-page .auth-container .input-group input {
    border: 1px solid var(--cz-input-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
    min-height: 44px;
}

/* Prenotazione: passi, selezione e riepilogo. */
.booking-canvas-body { padding: var(--cz-panel-padding); }

.booking-canvas-card .booking-stepper-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 12px;
    background: var(--cz-surface);
}

.booking-canvas-card .stepper-line { display: none; }

.booking-canvas-card button.stepper-step {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 6px 4px;
    border-radius: var(--cz-control-radius);
    text-align: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.booking-canvas-card button.stepper-step.active,
.booking-canvas-card button.stepper-step:hover { background: var(--cz-primary-soft); }

.stepper-step .step-num {
    flex: none;
    background: var(--cz-bg);
    color: var(--cz-text-muted);
    border-radius: var(--radius-tag);
    box-shadow: none;
}

.stepper-step.active .step-num {
    background: var(--cz-action);
    color: var(--cz-white);
    box-shadow: none;
}

.stepper-step.completed .step-num {
    background: var(--cz-surface-warm);
    color: var(--cz-gold-text);
}

.booking-canvas-card button.custom-select-box {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    background: var(--cz-surface);
    text-align: left;
    box-shadow: none;
}

.booking-canvas-card button.custom-select-box:hover {
    border-color: var(--cz-action);
    background: var(--cz-primary-soft);
}

.booking-picker-symbol,
.booking-summary-symbol {
    width: 40px;
    height: 40px;
    border-radius: var(--cz-control-radius);
}

.booking-picker-caret { margin-inline-start: auto; color: var(--cz-action); }
.booking-canvas-card .custom-select-main { white-space: normal; overflow-wrap: anywhere; }

.booking-wallet-prompt,
.booking-feedback,
.step-recap-pill,
.booking-date-badge {
    padding: 12px;
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    background: var(--cz-bg);
    color: var(--cz-text-dark);
    font-size: var(--fs-lg);
    line-height: 1.45;
}

.booking-wallet-prompt { margin-top: 16px; }
.booking-wallet-prompt .home-section-title {
    margin-bottom: 10px;
    font: 700 var(--fs-3xl)/1.25 var(--cz-serif);
    color: var(--cz-text-dark);
}

.booking-wallet-prompt .btn-wallet-quick-chip {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 10px;
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    background: var(--cz-surface);
    color: var(--cz-action);
    white-space: normal;
    text-align: left;
}

.booking-wallet-prompt .btn-wallet-quick-chip:hover {
    border-color: var(--cz-action);
    background: var(--cz-primary-soft);
}

.booking-wallet-prompt .wallet-chip-badge,
.booking-wallet-prompt .btn-wallet-quick-chip:hover .wallet-chip-badge {
    background: var(--cz-surface-warm);
    color: var(--cz-gold-text);
}

.booking-canvas-card .selected-treatment-item-clean {
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
}

.selected-treatment-item-clean .selected-treatment-details { flex: 1 1 9rem; }
.selected-treatment-item-clean .selected-treatment-title { overflow-wrap: anywhere; }
.selected-treatment-item-clean .selected-treatment-meta { flex-wrap: wrap; }

.selected-treatment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-treatment-actions .selected-treatment-remove-btn {
    justify-content: center;
    padding: 0;
    font-size: var(--fs-3xl);
}

.booking-date-badge {
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
}

.booking-canvas-card .quick-day-chip,
.booking-canvas-card .slot-time-pill {
    background: var(--cz-surface);
    border-color: var(--cz-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
}

.booking-canvas-card :is(.quick-day-chip, .slot-time-pill):hover:not(.selected):not(:disabled) {
    background: var(--cz-primary-soft);
    border-color: var(--cz-action);
}

.booking-canvas-card :is(.quick-day-chip, .slot-time-pill).selected {
    background: var(--cz-action);
    color: var(--cz-white);
    border-color: var(--cz-action-border);
    box-shadow: none;
}

.booking-canvas-card .cz-cal-day-cell.selected { background: var(--cz-action) !important; }

.booking-canvas-card .quick-day-chip .day-name {
    text-transform: none;
    letter-spacing: 0;
}

.booking-canvas-card :is(.slot-period-card, .cz-custom-calendar-card) {
    background: var(--cz-surface);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
}

.booking-canvas-card .slot-period-heading-icon { color: var(--cz-text-muted); }

.booking-feedback { color: var(--cz-text-muted); }

.booking-feedback-loading {
    align-items: center;
    gap: 8px;
}

.booking-canvas-card .step2-docked-bar {
    background: var(--cz-surface);
    box-shadow: var(--cz-panel-shadow);
}

.booking-canvas-card .btn-docked-step2 {
    max-width: 60%;
    white-space: normal;
}

.booking-canvas-card :is(.step2-docked-day-row, .step2-docked-time-row) { white-space: normal; }

.booking-canvas-card .cz-booking-ticket {
    margin-top: 0;
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-panel-radius);
    box-shadow: none;
}

.cz-booking-ticket .ticket-header-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--cz-border);
}

.cz-booking-ticket .ticket-treatment-name {
    margin: 0 0 3px;
    font: 700 var(--fs-section-title)/1.25 var(--cz-serif);
    color: var(--cz-text-dark);
    overflow-wrap: anywhere;
}

.booking-summary-duration {
    color: var(--cz-text-muted);
    font-size: var(--fs-md);
}

.cz-booking-ticket .ticket-body-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    gap: 14px 12px;
}

.cz-booking-ticket .ticket-info-label {
    text-transform: none;
    letter-spacing: 0;
}

.cz-booking-ticket .ticket-info-val { overflow-wrap: anywhere; }

.cz-booking-ticket .ticket-pricing-footer {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px;
    border-top: 1px solid var(--cz-border);
    background: var(--cz-bg);
}

.cz-booking-ticket .pricing-left {
    flex: 1 1 8rem;
    padding: 0;
}

.cz-booking-ticket .pricing-sub { line-height: 1.45; }

.booking-canvas-card .ticket-notes-card { margin-block: 16px 12px; }
.booking-canvas-card .ticket-notes-label { color: var(--cz-text-dark); }
.booking-canvas-card .ticket-policy-line { color: var(--cz-text-muted); }

#bookingWalletLimitMessage {
    margin: 0 16px 8px;
    padding: 10px 12px;
}

.treatment-modal-box .modal-sheet-title {
    font: 700 var(--fs-section-title)/1.25 var(--cz-serif);
    color: var(--cz-text-dark);
}

.treatment-modal-box .search-input-wrap input {
    border: 1px solid var(--cz-input-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
}

.treatment-modal-box .treatment-option-card {
    align-items: center;
    border-color: var(--cz-border);
    border-radius: var(--cz-control-radius);
    box-shadow: none;
}

@media (max-width: 480px) {
    .booking-canvas-card button.stepper-step { flex-direction: column; }
}

.cz-dashboard .modal-overlay { background: rgba(19, 27, 24, .64); }
.cz-dashboard .modal-box { border-radius: var(--cz-panel-radius); }

.cz-dashboard .detail-modal-header,
.cz-dashboard .modal-sheet-header { background: var(--cz-surface); }

.cz-dashboard .cz-symbol.cz-app-hero-icon {
    background: var(--cz-action);
    border-radius: 14px;
}

.cz-customer :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--cz-action);
    outline-offset: 3px;
}

.cz-dashboard .app-header-inner :focus-visible {
    outline-color: var(--cz-white);
}

.cz-auth-page header {
    background: var(--cz-surface);
    border-bottom: 1px solid var(--cz-border);
    box-shadow: none;
}

.cz-auth-page .auth-container,
.cz-receipt-page .success-container {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(20px, 5vw, 32px);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-panel-radius);
    background: var(--cz-surface);
    box-shadow: var(--cz-panel-shadow);
    animation: none;
}

.cz-auth-page .auth-container { max-width: 28rem; }

.cz-auth-page .auth-symbol,
.cz-receipt-page .success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    font-size: 1.45rem;
    background: var(--cz-action);
    border-radius: 14px;
    animation: none;
}

.cz-auth-page .auth-title,
.cz-receipt-page h1 {
    margin: 0 0 8px;
    font: 700 clamp(1.55rem, 3vw, 2rem)/1.2 var(--cz-serif);
    color: var(--cz-text-dark);
    text-align: center;
}

.cz-auth-page p.subtitle,
.cz-receipt-page p.subtitle {
    margin: 0 0 22px;
    color: var(--cz-text-muted);
    text-align: center;
    line-height: 1.55;
}

.cz-auth-page .auth-symbol { display: grid; }
.cz-auth-page .auth-container :is(.switch-btn, .back-link) {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

.cz-auth-page .auth-container .field-label {
    margin-left: 0;
    color: var(--cz-text-dark);
}

.cz-auth-page .auth-container .input-group i { color: var(--cz-action); }

.cz-receipt-page .success-icon.pending {
    background: var(--cz-surface-warm);
    color: #76572e;
}

.cz-receipt-page .success-icon.error {
    background: #f6eae6;
    color: #8d4038;
}

.cz-receipt-page :is(.order-detail, .instructions) {
    background: var(--cz-bg);
    border: 1px solid var(--cz-border);
    border-radius: var(--cz-control-radius);
}

.cz-receipt-page .btn { text-transform: none; letter-spacing: 0; }
.cz-receipt-page .order-detail .value { overflow-wrap: anywhere; }

.treatment-categories-wrap::before,
.treatment-categories-wrap::after {
    font-family: 'Phosphor-Light';
    font-weight: normal;
    font-size: var(--fs-xl);
}

.treatment-categories-wrap::before { content: '\e138'; }
.treatment-categories-wrap::after { content: '\e13a'; }

.cz-spin { animation: cz-spin 0.9s linear infinite; }
@keyframes cz-spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
    :root {
        --app-header-fallback: calc(115px + env(safe-area-inset-top, 0px));
    }

    html:has(.cz-dashboard) { scroll-padding-bottom: 16px; }
    body.cz-dashboard { padding-bottom: 0; }
    .desktop-nav { display: block; }
    .app-container { padding-block: 28px 36px; }

    .tab-content:not(#tab-home) {
        max-width: 44rem;
        margin-inline: auto;
    }

    #tab-trattamenti { max-width: 52rem; }
    .home-grid { --home-columns: minmax(0, 1.24fr) minmax(0, 1fr); }
    .home-grid,
    .home-primary { grid-template-columns: var(--home-columns); }
    .home-primary {
        grid-column: 1 / -1;
        align-items: stretch;
    }
    .home-primary .home-hero-btn { flex: 0 1 auto; }
    .home-primary .home-hero-actions {
        margin-top: auto;
        padding-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cz-spin { animation: none; }
    .nav-item:active { transform: none; }
    .cz-receipt-page .polling-msg i { animation: none; }
}
