/* =========================================================================
   UNE Pedidos WhatsApp — Carrinho lateral (overlay)
   ========================================================================= */

.une-cart-overlay {
    position: fixed; inset: 0; background: rgba(20, 15, 10, .45);
    z-index: 99998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.une-cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.une-cart-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
    background: #F7F4EF; z-index: 99999; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -12px 0 40px rgba(30, 20, 10, .18);
    font-family: 'Figtree', sans-serif; color: #1E1E1E;
}
.une-cart-drawer.is-open { transform: translateX(0); }

.une-cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px; border-bottom: 1px solid rgba(30,30,30,.08); flex: 0 0 auto;
}
.une-cart-header h2 {
    font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin: 0; color: #1E1E1E;
}
.une-cart-close {
    background: none; border: none; cursor: pointer; color: #1E1E1E; padding: 4px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.une-cart-close:hover { color: #4A2617; }

.une-cart-items {
    flex: 1 1 auto; overflow-y: auto; padding: 8px 24px;
}

.une-cart-empty {
    padding: 48px 0; text-align: center; color: #8E614F; font-size: 14px;
}

.une-cart-item {
    display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(30,30,30,.06);
}
.une-cart-item-image {
    width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
    background: #E9D7C1;
}
.une-cart-item-body { flex: 1 1 auto; min-width: 0; }
.une-cart-item-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.une-cart-item-name {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: #1E1E1E;
    margin: 0 0 2px; line-height: 1.3;
}
.une-cart-item-flavor {
    font-size: 12.5px; color: #8E614F; margin: 0; line-height: 1.3;
}
.une-cart-item-sabor { color: #AA7556; }
.une-cart-item-remove {
    background: none; border: none; cursor: pointer; color: #AA7556; font-size: 12.5px;
    font-weight: 600; padding: 2px 0; white-space: nowrap; text-decoration: none;
}
.une-cart-item-remove:hover { color: #4A2617; text-decoration: underline; }

.une-cart-item-bottom {
    display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.une-cart-qty {
    display: flex; align-items: center; gap: 10px;
}
.une-cart-qty-btn {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid #E9D7C1; background: #fff;
    color: #1E1E1E; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 15px; line-height: 1; padding: 0;
}
.une-cart-qty-btn:hover:not(:disabled) { border-color: #AA7556; color: #4A2617; }
.une-cart-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.une-cart-qty-value { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }

.une-cart-item-price { font-size: 14.5px; font-weight: 700; color: #1E1E1E; white-space: nowrap; }
.une-cart-item-price-original {
    font-size: 12px; font-weight: 500; color: #AA7556; margin-right: 4px; text-decoration: line-through;
}

.une-cart-item-discount {
    display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700;
    color: #1E7B34; background: #E8F9F1; border-radius: 999px; padding: 3px 10px;
}

.une-cart-footer {
    flex: 0 0 auto; padding: 18px 24px 24px; border-top: 1px solid rgba(30,30,30,.08);
}

.une-cart-field { margin-bottom: 14px; }
.une-cart-field label {
    display: block; font-size: 12.5px; font-weight: 600; color: #6A3D2B; margin-bottom: 6px;
}
.une-cart-field input[type="text"] {
    width: 100%; border: 1px solid #E9D7C1; border-radius: 10px; padding: 11px 14px;
    font-size: 14px; font-family: 'Figtree', sans-serif; color: #1E1E1E; background: #fff;
}
.une-cart-field input[type="text"]:focus {
    outline: none; border-color: #AA7556;
}
.une-cart-field.has-error input[type="text"] { border-color: #C0503A; }
.une-cart-field-error { color: #C0503A; font-size: 12px; margin-top: 4px; display: none; }
.une-cart-field.has-error .une-cart-field-error { display: block; }

.une-cart-cep-message {
    margin: 6px 0 0; font-size: 12.5px; line-height: 1.4;
    font-family: 'Figtree', sans-serif; color: #6A3D2B;
}
.une-cart-cep-message--sucesso { color: #1E7B34; font-weight: 600; }
.une-cart-cep-message--fora { color: #9A5B00; font-weight: 600; }

.une-cart-address-field { margin-top: -4px; }

.une-cart-total-row {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.une-cart-total-label { font-size: 14px; color: #6A3D2B; }
.une-cart-total-value { font-size: 19px; font-weight: 700; color: #1E1E1E; }

.une-cart-submit {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #4A2617; color: #F7F4EF; border: none; border-radius: 999px;
    padding: 15px 20px; font-size: 15px; font-weight: 600; font-family: 'Figtree', sans-serif;
    cursor: pointer; transition: background .2s ease, opacity .2s ease;
}
.une-cart-submit:hover { background: #6A3D2B; }
.une-cart-submit:disabled { opacity: .5; cursor: not-allowed; }
.une-cart-submit svg { flex: 0 0 auto; }

.une-cart-min-note { font-size: 11.5px; color: #8E614F; margin-top: 6px; text-align: center; }

/* =========================================================================
   Campo "Data de entrega" (gatilho do popup) no rodapé do carrinho
   ========================================================================= */
.une-cart-date-trigger {
    width: 100%; display: flex; align-items: center; gap: 10px;
    border: 1px solid #E9D7C1; border-radius: 10px; padding: 11px 14px;
    font-size: 14px; font-family: 'Figtree', sans-serif; color: #1E1E1E; background: #fff;
    cursor: pointer; text-align: left;
}
.une-cart-date-trigger:hover,
.une-cart-date-trigger:focus { outline: none; border-color: #AA7556; }
.une-cart-date-trigger svg { flex: 0 0 auto; color: #AA7556; }
.une-cart-date-trigger-text { flex: 1 1 auto; }
.une-cart-date-field.has-error .une-cart-date-trigger { border-color: #C0503A; }

/* =========================================================================
   Popup de calendário — seleção da data de entrega
   ========================================================================= */
.une-date-overlay {
    position: fixed; inset: 0; background: rgba(20, 15, 10, .5);
    z-index: 100000; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.une-date-overlay.is-open { opacity: 1; pointer-events: auto; }

.une-date-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.96);
    width: 340px; max-width: 92vw; max-height: 86vh; overflow-y: auto;
    background: #F7F4EF; border-radius: 20px; z-index: 100001;
    padding: 22px 22px 20px; font-family: 'Figtree', sans-serif; color: #1E1E1E;
    box-shadow: 0 24px 60px rgba(30, 20, 10, .3);
    opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.une-date-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.une-date-modal-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.une-date-modal-header h3 {
    font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin: 0; color: #1E1E1E;
}
.une-date-modal-close {
    background: none; border: none; cursor: pointer; color: #1E1E1E; padding: 2px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.une-date-modal-close:hover { color: #4A2617; }

.une-date-modal-nav {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.une-date-nav-btn {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid #E9D7C1; background: #fff;
    color: #1E1E1E; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.une-date-nav-btn:hover:not(:disabled) { border-color: #AA7556; color: #4A2617; }
.une-date-nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.une-date-modal-month {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14.5px; text-transform: capitalize;
}

.une-date-modal-weekdays,
.une-date-modal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.une-date-modal-weekdays {
    margin-bottom: 4px;
}
.une-date-modal-weekdays span {
    text-align: center; font-size: 11px; font-weight: 700; color: #8E614F; padding: 4px 0;
}

.une-date-cell { aspect-ratio: 1 / 1; }
.une-date-cell--empty { visibility: hidden; }

.une-date-day {
    width: 100%; height: 100%; border: none; background: none; border-radius: 10px;
    font-size: 13.5px; font-family: 'Figtree', sans-serif; color: #1E1E1E; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.une-date-day:hover:not(:disabled) { background: #EFE6D8; }
.une-date-day.is-today { font-weight: 700; color: #4A2617; }
.une-date-day.is-selected { background: #4A2617; color: #F7F4EF; }
.une-date-day.is-selected.is-today { color: #F7F4EF; }
.une-date-day:disabled {
    color: #CFB1A5; cursor: not-allowed; text-decoration: line-through; text-decoration-color: #CFB1A5;
}

.une-date-modal-footer { margin-top: 16px; }
.une-date-modal-hint { font-size: 12px; color: #8E614F; margin: 0 0 10px; min-height: 15px; }
.une-date-modal-confirm {
    width: 100%; background: #4A2617; color: #F7F4EF; border: none; border-radius: 999px;
    padding: 13px 20px; font-size: 14.5px; font-weight: 600; font-family: 'Figtree', sans-serif;
    cursor: pointer; transition: background .2s ease, opacity .2s ease;
}
.une-date-modal-confirm:hover:not(:disabled) { background: #6A3D2B; }
.une-date-modal-confirm:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
    .une-cart-drawer { width: 100%; max-width: 100%; }
    .une-date-modal { width: 320px; padding: 18px 16px 16px; }
}
