/**
 * BW Cart Pop-Up Styles
 *
 * CSS completo per il pannello cart pop-up laterale
 * Completamente personalizzabile e commentato per sezioni
 *
 * @package BW_Cart_Popup
 * @version 1.0.0
 *
 * INDICE:
 * 1. OVERLAY
 * 2. PANNELLO PRINCIPALE
 * 3. HEADER DEL PANNELLO
 * 4. ICONE (Carrello e Chiusura)
 * 5. CONTENUTO CARRELLO
 * 6. PRODOTTI NEL CARRELLO
 * 7. DIVIDER
 * 8. SEZIONE PROMO CODE
 * 9. TOTALI
 * 10. FOOTER E PULSANTI
 * 11. TRANSIZIONI E ANIMAZIONI
 * 12. UTILITIES
 * 13. RESPONSIVE
 */


/* ========================================================================
   1. OVERLAY
   ======================================================================== */

/**
 * Overlay scuro che copre la pagina quando il pannello è aperto
 * Personalizzabile: colore e opacità tramite admin panel
 * Z-index: 100000 - Posizionato sopra al widget BW Search (z-index: 99999)
 */
.bw-cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Default: nero 50% opacità */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100000; /* Sopra al widget BW Search */
}

.bw-cart-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ========================================================================
   2. PANNELLO PRINCIPALE
   ======================================================================== */

/**
 * Pannello laterale che scorre da destra verso sinistra
 * Personalizzabile: larghezza, colore sfondo tramite admin panel
 * Z-index: 100001 - Sopra all'overlay del cart popup
 */
.bw-cart-popup-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px; /* Default: 400px, modificabile da admin */
    max-width: 100%;
    height: 100vh;
    background-color: #FFFFFF; /* Bianco puro */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transform: translateX(100%); /* Nascosto fuori schermo a destra */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100001; /* Sopra all'overlay del cart popup */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bw-cart-popup-panel.active {
    transform: translateX(0); /* Scorre dentro lo schermo */
}


/* ========================================================================
   3. HEADER DEL PANNELLO
   ======================================================================== */

/**
 * Header superiore con icona carrello, titolo e pulsante chiusura
 * Personalizzabile: colori, tipografia, padding
 */
.bw-cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #FFFFFF;
    flex-shrink: 0; /* Non si riduce con lo scroll */
}

.bw-cart-popup-header-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
    position: relative;
}

/* Hidden state for empty cart */
.bw-cart-popup-header-icon.hidden {
    display: none;
}

/* Badge con numero prodotti */
.bw-cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    line-height: 1;
}

.bw-cart-popup-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.01em;
}


/* ========================================================================
   4. ICONE (Carrello e Chiusura)
   ======================================================================== */

/**
 * Icone carrello e chiusura (X)
 * COMPLETAMENTE PERSONALIZZABILI tramite CSS custom dall'admin panel
 * Esempio: background-image: url('path/to/icon.svg');
 */

/* Icona Carrello */
.bw-cart-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Personalizza qui tramite admin panel o CSS custom */
}

/* Icona Chiusura (X) - Doppia dimensione e nera */
.bw-close-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Pulsante Chiusura */
.bw-cart-popup-close {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    box-shadow: none !important;
    outline: none !important;
}

.bw-cart-popup-close:hover {
    opacity: 0.7;
}


/* ========================================================================
   5. CONTENUTO CARRELLO
   ======================================================================== */

/**
 * Contenitore scrollabile per prodotti, promo code e totali
 * Personalizzabile: padding, colori, altezze
 */
.bw-cart-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #FFFFFF;
}

/* Scrollbar personalizzata (Chrome, Safari, Edge) */
.bw-cart-popup-content::-webkit-scrollbar {
    width: 8px;
}

.bw-cart-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bw-cart-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.bw-cart-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* ========================================================================
   6. PRODOTTI NEL CARRELLO
   ======================================================================== */

/**
 * Lista prodotti nel carrello con immagini, dettagli, quantità e rimozione
 * Personalizzabile: layout, dimensioni, colori, tipografia
 */
.bw-cart-popup-items {
    margin-bottom: 20px;
}

/* Singolo prodotto */
.bw-cart-item {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
}

.bw-cart-item-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    width: 100%;
}

/* Immagine prodotto */
.bw-cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: visible;
    border: 1px solid #e5e5e5;
    position: relative;
}

.bw-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.bw-cart-item-quantity-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.bw-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
}

.bw-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid #000000;
    border-radius: 8px;
    background: transparent;
    color: #000000;
    min-width: 80px;
    justify-content: center;
}

.bw-qty-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.bw-qty-btn:hover {
    color: #000000;
}

.bw-qty-value {
    font-size: 12px;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}

/* Dettagli prodotto */
.bw-cart-item-details {
    flex: 1;
    min-width: 0; /* Previene overflow */
}

.bw-cart-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bw-cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.bw-cart-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bw-cart-item-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.bw-cart-item-name a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bw-cart-item-name a:hover {
    color: #007bff;
}

/* Prezzo (posizionato sotto il titolo) */
.bw-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-top: 4px;
}

.bw-cart-item-price-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    min-width: 80px;
}

.bw-cart-item-price-original {
    font-size: 13px;
    color: #8a8a8a;
    text-decoration: line-through;
}

.bw-cart-item-price-current {
    font-size: 15px;
    font-weight: 700;
}

/* Pulsante rimozione */
.bw-cart-item-remove {
    background: none;
    border: none;
    font-size: 12px;
    color: #888888;
    cursor: pointer;
    padding: 0 4px;
    margin-top: 10px;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.bw-cart-item-remove:hover {
    color: #000000;
    text-decoration-color: #000000;
}

.bw-sold-individually-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dadada;
    color: #000000;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 10px;
}

/* Reset eventuali stili Elementor sui controlli inline del mini-cart */
.bw-cart-popup-panel .bw-qty-btn,
.bw-cart-popup-panel .bw-cart-item-remove {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: inherit;
    padding: 0;
}

.bw-qty-stepper-framed {
    border: 1px solid #000000 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    background: transparent !important;
}

/* Forza il bordo/contorno del selettore quantità con specificità maggiore */
.bw-cart-popup-panel .bw-cart-item .bw-qty-stepper-framed {
    border: 1px solid #000000 !important;
    border-radius: 8px !important;
    padding: 0px 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-top: 8px;
}

/* Floating cart trigger */
.bw-cart-floating-trigger {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bw-cart-floating-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.bw-cart-floating-trigger.hidden {
    display: none;
}

.bw-cart-floating-trigger.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.bw-cart-floating-trigger svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.bw-cart-floating-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Coupon label pill */
.bw-cart-coupon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000000;
    color: #ffffff;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    order: 2;
}

.bw-cart-coupon-label .bw-cart-coupon-icon::before {
    content: "🏷️";
    display: inline-block;
    font-size: 13px;
    line-height: 1;
}

/* Carrello vuoto (dentro lista prodotti) */
.bw-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
    font-size: 15px;
}

/* Layout Carrello Vuoto Completo */
.bw-cart-popup-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.bw-cart-empty-icon {
    margin-bottom: 20px;
    color: #d5d5d5;
}

.bw-cart-empty-icon svg {
    width: 120px;
    height: 120px;
}

.bw-cart-empty-text {
    font-size: 18px;
    font-weight: 500;
    color: #666666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.bw-cart-popup-return-shop {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
}


/* ========================================================================
   7. DIVIDER
   ======================================================================== */

/**
 * Linea divisoria tra prodotti e sezione promo/totali
 * Personalizzabile: colore, altezza, margini
 */
.bw-cart-popup-divider {
    height: 1px;
    background-color: #d5d5d5;
    margin: 20px 0;
}


/* ========================================================================
   8. SEZIONE PROMO CODE
   ======================================================================== */

/**
 * Box per inserire il codice promozionale con effetto fade
 * Personalizzabile: colori, dimensioni, padding, animazioni
 */
.bw-cart-popup-promo {
    margin-bottom: 20px;
}

/* Trigger "Click here" */
.bw-cart-popup-promo-trigger {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin: 0 0 10px 0;
}

.bw-promo-link {
    color: #000000 !important;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bw-promo-link:hover {
    color: #28a745 !important;
}

/* Remove coupon link - stesso stile di Click here */
.bw-promo-remove-link {
    color: #000000 !important;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bw-promo-remove-link:hover {
    color: #28a745 !important;
}

/* Box promo code */
.bw-cart-popup-promo-box {
    margin-bottom: 10px;
}

/* Wrapper per input e pulsante */
.bw-promo-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
}

/* Input promo code */
.bw-promo-input {
    flex: 1;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.bw-promo-input:focus {
    outline: none;
    border-color: #007bff;
}

/* Pulsante Apply */
.bw-promo-apply {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.bw-promo-apply:hover {
    background-color: #0056b3;
}

.bw-promo-apply:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Messaggio promo */
.bw-promo-message {
    display: none;
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.bw-promo-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bw-promo-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ========================================================================
   9. TOTALI
   ======================================================================== */

/**
 * Sezione totali: subtotal, discount, VAT, total
 * Personalizzabile: colori, dimensioni font, spaziature
 */
.bw-cart-popup-totals {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Singola riga totale */
.bw-cart-popup-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.bw-cart-popup-totals > div:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Label */
.bw-cart-popup-totals .label {
    color: #666666;
    font-weight: 500;
}

/* Value */
.bw-cart-popup-totals .value {
    font-weight: 600;
    color: #000000;
}

/* Discount */
.bw-cart-popup-discount {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bw-cart-popup-discount .label {
    font-weight: 500;
}

.bw-cart-popup-discount .value {
    color: #28a745; /* Verde per sconto */
    margin-left: auto;
    order: 3;
}

/* Total (più grande e evidenziato) */
.bw-cart-popup-total {
    padding-top: 12px !important;
}

.bw-cart-popup-total .label,
.bw-cart-popup-total .value {
    font-size: 16px;
    font-weight: 700;
}


/* ========================================================================
   10. FOOTER E PULSANTI
   ======================================================================== */

/**
 * Footer con pulsanti "Proceed to checkout" e "Continue shopping"
 * Personalizzabile: colori, dimensioni, tipografia tramite admin panel
 */
.bw-cart-popup-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background-color: #FFFFFF;
    flex-shrink: 0; /* Non si riduce con lo scroll */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pulsante Proceed to Checkout - Stile Elementor */
.bw-cart-popup-checkout {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

/* Pulsante Continue Shopping */
.bw-cart-popup-continue {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #6c757d; /* Grigio, modificabile da admin */
    color: #ffffff !important;
    text-align: center;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.bw-cart-popup-continue:hover {
    opacity: 0.9;
}


/* ========================================================================
   11. TRANSIZIONI E ANIMAZIONI
   ======================================================================== */

/**
 * Animazioni smooth per apertura/chiusura e interazioni
 * Personalizzabile: durata, easing, effetti
 */

/* Fade in per promo box */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in da destra per il pannello */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Slide out verso destra per il pannello */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}


/* ========================================================================
   12. UTILITIES
   ======================================================================== */

/**
 * Classi di utilità
 */

/* SVG Personalizzato */
.bw-cart-popup-custom-svg {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
}

.bw-cart-popup-custom-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 200px !important;
    display: block;
}

/* Blocca scroll del body quando il pannello è aperto */
body.bw-cart-popup-no-scroll {
    overflow: hidden;
}

/* Loading state */
.bw-cart-popup-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 10;
    gap: 15px;
}

.bw-cart-popup-loading p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.bw-cart-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: bw-spin 0.8s linear infinite;
}

@keyframes bw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================================================
   13. RESPONSIVE
   ======================================================================== */

/**
 * Adattamenti per mobile e tablet
 */

/* Tablet */
@media (max-width: 768px) {
    .bw-cart-popup-panel {
        width: 90%;
        max-width: 400px;
    }

    .bw-cart-popup-header {
        padding: 16px;
    }

    .bw-cart-popup-content {
        padding: 16px;
    }

    .bw-cart-popup-footer {
        padding: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .bw-cart-popup-panel {
        width: 100%;
        max-width: 100%;
    }

    .bw-cart-popup-title {
        font-size: 16px;
    }

    .bw-cart-item {
        padding: 12px;
    }

    .bw-cart-item-image {
        width: 50px;
        height: 50px;
    }

    .bw-cart-popup-checkout,
    .bw-cart-popup-continue {
        font-size: 14px;
        padding: 12px 16px;
    }
}


/* ========================================================================
   14. NOTIFICA VERDE "ITEM ADDED TO CART"
   ======================================================================== */

/**
 * Notifica verde che appare quando un prodotto viene aggiunto al carrello
 * Posizionata sotto il pulsante di chiusura nel cart popup
 */
.bw-cart-popup-notification {
    display: none; /* Nascosta di default */
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 12px 20px 0;
    background-color: #28a745; /* Verde */
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bw-cart-popup-notification.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.bw-cart-notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.bw-cart-notification-text {
    flex: 1;
    line-height: 1.4;
}


/* ========================================================================
   15. PLACEHOLDER "PRODUCT REMOVED"
   ======================================================================== */

/**
 * Box placeholder che appare quando un prodotto viene rimosso dal carrello
 * Mostra il messaggio "Product removed" con fade-in/out
 */
.bw-cart-item-removed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bw-cart-item-removed-placeholder.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}
