#cc--main {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* STRUTTURA DEL BANNER PRINCIPALE */
#cc--main .cm {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 440px !important;
    padding: 1.25rem !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 12px !important;
    
    /* MODALITÀ CHIARA: Contrasto netto ed evidente */
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #000000 !important; /* Bordo nero solido e netto per massima visibilita */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important; /* Ombra profonda e scura */
}

/* GRAFICA PER LA MODALITÀ SCURA (DARK MODE) */
[data-bs-theme="dark"] #cc--main .cm {
    background: #252a33 !important;
    background-color: #252a33 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

/* OTTIMIZZAZIONE SPECIFICA PER SMARTPHONE (MOBILE) */
@media (max-width: 576px) {
    #cc--main .cm {
        bottom: 0 !important; /* Si appiccica sul fondo dello schermo su mobile */
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important; /* Arrotondato solo in alto */
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        padding: 1rem !important; /* Piu compatto per non nascondere il footer */
    }
}

/* TESTI E CONTENUTI */
#cc--main .cm__title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--bs-body-color) !important;
}

#cc--main .cm__desc {
    margin: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: var(--bs-body-color) !important;
    opacity: 0.95 !important;
}

#cc--main .cm__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

/* PULSANTI */
#cc--main button {
    flex: 1 1 120px;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    transition: background-color 0.2s ease;
    text-align: center;
}

#cc--main .c-b-p {
    background-color: var(--bs-primary, #0d6efd) !important;
    color: #ffffff !important;
}

#cc--main .c-b-s {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] #cc--main .c-b-s {
    background-color: rgba(255, 255, 255, 0.12) !important;
}
