/* ═══════════════════════════════════════════
   WF POS — Layout & Components (rediseño)
   ═══════════════════════════════════════════ */

/* ── App shell ───────────────────────────── */

.wf-pos-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ── Topbar (header) ─────────────────────── */

.wf-pos-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 58px;
    padding: 0 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    z-index: 10;
}

.wf-pos-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wf-pos-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.wf-pos-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-pos-mesa-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.wf-pos-mesa-chip:hover {
    background: rgba(255, 255, 255, 0.16);
}

.wf-pos-mesa-chip.has-mesa {
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.25);
}

.wf-pos-mesa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.wf-pos-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-pos-employee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 4px;
}

.wf-pos-employee-name { font-weight: 500; }

.wf-pos-z-btn,
.wf-pos-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}

.wf-pos-z-btn:hover,
.wf-pos-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.wf-pos-z-btn:disabled {
    opacity: .55;
    cursor: default;
}

.wf-pos-close-btn:hover {
    border-color: #f87171;
    color: #fca5a5;
}

/* ── Toolbar (search + categorías) ───────── */

.wf-pos-toolbar {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.wf-pos-search-wrap {
    padding: 12px 16px 0;
}

.wf-pos-search {
    width: 100%;
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wf-pos-search:focus {
    border-color: #3b82f6;
    background: #fff;
}

.wf-pos-categories {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

.wf-pos-cat-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.wf-pos-cat-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wf-pos-cat-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.wf-pos-subcategories {
    background: #f8fafc;
    padding-top: 8px;
    padding-bottom: 8px;
}

.wf-pos-subcategories .wf-pos-cat-btn {
    font-size: 12px;
    padding: 5px 12px;
}

.wf-pos-subcategories .wf-pos-cat-btn.active {
    background: #1e293b;
    border-color: #1e293b;
}

/* ── Products grid ──────────────────────── */

.wf-pos-products {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 96px; /* espacio inferior para no tapar el FAB */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    align-content: start;
}

.wf-pos-loading,
.wf-pos-no-products {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
    text-align: center;
}

.wf-pos-product {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.wf-pos-product:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.wf-pos-product:active {
    transform: scale(0.97);
}

.wf-pos-product-media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
    display: block;
}

.wf-pos-product-media img,
.wf-pos-product-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-pos-product-media-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
}

.wf-pos-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8fafc;
    display: block;
}

.wf-pos-product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.wf-pos-product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
    display: block;
}

.wf-pos-product-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    pointer-events: none;
}

.wf-pos-product-body {
    padding: 8px 10px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-pos-product-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wf-pos-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    margin-top: 4px;
}

.wf-pos-load-more {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    font-size: 13px;
    color: #3b82f6;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}

.wf-pos-load-more:hover {
    background: #eff6ff;
}

/* ── Floating cart button (FAB) ──────────── */

.wf-pos-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wf-pos-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}

.wf-pos-fab:active {
    transform: scale(0.96);
}

.wf-pos-fab-cart-icon {
    display: flex;
}

.wf-pos-fab-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 3px;
}

.wf-pos-fab-total {
    font-size: 15px;
    font-weight: 800;
}

.wf-pos-fab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-pos-fab-badge:empty {
    display: none;
}

/* ── Overlays / modales base ─────────────── */

.wf-pos-overlay,
.wf-pos-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wf-pos-overlay[hidden] {
    display: none;
}

.wf-pos-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.wf-pos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.wf-pos-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.wf-pos-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
    color: #64748b;
    transition: all 0.15s;
}

.wf-pos-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.wf-pos-modal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-pos-modal-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.wf-pos-modal-option:hover {
    background: #f0fdf4;
    border-color: #86efac;
}

.wf-pos-modal-opt-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.wf-pos-modal-opt-price {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
}

/* ── Cart modal (offcanvas derecha) ──────── */

.wf-pos-cart-overlay {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.wf-pos-cart-modal {
    width: min(420px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
    animation: wfPosSlideIn 0.25s ease;
}

@keyframes wfPosSlideIn {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.wf-pos-cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.wf-pos-cart-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.wf-pos-cart-modal-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-pos-clear-cart {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s;
}

.wf-pos-clear-cart:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.wf-pos-cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
}

.wf-pos-cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 40px;
}

.wf-pos-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s;
}

.wf-pos-cart-item:hover {
    border-color: #cbd5e1;
}

.wf-pos-cart-item-info {
    flex: 1;
    min-width: 0;
}

.wf-pos-cart-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.wf-pos-cart-item-label {
    font-size: 11px;
    color: #64748b;
}

.wf-pos-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wf-pos-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
}

.wf-pos-qty-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wf-pos-cart-item-qty {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.wf-pos-cart-item-total {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    min-width: 60px;
    text-align: right;
}

.wf-pos-cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.15s;
}

.wf-pos-cart-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* ── Cart footer (pago) ──────────────────── */

.wf-pos-cart-footer {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.wf-pos-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.wf-pos-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.wf-pos-pay-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
}

.wf-pos-pay-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.wf-pos-pay-btn:active {
    transform: scale(0.97);
}

/* ── Table picker ────────────────────────── */

.wf-pos-tables-dialog {
    width: min(520px, 94vw);
    max-height: 84vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.wf-pos-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.wf-pos-table-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}

.wf-pos-table-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.wf-pos-table-card.is-current {
    border-color: #3b82f6;
    background: #eff6ff;
}

.wf-pos-table-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
}

.wf-pos-table-body {
    text-align: center;
}

.wf-pos-table-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.wf-pos-table-meta {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.wf-pos-table-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wf-pos-tables-actions {
    display: flex;
    justify-content: center;
}

.wf-pos-table-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s;
}

.wf-pos-table-counter:hover {
    background: #1e293b;
}

.wf-pos-tables-empty {
    text-align: center;
    color: #64748b;
    padding: 20px 10px;
}

.wf-pos-tables-empty p {
    margin: 8px 0 0;
}

.wf-pos-tables-empty-sub {
    font-size: 12px;
    color: #94a3b8;
}

/* ── Success (pedido completado) ──────────── */

.wf-pos-success-dialog {
    width: min(420px, 94vw);
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.wf-pos-success-icon {
    display: flex;
    justify-content: center;
    color: #22c55e;
    margin-bottom: 8px;
}

.wf-pos-success-dialog h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.wf-pos-success-total {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #059669;
}

.wf-pos-success-mesa {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}

.wf-pos-success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-pos-success-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
}

.wf-pos-success-print:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.wf-pos-success-close-table:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.wf-pos-success-new {
    background: #059669 !important;
    color: #fff !important;
    border-color: #059669 !important;
}

.wf-pos-success-new:hover {
    background: #047857 !important;
}

/* ── Checkout modal ──────────────────────── */

.wf-pos-checkout-modal {
    width: min(420px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.wf-pos-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.wf-pos-checkout-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.wf-pos-checkout-body {
    padding: 18px 20px;
}

.wf-pos-checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdf4;
    margin-bottom: 16px;
}

.wf-pos-checkout-label {
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}

.wf-pos-checkout-total {
    font-size: 22px;
    font-weight: 800;
    color: #047857;
}

.wf-pos-checkout-section {
    margin-bottom: 14px;
}

.wf-pos-checkout-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.wf-pos-checkout-paypal {
    min-height: 44px;
}

.wf-stripe-card-element {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.wf-pos-checkout-stripe-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    margin-top: 8px;
}

.wf-pos-checkout-stripe-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.wf-pos-checkout-stripe-msg {
    font-size: 12px;
    margin-top: 6px;
    color: #dc2626;
    min-height: 16px;
}

.wf-pos-checkout-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.wf-pos-checkout-divider:before,
.wf-pos-checkout-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.wf-pos-checkout-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.wf-pos-checkout-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
}

.wf-pos-checkout-quick-btn:hover {
    background: #f1f5f9;
}

/* ── Notifications ──────────────────────── */

.wf-pos-notification {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wf-pos-notification-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wf-pos-notification-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wf-pos-notification-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wf-pos-notification-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 768px) {
    .wf-pos-topbar {
        height: 52px;
        padding: 0 10px;
        gap: 8px;
    }
    .wf-pos-brand-name { display: none; }
    .wf-pos-z-btn span { display: none; }
    .wf-pos-z-btn { padding: 8px; }
    .wf-pos-close-btn span { display: none; }
    .wf-pos-close-btn { padding: 8px; }
    .wf-pos-employee { display: none; }
    .wf-pos-mesa-chip { font-size: 12px; padding: 7px 10px; }
    .wf-pos-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px 10px 84px;
    }
    .wf-pos-cart-overlay { align-items: flex-end; }
    .wf-pos-cart-modal {
        width: 100%;
        max-height: 85vh;
        animation-name: wfPosSlideUp;
    }
    @keyframes wfPosSlideUp {
        from { transform: translateY(40px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
    .wf-pos-fab {
        right: 14px;
        bottom: 14px;
        padding: 11px 16px;
    }
    .wf-pos-product-title { font-size: 13px; }
    .wf-pos-tables-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Móvil estrecho: tarjetas ligeramente más compactas. */
@media (max-width: 380px) {
    .wf-pos-products { gap: 8px; padding: 8px 8px 80px; }
    .wf-pos-product-body { padding: 6px 8px; }
}