/* ===================================================
   GOZZO RIVAS GOURMET — Pedidos desde Mesa (Styles)
   Scoped under .pedidos-* to avoid collisions
   =================================================== */

/* ── Banner (closed state) ────────────────────────── */
.pedidos-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f5f5f5;
    font-size: 0.85rem;
    font-family: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pedidos-banner.visible {
    transform: translateY(0);
}

.pedidos-banner-icon {
    flex-shrink: 0;
    display: flex;
    color: #f59e0b;
}

.pedidos-banner-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pedidos-banner-close:hover {
    color: #fff;
}

/* ── Banner de bloqueo (pedidos deshabilitados) ───── */
.pedidos-block-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fff;
    font-family: inherit;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.pedidos-block-banner.visible {
    transform: translateY(0);
}

.pedidos-block-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    max-width: 640px;
    margin: 0 auto;
}

.pedidos-block-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.pedidos-block-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    line-height: 1.35;
}

.pedidos-block-banner-text strong {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.pedidos-block-banner-text span {
    opacity: 0.85;
}

@keyframes pedidos-block-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
    50%       { box-shadow: 0 4px 32px rgba(239, 68, 68, 0.55); }
}

.pedidos-block-banner--pulse {
    animation: pedidos-block-pulse 0.6s ease;
}

/* ── Add-to-cart button ───────────────────────────── */
.pedidos-add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(205, 23, 25, 0.9);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.pedidos-add-btn:hover {
    transform: scale(1.12);
    background: rgba(205, 23, 25, 1);
    box-shadow: 0 4px 14px rgba(205, 23, 25, 0.4);
}

.pedidos-add-btn:active {
    transform: scale(0.95);
}

.pedidos-add-btn.added {
    background: #16a34a;
    animation: pedidos-pop 0.4s ease;
}

/* Book view items need relative positioning for the button */
.pedidos-active .slide-item {
    position: relative;
}

/* List view items already have relative via .row, but reinforce */
.pedidos-active .carta-item.row {
    position: relative;
}

/* In list view, position the button differently */
.pedidos-active .carta-item .pedidos-add-btn {
    position: static;
    transform: none;
    margin-left: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.pedidos-active .carta-item .pedidos-add-btn:hover {
    transform: scale(1.12);
}

@keyframes pedidos-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Floating Cart FAB ────────────────────────────── */
.pedidos-cart-fab {
    position: fixed;
    top: 122px;
    /* Above WhatsApp button */
    right: 20px;
    z-index: 9990;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #CD1719 0%, #a01214 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(205, 23, 25, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.pedidos-cart-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(205, 23, 25, 0.45);
}

.pedidos-cart-fab:active {
    transform: scale(0.95);
}

.pedidos-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #f59e0b;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.pedidos-cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Fly item animation to cart ─────────────────── */
.pedidos-fly-item {
    position: fixed;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #CD1719;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 999999;
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.5s ease-in;
}

.pedidos-fly-item.flying {
    transform: translate(calc(-50% + var(--target-x)), calc(-50% + var(--target-y))) scale(0.3);
    opacity: 0.3;
}

/* Fab bump animation on arrival */
.pedidos-cart-fab.bump {
    animation: pedidos-cart-bump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pedidos-cart-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Welcome Popup ────────────────────────────────── */
.pedidos-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: welcome-fade 0.3s ease-out;
}

.pedidos-welcome-overlay.out {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.pedidos-welcome-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    animation: welcome-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.welcome-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.pedidos-welcome-modal h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.2rem;
}

.pedidos-welcome-modal p {
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.welcome-btn {
    background: #CD1719;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(205, 23, 25, 0.3);
    transition: transform 0.2s;
}

.welcome-btn:active {
    transform: scale(0.95);
}

@keyframes welcome-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes welcome-slide {
    from { transform: translateY(30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Variation Selector Modals ─────────────────── */
.pedidos-variation-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: welcome-fade 0.2s ease-out;
}

.pedidos-variation-popover {
    background: #1f1f1f;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    animation: welcome-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 600px) {
    .pedidos-variation-overlay {
        align-items: center;
        padding: 20px;
    }
    .pedidos-variation-popover {
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    }
}

.variation-popover-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.variation-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variation-opt-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.variation-opt-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #CD1719;
}

.variation-cancel-btn {
    margin-top: 8px;
    padding: 14px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: color 0.2s;
}

.variation-cancel-btn:hover {
    color: #fff;
}

/* ── Modal Overlay ────────────────────────────────── */
.pedidos-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pedidos-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal ────────────────────────────────────────── */
.pedidos-modal {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.pedidos-modal.visible {
    transform: translateY(0);
}

.pedidos-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pedidos-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f5f5f5;
    font-family: inherit;
}

.pedidos-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.pedidos-modal-close:hover {
    color: #fff;
}

.pedidos-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

/* ── Cart item row ────────────────────────────────── */
.pedidos-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pedidos-modal-item:last-child {
    border-bottom: none;
}

.pedidos-modal-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pedidos-modal-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.pedidos-modal-item-name {
    display: block;
    font-size: 0.9rem;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pedidos-modal-item-price {
    display: block;
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

.pedidos-modal-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pedidos-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.pedidos-qty-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.pedidos-qty {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f5f5f5;
    min-width: 20px;
    text-align: center;
}

/* ── Empty cart ────────────────────────────────────── */
.pedidos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #777;
    gap: 12px;
}

.pedidos-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ── Modal footer ─────────────────────────────────── */
.pedidos-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pedidos-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #e5e5e5;
}

.pedidos-total-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.pedidos-confirm-btn,
.pedidos-send-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #CD1719 0%, #a01214 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.pedidos-confirm-btn:hover,
.pedidos-send-btn:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.pedidos-confirm-btn:active,
.pedidos-send-btn:active {
    transform: scale(0.98);
}

.pedidos-confirm-btn:disabled,
.pedidos-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pedidos-back-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    padding: 6px;
    font-family: inherit;
    transition: color 0.2s;
}

.pedidos-back-btn:hover {
    color: #f5f5f5;
}

/* ── Checkout ─────────────────────────────────────── */
.pedidos-checkout-text {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0 0 16px;
    line-height: 1.5;
}

.pedidos-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.pedidos-input:focus {
    border-color: #CD1719;
    box-shadow: 0 0 0 3px rgba(205, 23, 25, 0.2);
}

.pedidos-input::placeholder {
    color: #666;
}

.pedidos-notas-input {
    margin-top: 10px;
    resize: none;
    font-size: 0.85rem;
    line-height: 1.5;
}

.pedidos-checkout-error {
    color: #f87171;
    font-size: 0.8rem;
    margin: 8px 0 0;
    min-height: 1.2em;
}

.pedidos-checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: #ccc;
}

/* ── Success modal ────────────────────────────────── */
.pedidos-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    animation: pedidos-pop 0.5s ease;
}

.pedidos-success-modal h3 {
    color: #f5f5f5;
    font-family: inherit;
}

.pedidos-success-modal p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Custom ingredient tags in cart modal ──────────── */
.pedidos-custom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.pedidos-custom-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
}

.pedidos-custom-tag-extra {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.pedidos-custom-tag-choice {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}

/* ── Customization Overlay ─────────────────────────── */
.pedidos-customize-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: welcome-fade 0.2s ease-out;
}

.pedidos-customize-popover {
    background: #1f1f1f;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    animation: welcome-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 600px) {
    .pedidos-customize-overlay {
        align-items: center;
        padding: 20px;
    }
    .pedidos-customize-popover {
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    }
}

.customize-header {
    margin-bottom: 16px;
}

.customize-product-name {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.customize-product-price {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    text-align: center;
}

.customize-section {
    margin-bottom: 16px;
}

.customize-section-title {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.customize-section-help {
    color: rgba(255,255,255,0.6);
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.customize-empty-state {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 16px;
}

.customize-validation-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(205, 23, 25, 0.12);
    border: 1px solid rgba(205, 23, 25, 0.3);
    color: #fca5a5;
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ── Ingredient chips ─────────────────────────────── */
.customize-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.customize-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #e5e5e5;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
    -webkit-user-select: none;
    user-select: none;
}

.customize-chip:hover {
    background: rgba(255,255,255,0.13);
}

/* ✕ icon inside chip */
.customize-chip-x {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    line-height: 1;
    transition: color 0.15s;
}

/* Removed state: tachado + rojo */
.customize-chip.removed {
    background: rgba(205, 23, 25, 0.12);
    border-color: rgba(205, 23, 25, 0.45);
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    text-decoration-color: rgba(205, 23, 25, 0.7);
}

.customize-chip.removed .customize-chip-x {
    color: #CD1719;
}

.customize-extras-wrap {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.customize-extra-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f5f5f5;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    font-family: inherit;
}

.customize-extra-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.22);
}

.customize-extra-option.selected {
    background: rgba(34,197,94,0.14);
    border-color: rgba(34,197,94,0.4);
}

.customize-extra-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.customize-extra-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.customize-extra-check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.customize-extra-option.selected .customize-extra-check {
    background: rgba(34,197,94,0.85);
}

.customize-extra-text {
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
}

.customize-extra-desc {
    margin-top: 1px;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(229, 231, 235, 0.72);
    text-align: left;
    line-height: 1.25;
}

.customize-extra-price {
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.customize-required-wrap {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.customize-required-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.customize-required-option.selected {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.35);
}

.customize-required-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.customize-required-text {
    color: #f5f5f5;
    font-size: 0.86rem;
    font-weight: 600;
}

.customize-required-price {
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 700;
}

.customize-required-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.customize-required-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.customize-required-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.customize-required-count {
    min-width: 18px;
    text-align: center;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
}

/* ── Actions row ──────────────────────────────────── */
.customize-actions {
    display: flex;
    gap: 8px;
}

.customize-actions.expanded {
    /* When chips are shown, 2 buttons only */
}

.customize-cancel-btn {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #aaa;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.customize-cancel-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Personalizar: outlined secondary */
.customize-personalize-btn {
    flex: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 13px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.2);
    color: #e5e5e5;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.customize-personalize-btn:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.35);
}

.customize-confirm-btn {
    flex: 2;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, #CD1719 0%, #a01214 100%);
    border: none;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}

.customize-confirm-btn:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.customize-confirm-btn:active {
    transform: scale(0.98);
}

/* ── Desktop: center modal ────────────────────────── */
@media (min-width: 600px) {
    .pedidos-modal-overlay {
        align-items: center;
    }

    .pedidos-modal {
        border-radius: 16px;
        max-height: 75vh;
    }

    .pedidos-modal.visible {
        transform: translateY(0);
    }
}