/* ===== COOKIECONSENT VECAMPLAST OVERRIDES ===== */

/* Font famiglia del sito */
#cc-main {
    font-family: 'museo-sans', system-ui, sans-serif;
}

/* Banner consent modal */
#cc-main .cm {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 420px;
}
#cc-main .cm__title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
}
#cc-main .cm__desc {
    font-weight: 300;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Bottoni banner */
#cc-main .cm__btn {
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
}
/* Accetta tutti — verde primario */
#cc-main .cm__btn--1 {
    background: #009640;
    color: #fff;
    border: none;
}
#cc-main .cm__btn--1:hover {
    background: #006830;
}
/* Rifiuta — outline grigio */
#cc-main .cm__btn--2 {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}
#cc-main .cm__btn--2:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
/* Personalizza — link verde */
#cc-main .cm__btn--3 {
    background: transparent;
    color: #009640;
    border: none;
    padding-left: 0;
    padding-right: 0;
}
#cc-main .cm__btn--3:hover {
    color: #006830;
    text-decoration: underline;
}

/* Preferences Modal */
#cc-main .pm {
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
#cc-main .pm__title {
    font-weight: 700;
    color: #0f172a;
}
#cc-main .pm__badge {
    background: #ecfdf5;
    color: #009640;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.6875rem;
}
#cc-main .pm__section-title {
    font-weight: 600;
    color: #0f172a;
}
#cc-main .pm__section-desc {
    font-weight: 300;
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.6;
}
#cc-main .pm__section-desc a {
    color: #009640;
    text-decoration: none;
}
#cc-main .pm__section-desc a:hover {
    text-decoration: underline;
}

/* Toggle switch — verde */
#cc-main .pm__toggle .toggle__icon {
    background: #cbd5e1;
}
#cc-main .pm__toggle input:checked + .toggle__icon {
    background: #009640;
}
#cc-main .pm__toggle input:disabled + .toggle__icon {
    background: #d1d5db;
    opacity: 0.7;
}

/* Bottoni modal preferenze */
#cc-main .pm__btn {
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}
#cc-main .pm__btn--1 {
    background: #009640;
    color: #fff;
    border: none;
}
#cc-main .pm__btn--1:hover {
    background: #006830;
}
#cc-main .pm__btn--2 {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}
#cc-main .pm__btn--2:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
#cc-main .pm__btn--3 {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
#cc-main .pm__btn--3:hover {
    background: #e2e8f0;
}

/* Close button */
#cc-main .pm__close-btn {
    color: #64748b;
    transition: color 0.2s ease;
}
#cc-main .pm__close-btn:hover {
    color: #0f172a;
}

/* Cookie table */
#cc-main .pm__table td,
#cc-main .pm__table th {
    font-size: 0.75rem;
    font-weight: 300;
    color: #475569;
}
#cc-main .pm__table th {
    font-weight: 600;
    color: #0f172a;
}

/* Links nel banner */
#cc-main .cm a {
    color: #009640;
}
#cc-main .cm a:hover {
    text-decoration: underline;
}

/* Mobile: riordina bottoni banner — Accetta, Rifiuta, Personalizza */
@media (max-width: 768px) {
    #cc-main .cm__btns {
        display: flex;
        flex-wrap: wrap;
    }
    #cc-main .cm__btn--1 {
        order: 1;
    }
    #cc-main .cm__btn--2 {
        order: 2;
    }
    #cc-main .cm__btn--3 {
        order: 3;
    }
}

/* Nascondi pulsante floating quando il banner è visibile */
html.show--consent .cookie-revise-btn-vecamplast {
    display: none;
}
