﻿:root {
    --primary-red: var(--brand-catalogo, #ea1d2c);
    --primary-soft: color-mix(in srgb, var(--primary-red) 8%, white);
    --primary-soft-strong: color-mix(in srgb, var(--primary-red) 16%, white);
    --primary-soft-stronger: color-mix(in srgb, var(--primary-red) 22%, white);
    --primary-border-soft: color-mix(in srgb, var(--primary-red) 26%, white);
    --primary-shadow-soft: color-mix(in srgb, var(--primary-red) 16%, transparent);
    --primary-shadow-strong: color-mix(in srgb, var(--primary-red) 26%, transparent);
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #717171;
    --nav-color: #a6a6a6;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #f0f0f0;
    --star-color: #e8a628;
    --success-color: #2e7d32;
    --blue-drink: #85d0f5;
    --story-ring-start: #f99f2e;
    --story-ring-mid: #e22a6f;
    --story-ring-end: #bc2a8d;
    --story-viewed: #dbdbdb;
    --payment-active-border: #0090ff;
    --payment-active-bg: #f0f8ff;
    --payment-inactive-icon: #888aa0;
}
/* ================= REFINAMENTO DARK MODE ================= */
body.dark-mode {
    color-scheme: dark; /* Ajuda o navegador a renderizar barras de rolagem nativas no modo dark */
    --text-light: #f5f5f5;
    --text-dark: #f5f5f5; /* Branco quase puro para títulos */
    --text-muted: #b0b0b0; /* Cinza claro para descrições */
    --bg-body: #121212; /* Fundo total (mais escuro) */
    --bg-card: #1e1e1e; /* Superfície dos cards e modais (um pouco mais clara) */
    --border-color: #2c2c2c; /* Bordas sutis, mas visíveis */
    --nav-color: #888888;
}

    /* Ajuste sutil para as sombras no modo escuro (elas não podem ser pretas puras) */
    body.dark-mode .product-card,
    body.dark-mode .modal-container,
    body.dark-mode .info-section-box {
        background-color: var(--bg-card);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--border-color); /* No dark, a borda é quem define o limite do card */
    }

    body.dark-mode .product-img-wrap {
        background: #141414;
    }

    body.dark-mode .product-name,
    body.dark-mode .price-current {
        color: var(--text-dark);
    }

    body.dark-mode .product-desc,
    body.dark-mode .price-old {
        color: var(--text-muted);
    }

    /* Inputs e Textareas no Dark Mode */
    body.dark-mode .obs-textarea,
    body.dark-mode .search-input,
    body.dark-mode .quantity-selector {
        background-color: #252525 !important;
        border: 1px solid #333 !important;
        color: #fff !important;
    }

    /* Ajuste nos botões de controle de quantidade */
    body.dark-mode .qty-btn,
    body.dark-mode .extra-qty-btn {
        background-color: #2a2a2a;
        color: var(--primary-red);
    }

    /* Cor de fundo quando o item de complemento é clicado/selecionado */
    body.dark-mode .extra-item:active {
        background-color: #252525;
    }

    /* Ajuste nos divisores de seção do modal */
    body.dark-mode .modal-section {
        background-color: var(--bg-card);
        border-bottom: 4px solid #121212; /* Cria uma separação visual entre blocos */
    }
    /* Melhora os botões de topo no modo escuro */
    body.dark-mode .fixed-theme-btn,
    body.dark-mode .fixed-search-btn,
    body.dark-mode .modal-header-btn {
        background-color: #2a2a2a !important;
        color: #fff !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }

    body.dark-mode .app-container,
    body.dark-mode .store-profile,
    body.dark-mode .category-nav,
    body.dark-mode .bottom-nav,
    body.dark-mode .modal-header,
    body.dark-mode .modal-footer,
    body.dark-mode .prod-modal-info,
    body.dark-mode .modal-body {
        background-color: var(--bg-card) !important;
        color: var(--text-dark) !important;
    }

    body.dark-mode .modal-store-info-header {
        background: #171717 !important;
        border-bottom-color: #303030 !important;
    }

    body.dark-mode .modal-store-info-title,
    body.dark-mode .store-info-address-value {
        color: var(--text-dark) !important;
    }

    body.dark-mode .store-info-description,
    body.dark-mode .store-info-section-icon {
        color: var(--text-muted) !important;
    }

    body.dark-mode .btn-outline-custom {
        background: #1f1f1f !important;
        border-color: #313131 !important;
        color: var(--text-dark) !important;
    }

    body.dark-mode .btn-outline-custom:active {
        background: #252525 !important;
    }

    body.dark-mode .schedule-row {
        color: var(--text-dark) !important;
    }

    body.dark-mode .fixed-chat-btn {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    }

    body.dark-mode .modal-chat-intro,
    body.dark-mode .chat-form-card,
    body.dark-mode .chat-bubble {
        background: #1f1f1f;
    }

    body.dark-mode .chat-bubble.user {
        background: rgba(234, 29, 44, 0.14);
    }

    body.dark-mode .btn-order-chat {
        background: rgba(255, 207, 92, 0.12);
        border-color: rgba(255, 255, 255, 0.08);
        color: var(--text-light);
    }

    body.dark-mode .modal-chat-footer {
        background: var(--bg-card);
        border-top-color: rgba(255, 255, 255, 0.08);
    }
/* Transição suave para todos os elementos que mudam de cor */
body, div, section, header, footer, button, input, textarea, span, h2, p {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ================= ESTRUTURA BASE ================= */
#divLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.dark-mode #divLoading {
    background: rgba(18,18,18,0.9);
}

.app-container {
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--bg-card);
    min-height: 100dvh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    transition: background-color 0.3s ease;
}

.main-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .main-view.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ================= BOTÕES FLUTUANTES TOPO ================= */
/* Botão Tema (Rola com a página) */
.fixed-theme-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
    background: white;
    color: var(--text-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 18px;
    transition: transform 0.2s, background 0.3s, color 0.3s;
}

/* Botão Pesquisa (Fixo na tela) */
.fixed-search-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: white;
    color: var(--primary-red);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 18px;
    transition: transform 0.2s, background 0.3s, color 0.3s;
}

    .fixed-search-btn:hover, .fixed-theme-btn:hover {
        transform: scale(1.05);
    }

.fixed-mesa-btn {
    position: fixed;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    right: 15px;
    z-index: 100;
    border: none;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fixed-mesa-btn i {
    color: #ffd166;
}

.fixed-mesa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.fixed-chat-btn {
    position: fixed;
    right: 15px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    border: none;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--brand-catalogo);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.fixed-chat-btn i {
    font-size: 15px;
}

/* Mantém o botão de pesquisa alinhado no limite de 960px no Computador */
@media (min-width: 960px) {
    .fixed-search-btn {
        right: calc(50vw - 480px + 15px);
    }
}

@media (min-width: 960px) {
    .fixed-theme-btn {
        left: calc(50vw - 480px + 15px);
    }

    .fixed-search-btn {
        right: calc(50vw - 480px + 15px);
    }

    .fixed-mesa-btn {
        right: calc(50vw - 480px + 15px);
        bottom: 24px;
    }
}

/* ================= BUSCA ================= */
.search-bar-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: 960px;
    height: 70px;
    background: white;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .search-bar-container.active {
        transform: translateX(-50%) translateY(0);
    }

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background: var(--bg-body);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

    .search-input-wrapper i {
        position: absolute;
        left: 15px;
        color: var(--text-muted);
    }

.close-search-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    margin-left: 15px;
    cursor: pointer;
}

/* ================= HEADER E PERFIL DA LOJA ================= */
.header-banner {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #333;
    overflow: hidden;
}

    .header-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.85;
    }

.store-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
    background: white;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

.store-logo-wrapper {
    position: relative;
    margin-top: -45px;
    cursor: pointer;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--story-ring-start), var(--story-ring-mid), var(--story-ring-end));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.3s;
}

    .store-logo-wrapper.no-story {
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        cursor: default;
    }

        .store-logo-wrapper.no-story .badge-novo {
            display: none;
        }

    .store-logo-wrapper.story-viewed {
        background: var(--story-viewed);
    }

        .store-logo-wrapper.story-viewed .badge-novo {
            display: none;
        }

.store-logo {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background-color: var(--bg-card);
    object-fit: contain;
    z-index: 1;
}

.badge-novo {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-red);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    border: 2px solid var(--bg-card);
    z-index: 2;
    white-space: nowrap;
}

.store-name {
    display: block;
    width: 100%;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 10px 0 6px 0;
    letter-spacing: -0.5px;
    text-align: center;
    padding: 0 16px;
    line-height: 1.2;
}

.store-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.store-rating {
    color: var(--star-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.separator {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.5;
}

.store-status-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.status-text {
    font-weight: 700;
    font-size: 13px;
    color: var(--success-color);
}

.status-time {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.status-icon {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 4px;
}

/* ================= CATEGORIAS ================= */
.category-nav {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 40;
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
}

    .category-nav::-webkit-scrollbar {
        display: none;
    }

.cat-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding-bottom: 12px;
}

    .cat-btn.active {
        color: var(--primary-red);
    }

        .cat-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary-red);
            border-radius: 3px 3px 0 0;
        }

.menu-section {
    scroll-margin-top: 55px;
    padding: 10px 15px 20px 15px;
}

#corpoCardapio {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* ================= CARDS DE PRODUTO ================= */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    overflow: hidden;
    height: 125px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

    .product-card:active {
        transform: scale(0.97);
    }

.product-img-wrap {
    width: 115px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-bg {
    background-color: var(--blue-drink);
    color: white;
    font-size: 32px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    height: 100%;
    min-width: 0;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

.product-price-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 6px;
}

.price-old {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.price-promo {
    color: var(--success-color);
    font-size: 15px;
    font-weight: 700;
}

/* ================= NAVIGATION BASE ================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 960px;
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 1000;
}

@supports (-webkit-touch-callout: none) {
    #corpoCardapio {
        padding-bottom: calc(138px + env(safe-area-inset-bottom, 0px));
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nav-color);
    font-size: 10px;
    font-weight: 700;
    flex: 1;
    gap: 4px;
    cursor: pointer;
}

    .nav-item.active {
        color: var(--primary-red);
    }

    .nav-item i {
        font-size: 20px;
        position: relative;
    }

.nav-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #fb3e44;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-card);
}

/* ================= MODAIS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0,0,0,0.7);
    z-index: 13000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .modal-overlay.active {
        display: flex;
    }

body.modal-open .bottom-nav,
body.modal-open .fixed-search-btn,
body.modal-open .fixed-theme-btn,
body.modal-open .fixed-mesa-btn,
body.modal-open .fixed-chat-btn,
body.modal-open .coupon-floating-host,
body.modal-open .catalogo-toast-container {
    pointer-events: none !important;
}

.modal-container {
    background: var(--bg-body);
    width: 100%;
    max-width: 600px;
    max-height: 90dvh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    position: relative;
}

#modalNovoEndereco .modal-endereco-container {
    position: fixed;
    inset: 0;
    margin: 0 auto;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    border-radius: 0;
}

.modal-endereco-header {
    position: sticky;
    top: 0;
    z-index: 60;
    flex-shrink: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.modal-endereco-header-spacer {
    width: 38px;
    height: 38px;
}

/* ================= MODAL DE PRODUTO ESPECÍFICO ================= */
#adicionarItem .modal-container {
    height: 100vh;
    max-height: 100vh;
    max-width: 960px;
    border-radius: 0;
}

.modal-product-header {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 0;
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 180;
    pointer-events: none;
}

.modal-header-btn {
    pointer-events: auto;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

    .modal-header-btn:active {
        background: rgba(20, 20, 20, 0.88);
        transform: scale(0.92);
    }

#adicionarItem .modal-product-header,
#modalPizzaBuilder .modal-product-header {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 24px), 960px);
    padding: 0 15px;
}

.prod-modal-img {
    position: relative;
    width: 100%;
    height: 250px;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    background: var(--bg-body);
}

    .prod-modal-img.expanded {
        height: 100vw;
        max-height: 500px;
    }

.expand-btn-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-overlay-btn,
.expand-img-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

    .image-overlay-btn:active,
    .expand-img-btn:active {
        transform: scale(0.9);
        background: #000;
    }

.prod-modal-info {
    padding: 20px;
    background: white;
    margin-bottom: 10px;
}

.prod-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.prod-modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.prod-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-section {
    padding: 20px;
    background: white;
    margin-bottom: 10px;
}

.modal-section-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    display: block;
    color: var(--text-dark);
}

.modal-section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-section-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-obrigatorio {
    background: var(--text-dark);
    color: var(--bg-card);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.badge-opcional {
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.mesas-view-body {
    padding: 18px 16px 110px;
    background: var(--bg-body);
}

.mesas-access-state,
.mesas-empty-state,
.mesas-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 28px 20px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    text-align: center;
    color: var(--text-muted);
}

.mesas-access-state i,
.mesas-empty-state i,
.mesas-loading-state i {
    font-size: 28px;
    color: var(--primary-red);
}

.mesas-inline-empty {
    margin-top: 6px;
}

.mesas-hero-card,
.mesas-toolbar-card,
.comanda-hero-card,
.comanda-orders-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.mesas-hero-card,
.comanda-hero-card {
    padding: 22px;
    margin-bottom: 16px;
}

.mesas-kicker,
.comanda-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mesas-kicker {
    color: #c2410c;
    background: #ffedd5;
}

.mesas-hero-card h2,
.comanda-hero-card h2 {
    margin: 10px 0 8px;
    font-size: 28px;
    line-height: 1.05;
}

.mesas-hero-card p,
.comanda-hero-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.mesas-hero-actions,
.comanda-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.mesas-hero-btn {
    width: auto;
    min-width: 148px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mesas-toolbar-card {
    padding: 18px;
    margin-bottom: 16px;
}

.mesas-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mesas-filter-chip {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 18px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.mesas-filter-chip strong {
    font-size: 13px;
}

.mesas-filter-chip.active {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(234, 29, 44, 0.14);
    border-color: rgba(234, 29, 44, 0.28);
}

.mesas-filter-chip.active,
.mesas-filter-chip.active i {
    color: var(--primary-red);
}

.mesas-filter-chip.danger.active {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.25);
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.12);
}

.mesas-filter-chip.success.active {
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.25);
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.12);
}

.mesas-search-row {
    margin-top: 14px;
    position: relative;
}

.mesas-search-row i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.mesas-search-row input {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    border-radius: 18px;
    min-height: 52px;
    padding: 0 16px 0 46px;
    font-size: 14px;
    outline: none;
}

.mesas-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.mesa-card-wrap {
    display: block;
}

.mesa-card-new {
    height: 100%;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.mesa-card-new-livre {
    border-color: rgba(21, 128, 61, 0.16);
}

.mesa-card-new-ocupada {
    border-color: rgba(234, 29, 44, 0.18);
}

.mesa-card-new-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mesa-card-code,
.comanda-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.mesa-card-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

.mesa-card-status-pill.livre {
    color: #15803d;
    background: #dcfce7;
}

.mesa-card-status-pill.ocupada,
.comanda-badge {
    color: #b91c1c;
    background: #fee2e2;
}

.mesa-card-new-body h3,
.comanda-orders-head h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.mesa-card-new-body p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.mesa-card-meta-line {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
}

.mesa-card-new-actions {
    display: flex;
    margin-top: 18px;
    gap: 10px;
}

.mesa-card-new-actions.split .mesa-card-btn {
    flex: 1;
}

.mesa-card-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mesa-card-btn-secondary {
    min-height: 52px;
}

.comanda-hero-top,
.comanda-orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comanda-orders-card {
    padding: 18px;
}

.comanda-orders-card-clean {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.comanda-orders-head {
    margin-bottom: 14px;
}

.comanda-orders-head .btn-add-new {
    white-space: nowrap;
}

.mesas-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-mesas-container {
    max-width: 420px;
}

.modal-mesas-key-container {
    max-width: 360px;
}

.modal-mesa-qr-key-container {
    max-width: 380px;
}

.modal-mesa-feedback-body,
.modal-mesa-open-body {
    padding: 20px;
}

.modal-mesa-feedback-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-mesa-feedback-text {
    color: var(--text-muted);
    line-height: 1.65;
}

.modal-mesa-feedback-btn {
    margin-top: 2px;
}

.modal-mesa-open-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-mesa-open-body .profile-input {
    margin-bottom: 0;
}

.modal-mesa-open-btn {
    margin-top: 4px;
}

.modal-senha-mesa-qr-body {
    gap: 14px;
}

.modal-senha-mesa-qr-actions {
    margin-top: 2px;
}

.modal-fechamento-mesa-container {
    position: fixed;
    inset: 0;
    margin: 0 auto;
    width: 100%;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
}

.modal-fechamento-mesa-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.modal-fechamento-mesa-header {
    flex-shrink: 0;
}

.modal-fechamento-mesa-header-spacer {
    width: 38px;
    height: 38px;
}

.fechamento-mesa-summary-shell {
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.06), rgba(255, 210, 102, 0.14));
    border: 1px solid rgba(234, 29, 44, 0.08);
}

.fechamento-mesa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fechamento-mesa-observacao {
    min-height: 96px;
    margin-bottom: 0;
}

.fechamento-mesa-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.fechamento-mesa-history-head strong {
    color: var(--text-color);
    font-size: 14px;
}

.fechamento-mesa-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fechamento-mesa-history-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fechamento-mesa-history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fechamento-mesa-history-top strong {
    font-size: 14px;
    color: var(--text-color);
}

.fechamento-mesa-history-top span {
    color: var(--text-muted);
    font-size: 12px;
}

.fechamento-mesa-history-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fechamento-mesa-history-values span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.fechamento-mesa-actions {
    margin-top: 2px;
}

.modal-fechamento-mesa-actions {
    margin-top: 0;
    position: relative;
    bottom: auto;
    flex-shrink: 0;
    gap: 15px;
    padding: 15px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
    box-shadow: none;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-fechamento-mesa-actions .online-card-cancel,
.modal-fechamento-mesa-actions .online-card-submit {
    min-height: 50px;
    width: 100%;
    border-radius: 8px;
}

.mesas-key-shell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.04);
}

.mesas-key-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #fff0f1;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mesas-key-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mesas-key-copy span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.mesas-key-copy strong {
    font-size: 28px;
    color: var(--text-color);
    letter-spacing: 0.04em;
}

.checkout-mesa-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin: 0 15px 14px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.checkout-mesa-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffd166;
    flex-shrink: 0;
}

.checkout-mesa-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-mesa-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.checkout-mesa-copy strong {
    font-size: 24px;
    line-height: 1.05;
}

.checkout-mesa-copy p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
    .mesas-view-body {
        padding: 16px 14px 110px;
    }

    .mesas-filter-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .mesas-filter-chip {
        padding: 12px 8px;
        gap: 6px;
        font-size: 12px;
    }

    .mesas-filter-chip strong {
        font-size: 12px;
    }

    .mesas-grid-new {
        grid-template-columns: 1fr;
    }

    .mesas-hero-card h2,
    .comanda-hero-card h2 {
        font-size: 24px;
    }

    .mesas-hero-btn {
        width: 100%;
    }

    .comanda-hero-top,
    .comanda-orders-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-mesa-panel {
        padding: 16px;
    }

    .checkout-mesa-copy strong {
        font-size: 21px;
    }

    .modal-mesa-feedback-body,
    .modal-mesa-open-body,
    .modal-fechamento-mesa-body {
        padding: 18px;
    }

    .fechamento-mesa-grid {
        grid-template-columns: 1fr;
    }
}

body.dark-mode .mesas-toolbar-card,
body.dark-mode .comanda-hero-card,
body.dark-mode .comanda-orders-card,
body.dark-mode .mesa-card-new,
body.dark-mode .mesas-key-shell,
body.dark-mode .fechamento-mesa-history,
body.dark-mode .fechamento-mesa-history-item {
    background: #1f1f1f;
    border-color: #323232;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.dark-mode .mesas-filter-chip {
    background: #252525;
    border-color: #343434;
    color: var(--text-dark);
}

body.dark-mode .mesas-filter-chip i,
body.dark-mode .mesas-filter-chip strong {
    color: inherit;
}

body.dark-mode .mesas-filter-chip.active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.dark-mode .mesas-filter-chip.active,
body.dark-mode .mesas-filter-chip.active i,
body.dark-mode .mesas-filter-chip.active strong {
    color: var(--brand-catalogo);
}

body.dark-mode .mesas-filter-chip.danger.active {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

body.dark-mode .mesas-filter-chip.success.active {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
}

body.dark-mode .mesas-search-row input {
    background: #1a1a1a;
    border-color: #303030;
    color: var(--text-dark);
}

body.dark-mode .mesas-search-row input::placeholder {
    color: #7d7d7d;
}

body.dark-mode .mesas-search-row i {
    color: #b4b4b4;
}

body.dark-mode .mesa-card-new-body h3,
body.dark-mode .mesas-key-copy strong,
body.dark-mode .fechamento-mesa-history-top strong {
    color: var(--text-dark);
}

body.dark-mode .modal-fechamento-mesa-actions {
    background: #1f1f1f;
}

body.dark-mode .mesa-card-new-body p,
body.dark-mode .mesas-key-copy span,
body.dark-mode .fechamento-mesa-history-top span,
body.dark-mode .fechamento-mesa-history-values span {
    color: var(--text-muted);
}

body.dark-mode .mesa-card-meta-line {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dark);
}

body.dark-mode .mesa-card-btn-secondary {
    background: #242424;
    border-color: #3a3a3a;
    color: var(--text-dark);
}

body.dark-mode .mesa-card-btn-secondary:hover,
body.dark-mode .mesa-card-btn-secondary:active {
    background: #2b2b2b;
}

body.dark-mode .mesas-key-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd166;
}

    .extra-item:last-child {
        border-bottom: none;
    }

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

.extra-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 52px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border-soft);
}

.extra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.extra-info {
    min-width: 0;
}

.extra-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.extra-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--primary-red);
    cursor: pointer;
}

.extra-qty-val {
    width: 25px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.extra-price {
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 500;
    display: block;
}

.obs-textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    height: 80px;
    background: var(--bg-body);
    color: var(--text-dark);
    outline: none;
}

    .obs-textarea:focus {
        border-color: var(--primary-red);
    }

.modal-footer {
    padding: 15px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    background: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    color: var(--primary-red);
    font-size: 18px;
    cursor: pointer;
}

.quantity-selector span {
    width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--brand-catalogo, var(--primary-red));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

#modalPizzaBuilder .modal-container {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
}

.pizza-modal-container {
    overflow: hidden;
}

.pizza-modal-body {
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    background: var(--bg-body);
}

.pizza-builder-shell {
    padding: 68px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pizza-builder-hero {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff4b6 0%, #ffe778 100%);
    color: #16213e;
}

.pizza-builder-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ff8a00;
    flex-shrink: 0;
}

.pizza-builder-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.pizza-combo-step-indicator {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: #16213e;
    font-size: 12px;
    font-weight: 800;
}

.pizza-combo-step-indicator span {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pizza-combo-step-indicator strong {
    font-size: 12px;
    font-weight: 900;
}

.pizza-builder-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
}

.pizza-builder-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(22, 33, 62, 0.85);
}

.pizza-builder-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.pizza-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.pizza-section-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.pizza-section-head p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

.pizza-counter-pill {
    min-width: 74px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.14);
}

.pizza-counter-pill.complete {
    background: rgba(31, 157, 99, 0.14);
    color: #1f9d63;
}

.pizza-size-grid,
.pizza-quantity-grid,
.pizza-border-grid,
.pizza-combo-grid {
    display: grid;
    gap: 10px;
}

.pizza-size-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pizza-quantity-grid,
.pizza-border-grid,
.pizza-combo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pizza-quantity-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.pizza-size-option,
.pizza-quantity-card,
.pizza-border-card,
.pizza-combo-drink-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pizza-size-option {
    min-height: 78px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.pizza-size-short {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary-red);
}

.pizza-size-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.pizza-size-option.selected,
.pizza-quantity-card.selected,
.pizza-border-card.selected,
.pizza-combo-drink-card:has(input:checked) {
    border-color: var(--primary-red);
    box-shadow: 0 10px 24px rgba(234, 29, 44, 0.12);
    background: rgba(234, 29, 44, 0.05);
}

.pizza-quantity-card {
    min-height: 58px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.pizza-quantity-card input {
    display: none;
}

.pizza-flavors-grid {
    display: grid;
    gap: 12px;
}

.pizza-search-input {
    margin-bottom: 12px !important;
}

.pizza-flavor-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
}

.pizza-flavor-card.selected {
    border-color: var(--primary-red);
    box-shadow: 0 14px 28px rgba(234, 29, 44, 0.1);
    background: rgba(234, 29, 44, 0.04);
}

.pizza-flavor-card.disabled {
    opacity: 0.45;
}

.pizza-flavor-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pizza-flavor-title-row {
    display: block;
    margin-bottom: 6px;
}

.pizza-flavor-title-row strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
}

.pizza-flavor-media {
    display: grid;
    justify-self: end;
    justify-items: center;
    align-content: start;
    gap: 6px;
}

.pizza-flavor-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-red);
    text-align: right;
    white-space: nowrap;
}

.pizza-flavor-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

.pizza-flavor-extra-btn {
    display: none;
    align-self: flex-start;
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
}

.pizza-flavor-extra-btn i {
    font-size: 11px;
}

.pizza-flavor-card.selected .pizza-flavor-extra-btn,
.pizza-flavor-card.has-extra .pizza-flavor-extra-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pizza-flavor-card.has-extra .pizza-flavor-extra-btn {
    background: rgba(234, 179, 8, 0.14);
    color: #8a5a00;
}

.pizza-flavor-check {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    background: var(--primary-red);
    box-shadow: 0 8px 18px rgba(234, 29, 44, 0.22);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pizza-flavor-card.selected .pizza-flavor-check {
    opacity: 1;
    transform: scale(1);
}

.pizza-flavor-thumb,
.pizza-border-thumb,
.pizza-flavor-thumb-fallback,
.pizza-border-thumb-fallback {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    flex-shrink: 0;
}

.pizza-flavor-thumb,
.pizza-border-thumb {
    object-fit: cover;
}

.pizza-flavor-thumb-fallback,
.pizza-border-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
    background: rgba(234, 29, 44, 0.08);
}

.pizza-border-card {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pizza-border-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pizza-border-copy strong {
    font-size: 14px;
    color: var(--text-dark);
}

.pizza-border-copy span {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-red);
}

.pizza-combo-drink-card {
    min-height: 62px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.pizza-combo-drink-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.pizza-combo-drink-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 900;
}

.pizza-combo-drink-card input {
    accent-color: var(--primary-red);
}

.pizza-empty-state {
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.06);
}

.pizza-modal-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.pizza-footer-action {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    width: 100%;
}

.pizza-modal-footer .quantity-selector {
    min-width: 114px;
    padding: 6px;
    background: var(--bg-body);
    border-radius: 14px;
}

.pizza-modal-footer.combo-final-step {
    grid-template-columns: 1fr;
}

.pizza-modal-footer .add-to-cart-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 240px;
    margin-left: auto;
    min-height: 54px;
    border-radius: 16px;
    padding: 0 18px;
    gap: 14px;
    box-shadow: 0 14px 28px rgba(234, 29, 44, 0.24);
}

.pizza-footer-label {
    font-size: 16px;
    font-weight: 800;
}

.pizza-footer-price {
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.pizza-extra-modal-container {
    width: min(100%, 540px);
    max-width: 540px;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.pizza-extra-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-body);
}

.pizza-extra-hero,
.pizza-extra-section,
.pizza-extra-group,
.pizza-empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 18px;
}

.pizza-extra-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pizza-extra-hero h3,
.pizza-section-head h3,
.pizza-extra-group-head h4 {
    margin: 0;
    color: var(--text-dark);
}

.pizza-extra-hero h3 {
    font-size: 28px;
    line-height: 1.05;
    margin-bottom: 6px;
}

.pizza-extra-hero p,
.pizza-section-head p,
.pizza-extra-group-head p,
.pizza-empty-state {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pizza-extra-toggle-list,
.pizza-extra-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pizza-extra-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
}

.pizza-extra-toggle-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pizza-extra-toggle-copy {
    min-width: 0;
}

.pizza-extra-toggle-copy strong,
.pizza-extra-item-copy strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.25;
}

.pizza-extra-toggle-copy span,
.pizza-extra-item-copy span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.pizza-extra-toggle-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    min-width: 66px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-weight: 800;
    font-size: 12px;
}

.pizza-extra-toggle-btn.active {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.pizza-extra-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.pizza-extra-group-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 800;
}

.pizza-extra-group-badge.required {
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
}

.pizza-extra-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pizza-extra-item {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 12px;
    align-items: center;
    text-align: left;
}

.pizza-extra-item.selected {
    border-color: var(--primary-red);
    background: rgba(234, 29, 44, 0.04);
    box-shadow: 0 12px 24px rgba(234, 29, 44, 0.08);
}

.pizza-extra-item-thumb,
.pizza-extra-item-thumb-fallback {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.pizza-extra-item-thumb {
    object-fit: cover;
}

.pizza-extra-item-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 20px;
    font-weight: 900;
}

.pizza-extra-modal-footer {
    flex-shrink: 0;
}

body.dark-mode .pizza-builder-hero {
    background: linear-gradient(135deg, #2d2a12 0%, #443410 100%);
    color: #fff5c4;
}

body.dark-mode .pizza-builder-subtitle {
    color: rgba(255, 245, 196, 0.82);
}

body.dark-mode .pizza-builder-section,
body.dark-mode .pizza-size-option,
body.dark-mode .pizza-quantity-card,
body.dark-mode .pizza-flavor-card,
body.dark-mode .pizza-border-card,
body.dark-mode .pizza-combo-drink-card {
    background: #1a1a1a;
}

body.dark-mode .pizza-combo-step-indicator {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

body.dark-mode .pizza-combo-step-indicator span {
    opacity: 0.75;
}

body.dark-mode .pizza-size-option.selected,
body.dark-mode .pizza-quantity-card.selected,
body.dark-mode .pizza-border-card.selected,
body.dark-mode .pizza-combo-drink-card:has(input:checked),
body.dark-mode .pizza-flavor-card.selected {
    background: rgba(234, 29, 44, 0.12);
}

body.dark-mode .pizza-flavor-extra-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

body.dark-mode .pizza-flavor-card.has-extra .pizza-flavor-extra-btn {
    background: rgba(250, 204, 21, 0.16);
    color: #fde68a;
}

body.dark-mode .pizza-extra-hero,
body.dark-mode .pizza-extra-section,
body.dark-mode .pizza-extra-group,
body.dark-mode .pizza-empty-state,
body.dark-mode .pizza-extra-item {
    background: #1a1a1a;
}

body.dark-mode .pizza-extra-kicker,
body.dark-mode .pizza-extra-group-badge.required {
    background: rgba(234, 29, 44, 0.18);
}

body.dark-mode .pizza-extra-toggle-btn,
body.dark-mode .pizza-extra-group-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

body.dark-mode .pizza-extra-toggle-btn.active {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

body.dark-mode .pizza-extra-item.selected {
    background: rgba(234, 29, 44, 0.12);
}

/* ================= MODAL SOBRE (ESTILO iFOOD PREMIUM) ================= */
.info-section-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.modal-store-info-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.modal-store-info-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin-right: 30px;
}

.info-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: block;
}

.btn-outline-custom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    transition: all 0.2s !important;
}

    .btn-outline-custom:active {
        background: var(--bg-body) !important;
        transform: scale(0.98) !important;
    }

.status-pill-aberto {
    background-color: #c8e6c9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    border-radius: 6px;
    font-weight: 500;
}

    .schedule-row.current-day {
        background-color: #c8e6c9;
        color: #1a4d1b;
        font-weight: 700;
    }

.address-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.store-info-address-value {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.address-icon-wrapper {
    color: var(--primary-red);
    font-size: 20px;
    margin-top: 1px;
}

.store-info-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.store-info-section-title {
    margin-bottom: 0;
}

.store-info-section-icon {
    font-size: 14px;
    color: #1a1a1a;
}

.store-info-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.modal-chat-container {
    position: fixed;
    inset: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
}

.modal-chat-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.modal-chat-title {
    font-size: 18px;
    font-weight: 800;
    flex: 1;
    text-align: center;
}

.modal-chat-header-spacer {
    width: 28px;
    height: 28px;
}

.modal-chat-body {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.modal-chat-intro,
.chat-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 14px;
}

.modal-chat-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-chat-intro h3 {
    margin: 0 0 4px;
    color: var(--text-dark);
    font-size: 20px;
    line-height: 1.06;
}

.modal-chat-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.chat-thread-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
    max-height: min(56vh, 520px);
    overflow-y: auto;
    padding-right: 2px;
}

.chat-bubble {
    max-width: 88%;
    border-radius: 18px;
    padding: 11px 13px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.chat-bubble.store {
    align-self: flex-start;
    border-top-left-radius: 8px;
}

.chat-bubble.user {
    align-self: flex-end;
    border-top-right-radius: 8px;
    background: rgba(234, 29, 44, 0.06);
    border-color: rgba(234, 29, 44, 0.16);
}

.chat-bubble strong {
    display: block;
    color: var(--text-dark);
    font-size: 12px;
    margin-bottom: 4px;
}

.chat-bubble p {
    margin: 0;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble time {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 10px;
}

.chat-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.chat-form-email {
    grid-column: 1 / -1;
}

.chat-message-input {
    min-height: 96px;
}

.modal-chat-footer {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.order-card-footer {
    display: flex;
    gap: 10px;
}

.btn-order-chat {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 207, 92, 0.12);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-order-chat i {
    font-size: 15px;
}

.btn-order-details {
    flex: 1;
}

.order-detail-chat-cta {
    margin-top: 16px;
}

.order-detail-chat-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 16px;
    background: var(--brand-catalogo);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.modal-chat-cancel,
.modal-chat-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
}

.modal-store-info-body {
    padding: 15px 15px calc(84px + env(safe-area-inset-bottom, 0px));
}

.social-row-premium {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
    padding-bottom: 6px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #f5f5f5;
    font-size: 22px;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .social-btn:active {
        transform: scale(0.92);
    }

    .social-btn.insta {
        color: #E1306C;
    }

        .social-btn.insta:active {
            background-color: #fce4ec;
        }

    .social-btn.face {
        color: #1877F2;
    }

        .social-btn.face:active {
            background-color: #e8eaf6;
        }

    .social-btn.twitter {
        color: #1DA1F2;
    }

        .social-btn.twitter:active {
            background-color: #e1f5fe;
        }

/* ================= RESPONSIVO ================= */
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-container {
        border-radius: 12px;
        max-height: 85vh;
    }

    #adicionarItem .modal-container {
        border-radius: 12px;
        height: 90vh;
        max-height: 90vh;
    }
}


/* ================= STORIES (CORRIGIDO) ================= */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

    .story-modal.active {
        display: flex;
    }

.story-progress-container {
    display: flex;
    gap: 4px;
    padding: 15px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.story-top-shadow,
.story-bottom-shadow {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 8;
}

.story-top-shadow {
    top: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.46) 45%, rgba(0, 0, 0, 0) 100%);
}

.story-bottom-shadow {
    bottom: 14px;
    height: 220px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 36%, rgba(0, 0, 0, 0) 100%);
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.story-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
}

.story-progress-fill.filled {
    width: 100%;
}

/* O segredo que faltava: Position Absolute para o header flutuar sobre a foto */
.story-header-info {
    position: absolute;
    top: 30px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    color: white;
}

.story-header-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-header-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.story-header-copy span {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
}

.story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid white;
}

.story-close-btn {
    position: absolute;
    top: 30px;
    right: 15px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 20px;
    z-index: 10;
    cursor: pointer;
    opacity: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.story-audio-btn {
    position: absolute;
    top: 30px;
    right: 62px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 16px;
    z-index: 10;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.story-audio-btn.muted {
    opacity: 0.75;
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.story-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.story-footer-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}

.story-like-btn {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.story-like-btn.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-red) 68%, white), var(--primary-red));
    border-color: rgba(255,255,255,0.24);
    box-shadow: 0 12px 26px var(--primary-shadow-strong);
}
/* ================= CABEÇALHO DAS TELAS INTERNAS ================= */
.generic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.back-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

    .back-btn:active {
        background-color: var(--border-color);
    }

/* ================= BOTÃO PRINCIPAL (LOGIN / FINALIZAR) ================= */
.btn-finalizar {
    background-color: var(--brand-catalogo, var(--primary-red));
    color: white;
    border: none;
    border-radius: 8px;
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

    .btn-finalizar:active {
        transform: scale(0.98);
        background-color: var(--brand-catalogo-press, #c91825);
    }

/* Ajustes para essas telas no Dark Mode */
body.dark-mode .generic-header {
    background-color: var(--bg-card);
    border-bottom-color: var(--border-color);
}

body.dark-mode .back-btn {
    color: var(--text-dark);
}

/* ================= ESTILO PREMIUM PARA VARIAÇÕES ================= */
/* Transforma a linha numa caixa clicável */
div[name="divVariacao"],
div[name="divTamanho"] {
    border: 2px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease-in-out !important;
    background-color: var(--bg-card) !important;
}

/* Remove a formatação do radio padrão azul do navegador */
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    margin: 0;
}

    /* Cria a borda vermelha quando selecionado */
    .custom-radio:checked {
        border-color: var(--primary-red);
    }

        /* Cria a bolinha vermelha interna quando selecionado */
        .custom-radio:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background-color: var(--primary-red);
            border-radius: 50%;
        }

/* Ajustes finos para o Dark Mode */
body.dark-mode div[name="divVariacao"],
body.dark-mode div[name="divTamanho"] {
    border-color: #333 !important;
    background-color: #1a1a1a !important;
}

body.dark-mode .custom-radio {
    border-color: #666;
}

/* ================= MODAL DE LOGIN (ACESSE SUA CONTA) ================= */
#kt_modal_Pessoa .modal-body {
    display: flex;
    flex-direction: column;
    padding: 25px 20px !important;
}

.profile-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background-color: var(--bg-body);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 12px !important;
}

    .profile-input:focus {
        border-color: var(--primary-red);
    }

#kt_modal_Pessoa .btn-finalizar {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px;
    margin-top: 10px;
}

.login-divider-catalogo-new {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 8px;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.google-login-host {
    width: 100%;
    display: flex;
    justify-content: center;
}

.google-login-host > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-google-copy {
    margin-bottom: 12px;
}

.login-google-copy strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.login-google-copy p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Ajustes finos para o Dark Mode */
body.dark-mode .profile-input {
    background-color: #252525;
    border-color: #333;
    color: #fff;
}

body.dark-mode .login-divider-line {
    background: #333;
}

.modal-feedback-container {
    max-width: 520px;
}

.modal-feedback-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feedback-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.feedback-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.feedback-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-stars input[type="radio"],
.feedback-stars input[type="checkbox"] {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.feedback-stars label {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.feedback-stars label.active {
    color: #ffb400;
    border-color: rgba(255, 180, 0, 0.35);
    background: rgba(255, 180, 0, 0.1);
}

.feedback-textarea {
    min-height: 110px;
}

body.dark-mode .feedback-stars label {
    background: #252525;
    border-color: #333;
}

body.dark-mode .feedback-stars label.active {
    background: rgba(255, 180, 0, 0.14);
    border-color: rgba(255, 180, 0, 0.28);
}

body.dark-mode .extra-thumb {
    background: #252525;
    border-color: #333;
}

/* ================= CARDS DE PEDIDO (HISTÓRICO) ================= */
.orders-shell {
    display: grid;
    gap: 14px;
}

.order-card-premium {
    position: relative;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 16px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.order-card-premium::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: rgba(148, 163, 184, 0.28);
}

.order-card-premium.order-status-aguardando::before {
    background: #1f2937;
}

.order-card-premium.order-status-preparo::before {
    background: #0ea5e9;
}

.order-card-premium.order-status-transporte::before {
    background: #ff9500;
}

.order-card-premium.order-status-concluido::before {
    background: #2e7d32;
}

.order-card-premium.order-status-cancelado::before {
    background: #dc3545;
}

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

.order-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    min-width: 142px;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 800;
}

.order-code-badge-large {
    font-size: 14px;
    padding: 10px 16px;
}

.order-code-badge-comanda {
    font-size: 14px;
    padding: 10px 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.order-status-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.order-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(148, 163, 184, 0.14);
}

.order-status-icon.order-status-aguardando {
    color: #1f2937;
    background: rgba(31, 41, 55, 0.12);
}

.order-status-icon.order-status-preparo {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.14);
}

.order-status-icon.order-status-transporte {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.14);
}

.order-status-icon.order-status-concluido {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.14);
}

.order-status-icon.order-status-cancelado {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.14);
}

.order-status-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-status {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1.2;
}

.order-status-aguardando {
    color: #1f2937;
}

.order-status-preparo {
    color: #0ea5e9;
}

.order-status-transporte {
    color: #ff9500;
}

.order-status-concluido {
    color: #2e7d32;
}

.order-status-cancelado {
    color: #dc3545;
}

.order-fulfillment {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.order-fulfillment-entrega {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.18);
}

.order-fulfillment-retirada {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.18);
}

.order-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-chip-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.order-chip-attention {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.order-date {
    color: var(--text-muted);
    font-size: 12px;
    text-align: left;
    line-height: 1.4;
}

.order-total-box {
    min-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.order-total-box span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.order-total-box strong {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 900;
}

.order-items-resume {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-address-preview {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.order-address-preview i {
    margin-top: 2px;
    color: var(--primary-red);
}

.order-progress-track {
    width: 100%;
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.16);
}

.order-progress-fill {
    height: 100%;
    border-radius: inherit;
}

.order-progress-fill.order-status-aguardando {
    background: linear-gradient(90deg, #1f2937, #4b5563);
}

.order-progress-fill.order-status-preparo {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.order-progress-fill.order-status-transporte {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.order-progress-fill.order-status-concluido {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.order-progress-fill.order-status-cancelado {
    background: linear-gradient(90deg, #dc3545, #f87171);
}

.order-card-footer {
    display: flex;
    justify-content: stretch;
    align-items: center;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.btn-order-details {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(234, 29, 44, 0.16);
    width: 100%;
}

.btn-order-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(234, 29, 44, 0.2);
}

/* Ajuste no modo Escuro */
body.dark-mode .order-card-premium {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(24, 24, 27, 0.98) 100%);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body.dark-mode .btn-order-details {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

body.dark-mode .order-fulfillment-entrega {
    background: rgba(20, 184, 166, 0.18);
    border-color: rgba(20, 184, 166, 0.28);
}

body.dark-mode .order-fulfillment-retirada {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

body.dark-mode .order-chip-soft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

body.dark-mode .order-chip-attention {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.28);
}

.orders-shell-comanda {
    gap: 12px;
}

.order-card-comanda {
    padding: 15px;
}

.order-card-comanda .order-card-topline {
    margin-bottom: 12px;
}

.order-card-comanda .order-card-header {
    margin-bottom: 0;
}

.order-card-comanda .order-status-copy {
    gap: 6px;
}

.order-card-comanda .order-card-body {
    display: none;
}

.order-detail-shell {
    background: var(--bg-body);
}

.order-detail-shell-comanda {
    padding: 8px;
}

.order-detail-hero {
    padding: 24px 20px;
    background: linear-gradient(180deg, rgba(255, 245, 175, 0.38), rgba(255, 255, 255, 0.92));
    border-bottom: 1px solid var(--border-color);
}

.order-detail-hero.order-status-concluido {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.9), rgba(255, 255, 255, 0.98));
}

.order-detail-hero.order-status-cancelado {
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(255, 255, 255, 0.98));
}

.order-detail-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.order-detail-topline-compact {
    margin-bottom: 10px;
}

.order-detail-date {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    min-width: 0;
    align-self: center;
}

.order-detail-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
}

.order-detail-status-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.order-detail-status-copy-wrap {
    min-width: 0;
}

.order-detail-status-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(148, 163, 184, 0.12);
}

.order-detail-status-icon.order-status-aguardando {
    background: rgba(31, 41, 55, 0.12);
}

.order-detail-status-icon.order-status-preparo {
    background: rgba(14, 165, 233, 0.14);
}

.order-detail-status-icon.order-status-transporte {
    background: rgba(255, 149, 0, 0.14);
}

.order-detail-status-icon.order-status-concluido {
    background: rgba(46, 125, 50, 0.12);
}

.order-detail-status-icon.order-status-cancelado {
    background: rgba(220, 53, 69, 0.12);
}

.order-detail-status-title {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 800;
}

.order-detail-status-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.order-detail-tags {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}

.order-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.order-detail-facts-compact {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-detail-fact {
    padding: 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail-fact span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.order-detail-fact strong {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

body.dark-mode .order-detail-hero {
    background: linear-gradient(180deg, rgba(74, 68, 20, 0.42), rgba(24, 24, 27, 0.98));
}

body.dark-mode .order-detail-hero.order-status-concluido {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.55), rgba(24, 24, 27, 0.98));
}

body.dark-mode .order-detail-hero.order-status-cancelado {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.58), rgba(24, 24, 27, 0.98));
}

body.dark-mode .order-detail-fact {
    background: rgba(17, 24, 39, 0.72);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .order-detail-fact strong,
body.dark-mode .order-timeline-copy strong {
    color: var(--text-light);
}

body.dark-mode .order-timeline-step.completed .order-timeline-dot {
    background: rgba(34, 197, 94, 0.18);
}

body.dark-mode .order-timeline-cancelled {
    background: rgba(220, 53, 69, 0.14);
}

.order-detail-section {
    padding: 20px;
    background: var(--bg-card);
    margin-top: 8px;
    border-radius: 20px;
}

.order-detail-section-compact {
    padding: 16px;
}

.order-detail-section-title {
    font-size: 15px;
    margin: 0 0 15px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.order-detail-timeline {
    display: grid;
    gap: 12px;
}

.order-timeline-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    opacity: 0.58;
}

.order-timeline-step.completed {
    opacity: 1;
}

.order-timeline-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: rgba(148, 163, 184, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.order-timeline-step.completed .order-timeline-dot {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.order-timeline-step.current .order-timeline-dot {
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.08);
}

.order-timeline-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-timeline-copy strong {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
}

.order-timeline-copy span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.order-timeline-cancelled {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    font-size: 13px;
    font-weight: 700;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.order-detail-item-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.order-detail-item-name,
.order-detail-item-price {
    color: var(--text-dark);
}

.order-detail-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.order-detail-item-pizza {
    align-items: flex-start;
}

.order-detail-item-name-pizza {
    display: block;
    margin-bottom: 6px;
}

.order-detail-item-pizza-copy {
    margin-left: 2px;
}

.order-detail-item-pizza-copy .cart-pizza-flavors {
    gap: 5px;
}

.order-detail-item-obs {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.order-detail-empty {
    padding: 14px 0 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.order-detail-address {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

.order-detail-address i {
    color: var(--primary-red);
    margin-top: 2px;
}

.order-detail-address-compact {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
}

.order-detail-pending-payment {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.order-detail-pending-payment i {
    margin-top: 2px;
}

body.dark-mode .order-detail-pending-payment {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
    color: #fcd34d;
}

.order-detail-comanda-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
}

.order-detail-comanda-total span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.order-detail-comanda-total strong {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 900;
}

.order-detail-summary {
    margin-bottom: 24px;
}

.order-detail-row,
.order-detail-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.order-detail-row {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.order-detail-row-discount {
    color: var(--success-color);
    font-weight: 600;
}

.order-detail-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 800;
}

.modal-online-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    overflow: hidden;
}

.modal-order-detail-container {
    max-width: 520px;
}

.modal-order-detail-body {
    background: var(--bg-body);
}

.modal-card-container {
    max-width: 100vw;
}

.modal-online-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

.online-payment-hero {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.online-payment-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(50, 188, 173, 0.14);
    color: #32BCAD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.online-payment-hero-title {
    display: block;
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.online-payment-hero-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.online-payment-code-box {
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 14px;
}

.online-payment-copy-btn {
    width: 100%;
}

.online-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: inherit;
    padding-top: 10px;
    z-index: 2;
}

.online-payment-check-btn {
    width: 100%;
}

.btn-finalizar-secondary {
    background: var(--bg-body);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-finalizar-secondary:hover {
    background: #f3f4f6;
    transform: none;
    box-shadow: none;
}

body.dark-mode .btn-finalizar-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .btn-finalizar-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile-hero-card {
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.16), rgba(255, 207, 92, 0.08)), var(--bg-card);
}

body.dark-mode .profile-hero-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd7dc;
}

body.dark-mode .profile-section-kicker {
    background: rgba(234, 29, 44, 0.16);
    color: #ffb6be;
}

body.dark-mode .profile-form-grid .profile-input {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .profile-address-card {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .profile-address-delete {
    background: rgba(220, 53, 69, 0.18);
}

body.dark-mode .modal-profile-delete-icon {
    background: rgba(220, 53, 69, 0.18);
}

body.dark-mode .promo-card-cashback {
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.16), rgba(255, 207, 92, 0.08)), var(--bg-card);
}

body.dark-mode .promo-kicker {
    background: rgba(234, 29, 44, 0.16);
    color: #ffb6be;
}

body.dark-mode .promo-balance-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd7dc;
}

body.dark-mode .promo-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #c5cad5;
}

body.dark-mode .promo-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffd7dc;
}

body.dark-mode .promo-product-card {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .promo-reward-card {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .promo-reward-progress {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .promo-reward-btn.is-disabled {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .promo-delivery-free-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(45, 212, 191, 0.1)), var(--bg-card);
    border-color: rgba(110, 231, 183, 0.16);
}

body.dark-mode .promo-delivery-free-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #b7f7d8;
    box-shadow: none;
}

.online-payment-timer-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 10px;
}

.online-payment-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    font-size: 13px;
    font-weight: 800;
}

.online-payment-status {
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
}

.online-payment-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(46, 125, 50, 0.14);
}

.online-payment-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #39b86a 0%, #7adba0 100%);
    transition: width 1s linear;
}

.online-card-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.online-card-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(50, 188, 173, 0.08));
    border: 1px solid rgba(47, 115, 255, 0.12);
}

.online-card-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: #1f4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.online-card-hero-copy {
    min-width: 0;
}

.online-card-hero-title {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.online-card-hero-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.online-card-hero-total {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.online-card-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.online-card-label {
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.online-card-input {
    margin-bottom: 0 !important;
    min-height: 50px;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.online-card-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

#modalPagamentoCartao #form-checkout__installments,
#modalPagamentoCartao #form-checkout__identificationType,
#modalPagamentoCartao #containerBandeiraCartao,
#modalPagamentoCartao #form-checkout__issuer {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

.online-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.online-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    background: inherit;
    padding-top: 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
}

.online-card-cancel,
.online-card-submit {
    min-height: 48px;
}

.modal-cartao-header {
    flex-shrink: 0;
}

.modal-cartao-actions {
    margin-top: 0;
    position: relative;
    bottom: auto;
    flex-shrink: 0;
    gap: 15px;
    padding: 15px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: none;
    align-items: stretch;
}

.modal-cartao-actions .online-card-cancel {
    min-height: 50px;
    border-radius: 8px;
    width: 100%;
}

.modal-cartao-actions .online-card-submit {
    min-height: 50px;
    border-radius: 8px;
    width: 100%;
}

body.dark-mode .online-card-hero {
    background: linear-gradient(135deg, rgba(47, 115, 255, 0.18), rgba(50, 188, 173, 0.14));
    border-color: rgba(110, 168, 255, 0.18);
}

body.dark-mode .online-card-hero-icon,
body.dark-mode .online-card-hero-total {
    background: rgba(17, 24, 39, 0.62);
    color: #f8fafc;
}

body.dark-mode .online-card-label {
    color: var(--text-light);
}

body.dark-mode .online-card-input {
    background: #252525;
    box-shadow: none;
}

body.dark-mode .online-card-actions {
    background: #1f1f1f;
}

@media (max-width: 420px) {
    .order-card-topline {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-date {
        text-align: left;
        white-space: normal;
    }

    .order-total-box {
        align-items: flex-start;
    }

    .order-card-footer {
        justify-content: stretch;
    }

    .order-detail-topline {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .order-detail-status-row,
    .order-detail-status-main {
        flex-direction: row;
        align-items: flex-start;
    }

    .order-detail-facts {
        grid-template-columns: 1fr;
    }

    .order-detail-facts-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail-item {
        flex-direction: column;
    }

    .order-detail-item-price {
        padding-left: 0;
    }

    .online-card-grid,
    .online-card-actions {
        grid-template-columns: 1fr;
    }

    .online-card-hero {
        grid-template-columns: auto 1fr;
    }

    .online-card-hero-total {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }

    .modal-online-body {
        padding: 16px 16px calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .online-payment-actions,
    .online-card-actions {
        padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px) + 28px);
    }

    .modal-fechamento-mesa-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .story-footer-actions {
        bottom: 88px;
        justify-content: center;
        padding: 0 16px;
    }

    .story-like-btn {
        min-height: 44px;
        min-width: 148px;
        padding: 0 18px;
        font-size: 13px;
    }

    #view-carrinho #cart-content {
        padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #view-inicio {
        padding-bottom: 24px;
    }

    .pizza-counter-pill {
        min-width: 78px;
        font-size: 11px;
    }

    .pizza-modal-footer {
        padding: 12px 14px calc(22px + env(safe-area-inset-bottom, 0px));
    }

    .cart-footer {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    }
}
/* ================= REFINAMENTO CARRINHO E CHECKOUT ================= */
/* Deixando os itens do carrinho mais juntinhos */
.cart-item-card {
    padding: 12px !important;
    margin-bottom: 8px !important;
}

.cart-item-header {
    margin-bottom: 4px !important;
    gap: 12px;
}

/* Estrutura das Seções de Checkout (Entrega, Endereço, Pagamento) */
.checkout-section {
    background-color: var(--bg-card);
    border-top: 2px solid var(--bg-body);
    padding: 14px 12px;
    margin-top: 2px;
}

.checkout-login-gate {
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.08), rgba(234, 29, 44, 0.03));
    border: 1px solid rgba(234, 29, 44, 0.18);
    border-radius: 18px;
    padding: 20px 16px;
    margin: 10px 15px 0;
}

.checkout-login-gate-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    box-shadow: 0 14px 28px rgba(234, 29, 44, 0.18);
}

.checkout-login-gate-copy h3 {
    margin: 0 0 6px 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 800;
}

.checkout-login-gate-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.checkout-login-gate-btn {
    width: 100%;
    margin-top: 16px;
}

.checkout-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toggle Entrega vs Retirada */
.delivery-toggle-container {
    display: flex;
    background-color: var(--border-color);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 10px;
}

.delivery-toggle-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .delivery-toggle-btn.active {
        background-color: var(--bg-card);
        color: var(--primary-red);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

/* Cards Premium (Endereços e Pagamentos) */
.checkout-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

#lista-pagamento-offline,
#lista-pagamento-online {
    display: grid;
    gap: 10px;
}

#lista-pagamento-offline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#lista-pagamento-online {
    grid-template-columns: 1fr;
}

#lista-pagamento-offline .checkout-card,
#lista-pagamento-online .checkout-card {
    margin-bottom: 0;
    height: 100%;
}

#lista-pagamento-offline .checkout-card.checkout-card-full {
    grid-column: 1 / -1;
}

    .checkout-card.selected {
        border-color: var(--primary-red);
        background-color: rgba(234, 29, 44, 0.05);
    }

.checkout-card-icon {
    font-size: 20px;
    color: var(--nav-color);
    width: 24px;
    text-align: center;
}

.checkout-card.selected .checkout-card-icon {
    color: var(--primary-red);
}

.checkout-card-info {
    flex: 1;
}

.checkout-pickup-box {
    margin-top: 10px;
}

.checkout-pickup-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.02);
}

.checkout-pickup-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.checkout-pickup-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.checkout-pickup-copy strong {
    font-size: 14px;
    color: var(--text-dark);
}

.checkout-pickup-copy span {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.checkout-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.checkout-card-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-add-new {
    width: 100%;
    padding: 12px;
    border: 1px dashed var(--primary-red);
    color: var(--primary-red);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-online-hint {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-online-hint i {
    margin-top: 2px;
}

.checkout-balance-box {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06));
}

.checkout-balance-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.checkout-balance-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-balance-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.checkout-balance-value {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.checkout-balance-note {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.checkout-balance-badge {
    margin-left: auto;
    align-self: flex-start;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-balance-box.insufficient {
    border-color: rgba(245, 158, 11, 0.26);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 179, 8, 0.08));
}

.checkout-balance-box.insufficient .checkout-balance-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.checkout-balance-box.insufficient .checkout-balance-badge {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

/* Dark Mode */
body.dark-mode .checkout-section {
    border-top-color: #121212;
}

body.dark-mode .delivery-toggle-container {
    background-color: #121212;
}

body.dark-mode .delivery-toggle-btn.active {
    background-color: #252525;
}

body.dark-mode .checkout-card.selected {
    background-color: rgba(234, 29, 44, 0.15);
    border-color: var(--primary-red);
}

body.dark-mode .checkout-login-gate {
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.2), rgba(234, 29, 44, 0.08));
    border-color: rgba(234, 29, 44, 0.28);
}

body.dark-mode .checkout-online-hint {
    background: rgba(20, 184, 166, 0.16);
    color: #6ee7d8;
}

body.dark-mode .checkout-balance-box {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(16, 185, 129, 0.12));
}

body.dark-mode .checkout-balance-icon,
body.dark-mode .checkout-balance-badge {
    background: rgba(15, 23, 42, 0.55);
}

body.dark-mode .checkout-balance-value {
    color: var(--text-light);
}

.catalogo-toast-container {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100vw - 28px), 360px);
    transform: translateX(-50%);
    z-index: 14020;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.catalogo-toast {
    min-width: 280px;
    max-width: 360px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    border-radius: 20px;
    padding: 14px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
    overflow: hidden;
}

.catalogo-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.catalogo-toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(148, 163, 184, 0.6);
}

.catalogo-toast.success::before {
    background: #16a34a;
}

.catalogo-toast.error::before {
    background: #dc2626;
}

.catalogo-toast.warning::before {
    background: #f59e0b;
}

.catalogo-toast.info::before {
    background: #2563eb;
}

.catalogo-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.catalogo-toast.success .catalogo-toast-icon {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.catalogo-toast.error .catalogo-toast-icon {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.catalogo-toast.warning .catalogo-toast-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.catalogo-toast.info .catalogo-toast-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.catalogo-toast-content {
    min-width: 0;
}

.catalogo-toast-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 4px;
}

.catalogo-toast-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.catalogo-toast-close {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.catalogo-toast-close:hover {
    background: rgba(148, 163, 184, 0.22);
    color: var(--text-dark);
}

.catalogo-toast-message {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.catalogo-toast-progress {
    width: 100%;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.16);
    position: relative;
}

.catalogo-toast-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    transform-origin: left center;
    animation: catalogo-toast-progress 3.6s linear forwards;
}

.catalogo-toast.success .catalogo-toast-progress::after {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.catalogo-toast.error .catalogo-toast-progress::after {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.catalogo-toast.warning .catalogo-toast-progress::after {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.catalogo-toast.info .catalogo-toast-progress::after {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

@keyframes catalogo-toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

body.dark-mode .catalogo-toast {
    background: rgba(17, 24, 39, 0.94);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

body.dark-mode .catalogo-toast-title {
    color: var(--text-light);
}

body.dark-mode .catalogo-toast-message {
    color: rgba(226, 232, 240, 0.82);
}

body.dark-mode .catalogo-toast-close {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.72);
}

body.dark-mode .catalogo-toast-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-light);
}

.coupon-floating-host {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 78px;
    z-index: 995;
    padding: 0 14px;
}

.coupon-floating-banner {
    display: flex;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 9px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1fa463 0%, #0f8a52 100%);
    box-shadow: 0 16px 32px rgba(22, 118, 76, 0.28);
}

.coupon-floating-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.coupon-floating-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.coupon-floating-title {
    font-size: 13px;
    font-weight: 800;
}

.coupon-floating-text {
    font-size: 11px;
    opacity: 0.92;
}

.modal-cupom-container {
    max-width: 720px;
}

.modal-cupom-body {
    padding: 18px;
}

.modal-agendamento-container {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    border-radius: 0;
    overflow: hidden;
}

.modal-agendamento-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-body);
}

.modal-agendamento-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.modal-agendamento-header-spacer {
    width: 38px;
    height: 38px;
}

.agendamento-helper-card {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.04), rgba(255, 207, 92, 0.08));
}

.agendamento-helper-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 900;
}

.agendamento-helper-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.agendamento-days-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.agendamento-hours-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agendamento-day-card,
.agendamento-hour-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.agendamento-day-card {
    flex: 0 0 104px;
    min-width: 104px;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agendamento-hour-card {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agendamento-day-card.active,
.agendamento-hour-card.active {
    border-color: var(--primary-red);
    box-shadow: 0 12px 24px rgba(234, 29, 44, 0.12);
    background: rgba(234, 29, 44, 0.04);
}

.agendamento-day-card:hover,
.agendamento-hour-card:hover {
    transform: translateY(-2px);
}

.agendamento-day-week {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.agendamento-day-date,
.agendamento-hour-time {
    display: block;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 900;
}

.agendamento-hour-note {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.agendamento-empty {
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(15, 23, 42, 0.02);
}

.agendamento-modal-actions {
    margin-top: 0;
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    z-index: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 15px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: none;
    align-items: stretch;
}

body.dark-mode .agendamento-modal-actions {
    background: #1f1f1f;
}

.agendamento-modal-actions .online-card-cancel {
    min-height: 50px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-weight: 700;
    width: 100%;
}

.agendamento-modal-actions .online-card-submit {
    min-height: 50px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    box-shadow: none;
}

.coupon-modal-grid {
    display: grid;
    gap: 14px;
}

.coupon-modal-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-card);
}

.coupon-modal-card-header {
    padding: 18px 18px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.coupon-modal-value {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.coupon-modal-rule {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.coupon-modal-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 18px;
}

.coupon-modal-code {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.coupon-modal-copy-btn {
    border: none;
    border-radius: 12px;
    background: var(--brand-catalogo, var(--primary-red));
    color: #fff;
    font-weight: 800;
    padding: 12px 16px;
    cursor: pointer;
}

.coupon-modal-footer {
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ================= CARRINHO DE COMPRAS (NOVO LAYOUT) ================= */
.cart-empty {
    display: none; /* Escondido por padrão, o JS controla */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

    .cart-empty i {
        font-size: 60px;
        color: var(--border-color);
        margin-bottom: 15px;
    }

    .cart-empty h3 {
        color: var(--text-dark);
        margin-bottom: 5px;
    }

.cart-item-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.cart-item-card.cart-item-pizza {
    border-color: rgba(234, 29, 44, 0.18);
    box-shadow: 0 12px 26px rgba(234, 29, 44, 0.06);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.cart-item-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    flex-wrap: wrap;
}

.cart-item-qty {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.cart-item-pizza-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cart-item-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    white-space: nowrap;
    margin-left: 10px;
}

.cart-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 5px;
}

.cart-item-pizza-desc {
    margin-top: 2px;
    margin-left: 40px;
}

.cart-pizza-flavors {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-pizza-flavor-chip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
}

.cart-pizza-flavor-ratio {
    min-width: 28px;
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.cart-pizza-flavor-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.cart-pizza-flavor-ingredients {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
    margin-left: 4px;
}

.cart-item-obs {
    font-size: 12px;
    color: var(--primary-red);
    background: rgba(234, 29, 44, 0.05);
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 5px;
    display: flex;
    gap: 6px;
}

.cart-item-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.btn-remove-item {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

    .btn-remove-item:hover {
        color: #dc3545;
    }

.cart-footer {
    position: fixed;
    bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 960px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 15px 20px calc(15px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    display: none;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* Dark Mode Carrinho */
body.dark-mode .cart-item-qty {
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .cart-item-card.cart-item-pizza {
    border-color: rgba(234, 29, 44, 0.26);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

body.dark-mode .cart-item-pizza-badge {
    background: rgba(234, 29, 44, 0.18);
}

body.dark-mode .cart-pizza-flavor-chip {
    background: transparent;
    border-color: transparent;
}

body.dark-mode .cart-item-obs {
    background: rgba(234, 29, 44, 0.15);
}

@media (max-width: 420px) {
    #view-carrinho #cart-content {
        padding-bottom: 112px !important;
    }

    .cart-item-card {
        padding: 12px !important;
        margin-bottom: 6px !important;
    }

    .cart-item-header {
        margin-bottom: 2px !important;
        gap: 8px;
    }

    .cart-item-meta {
        gap: 8px;
        align-items: flex-start;
    }

    .checkout-section {
        padding: 12px 10px;
        margin-top: 2px;
        border-top-width: 2px;
    }

    .checkout-login-gate {
        margin-top: 6px;
        padding: 16px 14px;
    }

    .checkout-mesa-panel {
        margin: 0 12px 8px;
        padding: 14px;
    }

    .checkout-section-title {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .delivery-toggle-container {
        margin-bottom: 10px;
        padding: 3px;
    }

    .delivery-toggle-btn {
        padding: 9px 8px;
        font-size: 13px;
    }
}
/* ================= CAMPO DE TROCO ================= */
#container-troco {
    display: none; /* Inicia escondido */
    padding: 15px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.troco-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

    .troco-input-wrapper input {
        flex: 1;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-card);
        color: var(--text-dark);
        font-weight: 700;
        font-size: 16px;
        outline: none;
        transition: border 0.2s;
    }

        .troco-input-wrapper input:focus {
            border-color: var(--primary-red);
        }

body.dark-mode .troco-input-wrapper input {
    background: #252525;
    border-color: #333;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESUMO DO PEDIDO E MODAL TROCO ================= */
.checkout-summary {
    background-color: var(--bg-card);
    padding: 14px 12px;
    margin-top: 4px;
    border-top: 2px solid var(--bg-body);
}

.checkout-coupon-box {
    background-color: var(--bg-card);
    padding: 14px 12px;
    margin-top: 4px;
    border-top: 2px solid var(--bg-body);
}

.checkout-schedule-box {
    background-color: var(--bg-card);
    padding: 8px 0 0;
    margin-top: 2px;
    border-top: none;
}

.checkout-schedule-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(234, 29, 44, 0.04), rgba(255, 207, 92, 0.08));
}

.checkout-schedule-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.checkout-schedule-label {
    color: var(--primary-red);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-schedule-copy strong {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.checkout-schedule-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.checkout-schedule-btn {
    border: none;
    border-radius: 10px;
    min-height: 36px;
    padding: 0 12px;
    background: var(--primary-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-coupon-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.checkout-coupon-input {
    flex: 1;
    margin-bottom: 0;
    text-transform: uppercase;
}

.checkout-coupon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--primary-red);
    color: #fff;
    font-weight: 700;
    padding: 0 18px;
    min-height: 52px;
    height: 52px;
    min-width: 98px;
    cursor: pointer;
    white-space: nowrap;
}

#view-carrinho #itensCarrinho {
    padding: 10px 12px 4px !important;
}

#view-carrinho #checkout-container {
    padding-top: 0 !important;
}

.cart-item-title {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
}

.cart-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.cart-item-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    word-break: break-word;
}

.cart-item-price {
    margin-left: 0;
    font-size: 16px;
    font-weight: 900;
}

.btn-remove-item {
    padding: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.9;
}

.btn-remove-item i {
    font-size: 12px;
}

.checkout-coupon-feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.checkout-coupon-feedback.success {
    background: rgba(31, 157, 99, 0.12);
    color: #1f9d63;
}

.checkout-coupon-feedback.error {
    background: rgba(214, 69, 69, 0.12);
    color: #d64545;
}

.checkout-coupon-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.checkout-coupon-chip {
    border: 1px dashed var(--primary-red);
    background: transparent;
    color: var(--primary-red);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

    .summary-line.highlight {
        color: var(--primary-red);
        font-weight: 600;
        background: rgba(234, 29, 44, 0.05);
        padding: 8px;
        border-radius: 6px;
        margin-top: 5px;
    }

.summary-line-discount {
    color: #1f9d63;
    font-weight: 700;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 800;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.summary-total-secondary {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
}

.troco-input-modal {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 20px;
    outline: none;
    transition: border 0.2s;
    text-align: center;
    margin-top: 10px;
}

.troco-input-modal:focus {
        border-color: var(--primary-red);
    }

body.dark-mode .troco-input-modal {
    background: #252525;
    border-color: #333;
    color: #fff;
}

body.dark-mode .checkout-coupon-box {
    border-top-color: #121212;
}

body.dark-mode .coupon-modal-card {
    background: #222;
    border-color: #303030;
}

body.dark-mode .coupon-modal-code {
    background: #161616;
}

body.dark-mode .upsell-sheet-handle {
    background: rgba(255, 255, 255, 0.16);
}

body.dark-mode .modal-upsell-header,
body.dark-mode .modal-upsell-body,
body.dark-mode .upsell-actions {
    background: var(--bg-card);
}

body.dark-mode .upsell-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .upsell-item:hover {
    border-color: var(--primary-border-soft);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

body.dark-mode .upsell-item-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-red);
}

body.dark-mode .upsell-empty {
    background: rgba(255, 255, 255, 0.03);
}

.checkout-card.unavailable {
    opacity: 0.65;
    cursor: not-allowed;
}

.checkout-card.unavailable .checkout-card-title,
.checkout-card.unavailable .checkout-card-desc {
    color: var(--text-muted);
}

.profile-body {
    padding-bottom: 18px;
}

.profile-hero-card,
.profile-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.profile-hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary-soft), rgba(255, 207, 92, 0.12)), var(--bg-card);
}

.profile-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-red), color-mix(in srgb, var(--primary-red) 68%, white));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.profile-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-hero-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-hero-copy strong {
    font-size: 21px;
    color: var(--text-dark);
}

.profile-hero-copy span {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-section-card {
    padding: 18px;
    margin-bottom: 14px;
}

.profile-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-section-title {
    min-width: 0;
}

.profile-section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-section-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--text-dark);
}

.profile-section-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.profile-inline-btn {
    width: auto;
    min-width: 138px;
    min-height: 44px;
    padding: 0 16px;
    border-style: solid;
    border-radius: 14px;
    flex-shrink: 0;
}

.profile-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form-grid .profile-input {
    margin-bottom: 0 !important;
    min-height: 52px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.03);
}

.profile-form-grid .profile-input[readonly] {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
}

.profile-inline-feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.profile-inline-feedback.success {
    background: rgba(15, 157, 88, 0.08);
    color: #0f9d58;
}

.profile-inline-feedback.error {
    background: rgba(220, 53, 69, 0.08);
    color: #c62828;
}

.profile-action-btn {
    margin-top: 14px;
    min-height: 52px;
    border-radius: 16px;
}

.profile-address-list {
    display: grid;
    gap: 12px;
}

.profile-address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.04));
}

.profile-address-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-address-copy {
    min-width: 0;
    flex: 1;
}

.profile-address-copy strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.profile-address-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.profile-address-delete {
    border: none;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-address-empty {
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-logout-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promotions-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.promotions-login-card,
.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.promotions-login-card {
    text-align: center;
}

.promotions-login-icon,
.promo-empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-red);
    font-size: 24px;
}

.promotions-login-card h3,
.promo-card-head h3,
.promo-card-empty h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--text-dark);
}

.promotions-login-card p,
.promo-card-head p,
.promo-card-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.promotions-login-btn {
    width: 100%;
    margin-top: 16px;
}

.promo-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.promo-card-head-compact {
    margin-bottom: 10px;
}

.promo-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.promo-card-cashback {
    background: linear-gradient(135deg, var(--primary-soft), rgba(255, 207, 92, 0.12)), var(--bg-card);
}

.promo-delivery-free-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(45, 212, 191, 0.12)), var(--bg-card);
    border-color: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 22px;
    padding: 18px;
}

.promo-card-rule {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.01)), var(--bg-card);
}

.promo-delivery-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #047857;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.promo-delivery-free-content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--text-dark);
}

.promo-delivery-free-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.promo-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.promo-tab-btn {
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.promo-tab-btn.active {
    border-color: var(--primary-border-soft);
    background: #fff;
    color: var(--primary-red);
    box-shadow: 0 10px 22px var(--primary-shadow-soft);
}

.promo-balance-pill {
    min-width: 84px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.promo-rule-copy {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
}

.promo-tab-panel h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--text-dark);
}

.promo-tab-panel p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.promo-tab-panel .promo-balance-pill {
    margin-top: 18px;
}

.promo-products-grid,
.promo-coupon-grid {
    display: grid;
    gap: 12px;
}

.promo-reward-grid {
    display: grid;
    gap: 12px;
}

.promo-reward-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.02);
}

.promo-reward-progress {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
}

.promo-reward-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8a00 0%, #ff2740 100%);
}

.promo-reward-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 14px 10px;
}

.promo-reward-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.05);
}

.promo-reward-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 24px;
}

.promo-reward-copy {
    min-width: 0;
}

.promo-reward-copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-size: 15px;
}

.promo-reward-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.promo-reward-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 14px;
}

.promo-reward-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.promo-reward-points {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.promo-reward-note {
    color: var(--primary-red);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.promo-reward-btn {
    border: none;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--brand-catalogo, var(--primary-red));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-catalogo, var(--primary-red)) 18%, transparent);
}

.promo-reward-btn.is-done {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
    box-shadow: none;
}

.promo-reward-btn.is-disabled {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
    box-shadow: none;
}

.promo-product-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.02);
}

.promo-product-thumb {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
}

.promo-product-thumb-fallback {
    background: linear-gradient(135deg, #7cc7f2, #5ea9e7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.promo-product-copy {
    padding: 12px 12px 12px 0;
    min-width: 0;
}

.promo-product-copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-size: 15px;
}

.promo-product-copy p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.promo-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-product-price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
}

.promo-product-price-new {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: 900;
}

.promo-coupon-card {
    border-radius: 18px;
}

.promo-card-empty {
    text-align: center;
}

.modal-profile-delete-container {
    max-width: 420px;
}

.modal-profile-delete-body {
    align-items: center;
    text-align: center;
}

.modal-profile-delete-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.modal-profile-delete-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
}

.modal-profile-delete-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.modal-profile-delete-actions {
    width: 100%;
    display: flex;
    gap: 12px;
}

.modal-profile-delete-actions .btn-add-new,
.modal-profile-delete-actions .btn-finalizar {
    flex: 1 1 0;
    min-height: 50px;
    margin: 0;
    border-radius: 14px;
}

.modal-profile-delete-cancel {
    border-style: solid;
}

.address-form-grid {
    display: grid;
    gap: 12px;
}

.modal-endereco-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 20px;
}

.address-lookup-card {
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-red) 4%, white) 0%, color-mix(in srgb, var(--primary-red) 1%, white) 100%), var(--bg-card);
}

.address-lookup-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.address-lookup-copy {
    margin: 12px 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.address-lookup-row,
.address-form-row {
    display: grid;
    gap: 10px;
}

.address-manual-row {
    margin-top: 10px;
}

.address-manual-link {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
}

.address-confirm-header {
    margin-bottom: 14px;
}

.address-confirm-header h4 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
}

.address-confirm-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.address-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.address-form-actions .btn-add-new,
.address-form-actions .btn-finalizar {
    flex: 1 1 0;
    width: 0;
    min-height: 50px;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.address-form-actions .btn-add-new {
    border-style: solid;
}

.address-lookup-row {
    grid-template-columns: minmax(0, 1fr);
}

.address-form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-search-btn {
    border: none;
    border-radius: 16px;
    background: var(--primary-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 18px;
    min-height: 52px;
    box-shadow: 0 10px 24px rgba(234, 29, 44, 0.18);
}

.address-search-btn:active {
    transform: scale(0.98);
}

.address-form-hint {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.address-form-hint.success {
    color: #0f9d58;
}

.address-form-hint.error {
    color: #c62828;
}

.address-save-btn {
    margin-top: 16px;
}

.address-textarea {
    min-height: 100px;
    margin-top: 0;
}

.address-form-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.08);
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
}

.pac-container {
    z-index: 13550 !important;
    margin-top: 6px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    font-family: inherit;
}

.pac-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(234, 29, 44, 0.06);
}

.pac-item-query {
    font-size: 14px;
    color: var(--text-dark);
}

body.dark-mode .pac-container {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.dark-mode .pac-item {
    background: #1f1f1f;
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
}

body.dark-mode .pac-item-query {
    color: #ffffff;
}

body.dark-mode .pac-item:hover,
body.dark-mode .pac-item-selected {
    background: rgba(255, 255, 255, 0.08);
}

.modal-upsell-container {
    max-width: 960px;
    max-height: 66vh;
    min-height: 58vh;
    border-radius: 24px 24px 0 0;
}

.modal-upsell-header {
    padding: 10px 16px 12px;
}

.upsell-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-dark);
}

.upsell-sheet-handle {
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    margin: 10px auto 0;
}

.modal-upsell-body {
    padding: 8px 10px 6px;
    border-top: 1px solid var(--border-color);
}

.upsell-copy {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.upsell-list {
    display: grid;
    gap: 6px;
}

.upsell-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.upsell-item:active {
    transform: scale(0.985);
}

.upsell-item:hover {
    border-color: rgba(234, 29, 44, 0.26);
    box-shadow: 0 12px 28px rgba(234, 29, 44, 0.08);
}

.upsell-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-body);
}

.upsell-item-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-red), #ff7b6b);
}

.upsell-item-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.upsell-item-copy strong {
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upsell-item-copy span {
    font-size: 10px;
    line-height: 1.2;
    color: var(--text-muted);
}

.upsell-item-meta {
    display: grid;
    gap: 3px;
    justify-items: end;
    flex-shrink: 0;
}

.upsell-item-meta span {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-dark);
    white-space: nowrap;
}

.upsell-item-btn {
    border: none;
    border-radius: 9px;
    min-height: 26px;
    padding: 0 9px;
    background: rgba(234, 29, 44, 0.08);
    color: var(--primary-red);
    font-size: 10px;
    font-weight: 800;
}

.upsell-actions {
    padding: 6px 12px 10px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.upsell-dismiss-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    text-decoration: underline;
}

.upsell-empty {
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 480px) {
    .modal-upsell-container {
        max-height: 72vh;
        min-height: 64vh;
    }

    .modal-upsell-body {
        padding: 8px 8px 6px;
    }
}

body.dark-mode .address-form-error {
    background: rgba(220, 53, 69, 0.16);
    color: #ff8a80;
}

body.dark-mode .profile-inline-feedback.success {
    background: rgba(15, 157, 88, 0.16);
    color: #7ee2a8;
}

body.dark-mode .profile-inline-feedback.error {
    background: rgba(220, 53, 69, 0.16);
    color: #ff8a80;
}

body.dark-mode .address-lookup-card {
    background: linear-gradient(180deg, rgba(234, 29, 44, 0.08) 0%, rgba(234, 29, 44, 0.03) 100%), var(--bg-card);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .address-lookup-kicker {
    background: rgba(234, 29, 44, 0.16);
}

body.dark-mode .address-form-hint.success {
    color: #7ee2a8;
}

body.dark-mode .address-form-hint.error {
    color: #ff8a80;
}

body.dark-mode .address-manual-link {
    color: #ff7b86;
}

body.dark-mode .search-bar-container {
    background: #1e1e1e;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

body.dark-mode .store-status-btn {
    background-color: #252525;
    border-color: #333;
}

@media (min-width: 768px) {
    .address-lookup-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .fixed-chat-btn {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .profile-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat-bubble {
        max-width: 92%;
    }

    .profile-section-head {
        flex-direction: column;
    }

    .profile-inline-btn {
        width: 100%;
    }

    .address-form-row-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .promo-card-head {
        flex-direction: column;
    }

    .promo-balance-pill {
        align-self: flex-start;
    }

    .promo-product-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .promo-reward-main {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .promo-reward-thumb {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .promo-reward-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .promo-reward-btn {
        width: 100%;
    }
}

.success-view-shell {
    min-height: 100dvh;
    padding: 16px 14px 16px;
    background:
        radial-gradient(circle at top left, rgba(255, 236, 167, 0.9), transparent 38%),
        linear-gradient(180deg, #fffef9 0%, #f4f7fb 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.success-hero {
    background: linear-gradient(135deg, #fff37b 0%, #fff8b0 100%);
    border-radius: 24px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 18px 40px rgba(237, 198, 41, 0.2);
}

.success-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.success-hero-copy h2 {
    margin: 4px 0 6px;
    font-size: 24px;
    line-height: 1.02;
    color: #1c2040;
}

.success-hero-copy p {
    margin: 0;
    line-height: 1.35;
}

.success-eyebrow {
    font-size: 13px;
    font-weight: 800;
    color: #1c2040;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.success-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 32, 64, 0.08);
    border-radius: 22px;
    padding: 14px 14px;
    box-shadow: 0 12px 28px rgba(20, 29, 58, 0.08);
}

.success-estimate-card,
.success-address-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.success-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f4fb;
    color: #21284b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.success-card-label {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.success-card-value,
.success-address-value {
    color: #1c2040;
    font-size: 16px;
    line-height: 1.25;
}

.success-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #1c2040;
    margin-bottom: 10px;
}

.success-status-list {
    display: grid;
    gap: 7px;
}

.success-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(28, 32, 64, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    background: #f7f8fc;
    opacity: 0.72;
}

.success-status-item.completed {
    background: linear-gradient(135deg, #39c37d 0%, #67d494 100%);
    border-color: transparent;
    opacity: 1;
}

.success-status-marker {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(28, 32, 64, 0.08);
    color: #7b829a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.success-status-item.completed .success-status-marker {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.success-status-content {
    min-width: 0;
}

.success-status-title {
    color: #202746;
    font-size: 13px;
    font-weight: 700;
}

.success-status-time {
    color: #6e7691;
    font-size: 11px;
    margin-top: 2px;
}

.success-status-item.completed .success-status-title,
.success-status-item.completed .success-status-time {
    color: #ffffff;
}

.success-fidelity-card {
    background: linear-gradient(135deg, #fff7e4 0%, #ffffff 100%);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.success-fidelity-icon {
    background: #fff0d2;
    color: #d97706;
}

.success-fidelity-copy {
    margin: 6px 0 0;
    color: #30385f;
    line-height: 1.5;
    font-size: 13px;
}

.success-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success-action-btn {
    border: none;
    border-radius: 18px;
    background: var(--brand-catalogo, var(--primary-red));
    color: #ffffff;
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-catalogo, var(--primary-red)) 22%, transparent);
}

.success-action-btn.success-action-btn-secondary {
    background: #ffffff;
    color: #1f2746;
    border: 1px solid rgba(31, 39, 70, 0.12);
    box-shadow: none;
}

.success-status-card {
    flex: 1 1 auto;
    min-height: 0;
}

.success-action-btn:active {
    transform: scale(0.98);
}

body.dark-mode .success-view-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 92, 0.12), transparent 35%),
        linear-gradient(180deg, #141414 0%, #101318 100%);
}

body.dark-mode .success-card {
    background: rgba(26, 26, 26, 0.94);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.dark-mode .success-hero {
    box-shadow: none;
}

body.dark-mode .success-card-icon {
    background: #232323;
    color: #f2f2f2;
}

body.dark-mode .success-fidelity-icon {
    background: rgba(255, 209, 102, 0.14);
    color: #ffd166;
}

body.dark-mode .success-section-title,
body.dark-mode .success-status-title,
body.dark-mode .success-card-value,
body.dark-mode .success-address-value,
body.dark-mode .success-fidelity-copy {
    color: #f5f5f5;
}

body.dark-mode .success-card-label,
body.dark-mode .success-status-time {
    color: #a3a7b6;
}

body.dark-mode .success-status-item {
    background: #1d1d1d;
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .success-action-btn.success-action-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
    .pizza-builder-shell {
        padding: 62px 14px 16px;
        gap: 12px;
    }

    .pizza-builder-hero {
        padding: 14px;
        border-radius: 20px;
    }

    .pizza-builder-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 22px;
    }

    .pizza-builder-title {
        font-size: 23px;
    }

    .pizza-builder-subtitle {
        font-size: 13px;
    }

    .pizza-builder-section {
        padding: 14px;
        border-radius: 18px;
    }

    .pizza-size-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pizza-border-grid,
    .pizza-combo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pizza-quantity-grid {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }

    .pizza-modal-footer {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .pizza-modal-footer .quantity-selector {
        min-width: 104px;
    }

    .success-view-shell {
        padding: 12px 10px 12px;
        gap: 8px;
    }

    .success-hero {
        align-items: flex-start;
        border-radius: 20px;
        padding: 14px 12px;
        gap: 12px;
    }

    .success-hero-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 30px;
    }

    .success-hero-copy h2 {
        font-size: 18px;
        margin: 2px 0 4px;
    }

    .success-hero-copy p {
        font-size: 12px;
        line-height: 1.28;
    }

    .success-eyebrow {
        font-size: 11px;
    }

    .success-card {
        border-radius: 18px;
        padding: 12px 12px;
    }

    .success-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 14px;
    }

    .success-card-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .success-card-value {
        font-size: 14px;
    }

    .success-section-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .success-status-list {
        gap: 6px;
    }

    .success-status-item {
        padding: 8px 10px;
        border-radius: 12px;
        gap: 8px;
    }

    .success-status-marker {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .success-status-title {
        font-size: 12px;
        line-height: 1.2;
    }

    .success-status-time {
        font-size: 10px;
        margin-top: 1px;
    }

    .success-action-btn {
        min-height: 44px;
        border-radius: 14px;
        font-size: 13px;
    }

    .catalogo-toast-container {
        left: 50%;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: min(calc(100vw - 24px), 360px);
    }

    .catalogo-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .coupon-floating-host {
        bottom: 72px;
        padding: 0 10px;
    }

    .coupon-floating-banner {
        border-radius: 12px;
        padding: 8px 12px;
    }

    .coupon-modal-copy,
    .coupon-modal-footer,
    .coupon-modal-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon-modal-copy-btn {
        width: 100%;
    }
}
