/* Continue from existing styles */

/* ======================================================= */
/* ====== 23. CONTADOR DE NO LEÍDAS (sobre #header-menu-btn) ====== */
/* ======================================================= */
/* La campana y el botón de llamar sueltos, y el dropdown de notificaciones flotante,
   se retiraron el 2026-09-19 — ahora viven juntos dentro de #menu-drawer (ver 2.
   ENCABEZADO en style.css para .header-menu-btn y .menu-drawer-*). Acá solo queda el
   contador de no leídas, que ahora se dibuja sobre el botón de menú (☰). */
.notification-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #d62300;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.mark-all-read {
    background: none;
    border: none;
    color: #d62300;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f0f0f0;
}

.notification-item.unread {
    background: #fff5f5;
    border-left: 3px solid #d62300;
}

.notification-item .notif-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.notification-item .notif-body {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.notification-item .notif-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 6px;
}

/* ======================================================= */
/* ====== 25. ORDER HISTORY MODAL ====== */
/* ======================================================= */
.history-content {
    height: auto;
    max-height: 85vh;
    border-radius: 25px;
    background: #f8f9fa;
}

.history-header {
    background: white;
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin: 0;
}

.history-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.order-history-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.2s;
}

.order-history-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.order-id {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
}

.order-date {
    font-size: 0.75rem;
    color: #6b6b6b;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-status-badge.delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status-badge.preparing {
    background: #fff3e0;
    color: #e65100;
}

.order-items-list {
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}

.order-item-name {
    color: #555;
}

.order-item-price {
    font-weight: 600;
    color: #111;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.order-total {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

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

.order-reorder-btn {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    border: none;
    transition: all 0.2s;
}

.order-reorder-btn {
    background: #d62300;
    color: white;
}

.order-reorder-btn:hover {
    background: #b81d00;
    transform: scale(1.05);
}

.order-reorder-btn:active {
    transform: scale(0.95);
}

/* View All Orders Button */
.view-all-orders-btn {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s var(--apple-spring);
}

.view-all-orders-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.view-all-orders-btn:active {
    transform: scale(0.95);
}

/* ======================================================= */
/* ====== 24. DIÁLOGO DE CONFIRMACIÓN PROPIO ====== */
/* ======================================================= */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 45000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--apple-standard, ease), visibility 0.3s;
}
.confirm-dialog-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.confirm-dialog-box {
    background: #fff;
    border-radius: 22px;
    padding: 26px 22px 20px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transform: scale(0.9) translateY(6px);
    transition: transform 0.32s var(--apple-spring, cubic-bezier(0.34,1.56,0.64,1));
}
.confirm-dialog-overlay.is-open .confirm-dialog-box {
    transform: scale(1) translateY(0);
}
.confirm-dialog-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    margin-bottom: 20px;
}
.confirm-dialog-actions {
    display: flex;
    gap: 10px;
}
.confirm-dialog-btn {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.15s var(--apple-spring, cubic-bezier(0.34,1.56,0.64,1)), background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.confirm-dialog-btn:active {
    transform: scale(0.95);
}
.confirm-dialog-cancel {
    background: #f0f0f0;
    color: #555;
}
.confirm-dialog-cancel:hover {
    background: #e4e4e4;
}
.confirm-dialog-ok {
    background: #d62300;
    color: #fff;
}
.confirm-dialog-ok:hover {
    background: #b81d00;
}

/* ======================================================= */
/* ====== 25. PEDIDO MÍNIMO PARA DELIVERY ====== */
/* ======================================================= */
.delivery-min-warning {
    margin: 8px 16px 0;
    padding: 10px 14px;
    background: #fff3e0;
    border: 1.5px solid #ffcc80;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e65100;
}
.delivery-min-warning i {
    font-size: 0.9rem;
    flex-shrink: 0;
}
.pickup-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 16px 0;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e5e0d5;
    border-radius: 14px;
    color: var(--color-principal);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}
.pickup-directions:hover { background: #fff5f2; }
.pickup-directions:active { transform: scale(0.97); }
.pickup-directions.is-hidden { display: none; }

/* ======================================================= */
/* ====== 26. DESHACER ELIMINACIÓN DEL CARRITO ====== */
/* ======================================================= */
.undo-toast {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid #f1ece1;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    animation: undo-toast-in 0.28s var(--apple-spring, cubic-bezier(0.34,1.56,0.64,1));
}
.undo-toast.show { display: flex; }
@keyframes undo-toast-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.undo-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fdeceb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.undo-toast-icon svg {
    width: 15px;
    height: 15px;
    fill: var(--color-principal);
}
.undo-toast-text {
    flex: 1;
    min-width: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.undo-toast-btn {
    flex-shrink: 0;
    background: var(--color-principal);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s var(--apple-spring, cubic-bezier(0.34,1.56,0.64,1)), background 0.15s ease;
}
.undo-toast-btn:hover { background: #b81d00; }
.undo-toast-btn:active { transform: scale(0.93); }

