/* ============================================
   COOKIE SYSTEM CSS - SITO-GRATIS.COM

   CONFIGURAZIONE:
   Modifica le variabili CSS nel tuo custom.css:
   --primary-color: colore primario del sito
   --secondary-color: colore secondario
   --text-light: colore testo chiaro (#ffffff)
   --text-dark: colore testo scuro (#333333)
   ============================================ */

/* === COOKIE SETTINGS ICON BUTTON === */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color, #D32F2F);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-settings-btn:hover {
    background-color: var(--secondary-color, #1565C0);
    transform: scale(1.1);
}

.cookie-settings-btn i {
    color: #ffffff;
    font-size: 20px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 33, 33, 0.98);
    color: #ffffff;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

.cookie-text a {
    color: var(--primary-color, #D32F2F) !important;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #ffffff !important;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px 0;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

/* === COOKIE SETTINGS MODAL OVERRIDES === */
#cookieSettingsModal .modal-content {
    border-radius: 10px;
    border: none;
}

#cookieSettingsModal .modal-header {
    background-color: var(--primary-color, #D32F2F);
    color: #ffffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#cookieSettingsModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#cookieSettingsModal .modal-body {
    padding: 25px;
    background-color: #ffffff;
}

#cookieSettingsModal .modal-footer {
    background-color: #f8f9fa;
}

#cookieSettingsModal .cookie-option {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

#cookieSettingsModal .cookie-option:last-child {
    margin-bottom: 0;
}
