/* =============================================
   WISHLIST BANNER - STILI COMPATTI
   Versione: 1.6.5
   Autore: Siculotech
   ============================================= */

/**
 * 1. CONTAINER PRINCIPALE - POSIZIONE FISSA IN BASSO A DESTRA
 */
.wishlist-banner {
    position: fixed !important;
    bottom: 25px;
    right: 30px;
    z-index: 2147483647 !important;
    display: none;
    box-sizing: border-box;
    width: auto;
    max-width: 350px;
    padding: 18px 25px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/**
 * 2. CONTENUTO INTERNO - STILE COMPATTO
 */
.wishlist-banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wishlist-banner-text {
    margin: 0;
    padding: 0;
    color: #2d2d2d;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

/**
 * 3. PULSANTI CENTRATI CON CHIUSURA ROSSA
 */
.wishlist-banner-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.wishlist-banner-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.wishlist-banner-link {
    background-color: #4CAF50;
    color: #ffffff !important;
}

.wishlist-banner-link:hover {
    background-color: #3e9141;
    transform: translateY(-1px);
}

.wishlist-banner-close {
    background-color: #f44336 !important;
    color: #ffffff !important;
}

.wishlist-banner-close:hover {
    background-color: #d32f2f !important;
    transform: translateY(-1px);
}

.wishlist-banner-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.35);
}

/**
 * 4. STILI ALTERNATIVI COMPATTI
 */
.wishlist-banner[data-style="minimal"] {
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.wishlist-banner[data-style="rounded"] {
    border-radius: 12px;
}

.wishlist-banner[data-style="rounded"] .wishlist-banner-button {
    border-radius: 20px;
}

.wishlist-banner[data-style="dark"] {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
}

.wishlist-banner[data-style="dark"] .wishlist-banner-text {
    color: #f0f0f0;
}

.wishlist-banner[data-style="dark"] .wishlist-banner-close {
    background-color: #f44336 !important;
    color: #ffffff !important;
}

/**
 * 5. RESPONSIVE DESIGN - PROPORZIONATO E ADATTATO PER MOBILE
 */
@media (max-width: 782px) {
    .wishlist-banner {
        max-width: calc(100% - 30px);
        bottom: 55px; /* Proporzionato per tablet e menu fissi intermedi */
        right: 15px;
        left: 15px;
        padding: 14px 18px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .wishlist-banner {
        max-width: calc(100% - 20px);
        bottom: 45px; /* Posizione sollevata per evitare la copertura del menu mobile */
        right: 10px;
        left: 10px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .wishlist-banner-content {
        gap: 8px;
    }

    .wishlist-banner-text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .wishlist-banner-actions {
        flex-direction: row;
        gap: 6px;
        justify-content: space-between;
    }

    .wishlist-banner-button {
        flex: 1;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 4px;
    }
}

/**
 * 6. ANIMAZIONI E UTILITY
 */
@keyframes wishlistBannerFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wishlist-banner.show {
    display: block !important;
    animation: wishlistBannerFadeIn 0.3s ease forwards;
}

.wishlist-banner.hide {
    animation: wishlistBannerFadeIn 0.3s ease reverse forwards;
}

/**
 * 7. STILE COMPATTO SPECIFICO
 */
.wishlist-banner.wishlist-banner-compact {
    max-width: 320px;
    padding: 15px 20px;
}

.wishlist-banner.wishlist-banner-compact .wishlist-banner-text {
    font-size: 13px;
    line-height: 1.3;
}

.wishlist-banner.wishlist-banner-compact .wishlist-banner-button {
    padding: 6px 12px;
    font-size: 12px;
}