/* ========================================================
   Verzeletti S.r.l. - Cookie Consent Banner & Preferences Modal
   Design coordinato con Raleway e palette istituzionale (#134D8F)
   ======================================================== */

#cookieConsentBanner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 460px;
    width: calc(100% - 48px);
    background: #ffffff;
    border: 1px solid rgba(19, 77, 143, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18), 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 24px;
    z-index: 999999;
    font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(140%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
}

#cookieConsentBanner.cookie-show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #131313;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner-title i {
    color: #134D8F;
    font-size: 1.25rem;
}

.cookie-banner-close {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.cookie-banner-close:hover {
    color: #131313;
}

.cookie-banner-body {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 18px;
}

.cookie-banner-body a {
    color: #134D8F;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-body a:hover {
    color: #0b3260;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background-color: #134D8F;
    color: #ffffff;
    flex: 1 1 auto;
}

.cookie-btn-accept:hover {
    background-color: #0d3a6d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(19, 77, 143, 0.35);
}

.cookie-btn-decline {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
    flex: 1 1 auto;
}

.cookie-btn-decline:hover {
    background-color: #e9ecef;
    color: #212529;
}

.cookie-banner-links {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.cookie-banner-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-banner-links a:hover {
    color: #134D8F;
    text-decoration: underline;
}

/* Floating Cookie Badge */
#cookieSettingsBadge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background-color: #134D8F;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(19, 77, 143, 0.4);
    cursor: pointer;
    z-index: 999990;
    transition: transform 0.3s ease, background-color 0.2s ease;
    border: 2px solid #ffffff;
}

#cookieSettingsBadge:hover {
    transform: scale(1.1);
    background-color: #0b3260;
}

#cookieSettingsBadge i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #cookieConsentBanner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        max-width: none;
        padding: 18px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    #cookieSettingsBadge {
        bottom: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }
}
