/* =====================================================
   ZAPD — Tema Prato Feito Express
   CSS alinhado com front_pratofeito/index.php
   ===================================================== */

:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-hover: #f1f3f5;
    --border: #e9ecef;
    --accent: #ff6b2b;
    --accent-hover: #e85d20;
    --accent-soft: rgba(255, 107, 43, 0.10);
    --text: #212529;
    --text-muted: #495057;
    --text-dim: #adb5bd;
    --success: #10b981;
    --card: #eef0f3;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(180deg, rgba(255, 107, 43, 0.07) 0%, transparent 100%);
    padding: 32px 0 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.logo-container {
    margin-bottom: 12px;
}

.logo-img {
    max-height: 72px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    object-fit: contain;
}

.company-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--text) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-item.open {
    color: var(--success);
    font-weight: 600;
}

/* ===== CATEGORY NAVIGATION ===== */
.category-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 40;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.category-btn.active,
.category-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(255, 107, 43, 0.25);
}

/* ===== PRODUCT LISTING ===== */
.menu-list {
    padding-top: 20px;
}

.menu-section {
    margin-bottom: 8px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: -2px 0 14px 13px;
    line-height: 1.4;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

/* Cartão de produto — classe usada no HTML: product-card */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(255, 107, 43, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    background: var(--surface-hover);
}

/* Estado: Item Em Falta (Indisponível) */
.product-card.item-em-falta {
    cursor: not-allowed;
    background: #f1f3f5;
    border-color: #dee2e6;
    opacity: 0.85;
}

.product-card.item-em-falta:hover {
    border-color: #dee2e6;
    transform: none;
    box-shadow: none;
    background: #f1f3f5;
}

.product-card.item-em-falta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(240, 242, 245, 0.55);
    backdrop-filter: grayscale(85%);
    -webkit-backdrop-filter: grayscale(85%);
    pointer-events: none;
    z-index: 2;
}

.product-card.item-em-falta .em-falta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #495057;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-card.item-em-falta .product-img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.product-card.item-em-falta .product-title,
.product-card.item-em-falta .product-desc,
.product-card.item-em-falta .product-price {
    color: #6c757d !important;
}

.product-card.item-em-falta .btn-add,
.btn-em-falta {
    background: #dee2e6 !important;
    color: #868e96 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    pointer-events: none;
    font-size: 13px !important;
}

.product-img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--card);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* HTML usa: product-title */
.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    white-space: normal;
    word-break: break-word;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* HTML usa: product-price-row */
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HTML usa: product-price */
.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* HTML usa: btn-add */
.btn-add {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.product-card:hover .btn-add {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.35);
}

/* ===== MODAL ===== */
/* HTML usa: .modal com classe .open */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px 20px 30px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--border);
    border: none;
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    background: #d1d5db;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    padding-right: 40px;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

/* ===== QUANTITY CONTROL ===== */
/* HTML usa: qty-control */
.qty-control {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: none;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--accent);
    color: #fff;
}

.qty-val {
    font-size: 20px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    color: var(--text);
}

/* ===== FORM ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    appearance: auto;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.10);
}

.form-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.form-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 43, 0.30);
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== CART BAR (barra flutuante inferior) ===== */
/* HTML usa: cart-bar, cart-bar-info, cart-bar-qty, cart-bar-total, cart-bar-btn */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--border);
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    z-index: 95;
    cursor: pointer;
    transition: var(--transition);
}

.cart-bar-inner {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-bar-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.35);
    flex-shrink: 0;
}

.cart-bar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1e2230;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cart-bar-text {
    display: flex;
    flex-direction: column;
}

.cart-bar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.cart-bar-sublabel {
    font-size: 11px;
    color: var(--text-muted);
}

.cart-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-bar-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-bar-price-box small {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1;
}

.cart-bar-total {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.cart-bar-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(255, 107, 43, 0.35);
    transition: var(--transition);
}

.cart-bar-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ===== BUMP CHECKBOX ===== */
.bump-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ===== RODAPÉ ===== */
.footer-hidden {
    text-align: center;
    padding: 40px 0 20px;
    font-size: 11px;
    color: var(--text-dim);
}

.footer-hidden a {
    color: var(--text-dim);
    text-decoration: none;
}

.footer-hidden a:hover {
    color: var(--text-muted);
}

/* ===== GRUPOS DE COMPLEMENTOS ===== */
.comp-grupo {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.comp-grupo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.comp-grupo-nome {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.comp-badge-obrig {
    font-size: 10px;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.comp-badge-gratis {
    font-size: 10px;
    font-weight: 700;
    background: var(--success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.comp-grupo-desc {
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 14px 4px;
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

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

.comp-item:hover {
    background: var(--accent-soft);
}

.comp-item input[type="radio"],
.comp-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.comp-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.comp-item-nome {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.comp-item-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.comp-item-preco {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.comp-item-preco.gratis {
    color: var(--success);
}

/* Contador de Complementos */
.comp-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.comp-counter-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    line-height: 1;
    padding: 0;
}

.comp-counter-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.comp-counter-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.comp-counter-val {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.comp-counter-val.has-qty {
    color: var(--accent);
}

/* Cupom no Carrinho */
.cupom-card {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin: 12px 0;
}

.cupom-input-group {
    display: flex;
    gap: 6px;
}

.cupom-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--surface);
    color: var(--text);
}

.cupom-btn {
    padding: 8px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cupom-btn:hover {
    background: var(--accent-hover);
}

.cupom-msg {
    font-size: 11px;
    margin-top: 6px;
    font-weight: 600;
}

.cupom-msg.sucesso {
    color: var(--success);
}

.cupom-msg.erro {
    color: #e53935;
}

.cupom-aplicado-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.btn-remove-cupom {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    font-weight: 700;
}

/* Cupons Automáticos */
.cupons-auto-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cupom-auto-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 107, 43, 0.08);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text);
    transition: var(--transition);
}

.cupom-auto-badge.ativo {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid var(--success);
    color: var(--success);
    font-weight: 600;
}

/* Banner de Destaque de Cupom / Desconto no Topo */
.cupom-banner-promo {
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.12) 0%, rgba(255, 159, 67, 0.18) 100%);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin: 10px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(255, 107, 43, 0.08);
    position: relative;
    overflow: hidden;
}

.cupom-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.3);
}

.cupom-banner-content {
    flex: 1;
    min-width: 0;
}

.cupom-banner-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.cupom-banner-title .badge-tag {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cupom-banner-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.cupom-banner-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.cupom-banner-value small {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 16px;
    left: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: all;
    animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.toast-item.toast-success {
    border-left-color: var(--success);
}

.toast-item.toast-error {
    border-left-color: #ef4444;
}

.toast-item.toast-warning {
    border-left-color: #f59e0b;
}

.toast-item.toast-info {
    border-left-color: var(--accent);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.toast-info .toast-icon {
    background: rgba(255, 107, 43, 0.12);
    color: var(--accent);
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
    align-self: flex-start;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 0;
    animation: toastProgress var(--toast-dur, 4s) linear forwards;
}

.toast-success .toast-progress {
    background: var(--success);
}

.toast-error .toast-progress {
    background: #ef4444;
}

.toast-warning .toast-progress {
    background: #f59e0b;
}

.toast-info .toast-progress {
    background: var(--accent);
}

.toast-item.toast-hiding {
    animation: toastSlideOut 0.28s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 120px;
        margin-bottom: 0;
    }

    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
        max-height: 0;
        margin-bottom: -10px;
        padding: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}