
/* CCA - WP Terms Popup Style v1.0.2
 * Layout derivato dal plugin Le Cigarò. Testi e comportamento: WP Terms Popup.
 * Colori: bordeaux #800020, hover #5e0018, fondo #ffffff. */

#wp-terms-popup .tdarkoverlay {
    background: rgba(17, 7, 7, .82) !important;
}

#wp-terms-popup .tbrightcontent {
    box-sizing: border-box !important;
    top: 50% !important;
    left: 50% !important;
    width: min(740px, calc(100vw - 40px)) !important;
    max-width: 740px !important;
    height: auto !important;
    max-height: calc(100vh - 60px) !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    overflow: auto !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 4px !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.42) !important;
    color: #292323 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    text-align: left !important;
}

#wp-terms-popup h3.termstitle {
    margin: 0 !important;
    padding: 18px 28px 16px !important;
    background: #800020 !important;
    border-bottom: 2px solid #800020 !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 31px !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    text-align: center !important;
}

#wp-terms-popup .termspopupcontainer {
    padding: 25px 30px 0 !important;
}

#wp-terms-popup .termspopupcontainer p {
    margin: 0 !important;
    color: #292323 !important;
    font-family: inherit !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}

#wp-terms-popup .wptp-acknowledgement-check-box {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100% - 60px) !important;
    margin: 22px 30px 8px !important;
    padding: 14px 18px !important;
    background: #f5eff1 !important;
    border: 1px solid #d6c3c8 !important;
    color: #800020 !important;
}

#wp-terms-popup .wptp-acknowledgement-check-box input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 10px 0 0 !important;
    accent-color: #800020;
}

#wp-terms-popup .wptp-acknowledgement-check-box label {
    margin: 0 !important;
    color: #800020 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

#wp-terms-popup #wp-terms-popup-after-content,
#wp-terms-popup #wp-terms-popup-after-content.sticky {
    position: static !important;
    bottom: auto !important;
    padding: 8px 30px 28px !important;
    background: #ffffff !important;
}

#wp-terms-popup .tthebutton {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 8px auto 0 !important;
}

#wp-terms-popup .tthebutton input {
    box-sizing: border-box !important;
    min-width: 175px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 11px 18px !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

#wp-terms-popup .tthebutton .termsagree {
    background: #800020 !important;
    border: 1px solid #800020 !important;
    color: #ffffff !important;
}

#wp-terms-popup .tthebutton .termsagree:disabled,
#wp-terms-popup .tthebutton .termsagree[disabled] {
    background: #75666b !important;
    border-color: #75666b !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

#wp-terms-popup .tthebutton .termsdecline {
    background: transparent !important;
    border: 1px solid #800020 !important;
    color: #800020 !important;
}

@media (hover:hover) {
    #wp-terms-popup .tthebutton .termsagree:not(:disabled):hover {
        background: #5e0018 !important;
        border-color: #5e0018 !important;
    }
    #wp-terms-popup .tthebutton .termsdecline:hover {
        background: #f5eff1 !important;
    }
}

@media only screen and (max-width: 767px) {
    #wp-terms-popup .tbrightcontent {
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        max-height: calc(100vh - 24px) !important;
    }

    #wp-terms-popup h3.termstitle {
        padding: 14px 18px 13px !important;
        font-size: 27px !important;
    }

    #wp-terms-popup .termspopupcontainer {
        padding: 20px 20px 0 !important;
    }

    #wp-terms-popup .termspopupcontainer p {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    #wp-terms-popup .wptp-acknowledgement-check-box {
        justify-content: flex-start !important;
        width: calc(100% - 40px) !important;
        margin: 18px 20px 6px !important;
        padding: 13px 14px !important;
    }

    #wp-terms-popup #wp-terms-popup-after-content,
    #wp-terms-popup #wp-terms-popup-after-content.sticky {
        padding: 8px 20px 20px !important;
    }

    #wp-terms-popup .tthebutton {
        flex-direction: column !important;
        gap: 8px !important;
    }

    #wp-terms-popup .tthebutton input {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* v1.2 - maggiore respiro tra intestazione e testo */
#wp-terms-popup .termspopupcontainer {
    padding-top: 38px !important;
}

@media only screen and (max-width: 767px) {
    #wp-terms-popup .termspopupcontainer {
        padding-top: 30px !important;
    }
}

/* Sequenza: mostra CookieYes solo dopo la chiusura del popup di maggiore età.
   Il plugin cookie continua a funzionare e a gestire i consensi in background. */
html.cca-waiting-for-age .cky-consent-container,
html.cca-waiting-for-age .cky-modal,
html.cca-waiting-for-age .cky-overlay,
html.cca-waiting-for-age .cky-btn-revisit-wrapper {
    display: none !important;
}
