/* ----------------------------------------------------
   COOKIE BANNER – VERSIONE DEFINITIVA E ISOLATA
---------------------------------------------------- */
#cookie-banner.cookie-card {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #111;
    color: #fff;
    padding: 22px 26px;
    border-radius: 18px;
    max-width: 520px;
    z-index: 99999;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
    display: none;
    animation: fadeIn 0.4s ease-out;
}

/* Fade-in per il banner */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#cookie-banner .cookie-icon {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

#cookie-banner .cookie-text {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 16px;
    text-align: center;
}

#cookie-banner .cookie-buttons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

#cookie-banner .cb-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

#cookie-banner .cb-accept {
    background: var(--rosa-scuro);
    color: #fff;
}

#cookie-banner .cb-reject {
    background: #555;
    color: #fff;
}

#cookie-banner .cookie-links-row {
    display: flex;
    justify-content: center;
    gap: 18px;
}

#cookie-banner .cookie-links-row a {
    color: var(--rosa-scuro);
    font-weight: 600;
    text-decoration: underline;
}

/* ----------------------------------------------------
   WARNING BOX BRAND LE RÊVE – VERSIONE ELEGANTE
---------------------------------------------------- */
.cookie-warning-box {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: var(--rosa-scuro);
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 99998;
    max-width: 260px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 90, 120, 0.45);
    animation: slideInRight 0.45s ease-out;
}

/* Icona brand */
.warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

/* Riga icona + testo */
.warning-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Link centrato sotto */
.warning-link {
    text-align: center;
    margin-top: 8px;
}

.warning-link a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    opacity: 0.9;
}

.warning-link a:hover {
    opacity: 1;
}

/* Animazione toast da destra */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ----------------------------------------------------
   PANNELLO GESTIONE COOKIE
---------------------------------------------------- */
.cookie-panel {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 360px;
    background: #111;
    color: #fff;
    padding: 22px;
    border-radius: 18px;
    z-index: 999999;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.55);
    animation: fadeIn 0.35s ease-out;
}

.cp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.cp-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.cp-desc {
    margin: 10px 0 18px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.cp-group {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-required {
    background: var(--rosa-scuro);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.cp-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 6px 0 10px;
}

/* Switch */
.cp-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.cp-switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: #555;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

input:checked+.slider {
    background: var(--rosa-scuro);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.cp-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cp-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cp-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cp-save {
    background: #444;
    color: #fff;
}

.cp-accept-all {
    background: var(--rosa-scuro);
    color: #fff;
}


.cookie-manage-row {
    text-align: center;
    margin-top: 10px;
}

.cb-manage {
    background: transparent;
    color: var(--rosa-scuro);
    border: 2px solid var(--rosa-scuro);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.cb-manage:hover {
    background: var(--rosa-scuro);
    color: #fff;
}


.cookie-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 1.2em;
}

.cookie-text strong {
    color: #ffd35a;
    font-weight: 600;
}

/* ----------------------------------------------------
   MOBILE RESPONSIVE
---------------------------------------------------- */
@media (max-width: 600px) {

    #cookie-banner.cookie-card {
        right: 10px;
        left: 10px;
        max-width: unset;
    }

    #cookie-banner .cookie-buttons-row {
        flex-direction: column;
    }

    #cookie-banner .cookie-links-row {
        flex-direction: column;
        gap: 6px;
    }

    .cookie-warning-box {
        right: 10px;
        left: 10px;
        max-width: unset;
    }
}