/* ============================================================
   Pagina /conferma-iscrizione — shortcode [erc_conferma_newsletter] (02/10/2026)
   Colori allineati alle mail (verde #65bc7b del bottone).
   ============================================================ */

.erc-nl-confirm {
    max-width: 520px;
    margin: 40px auto;
    padding: 28px 24px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.erc-nl-confirm--success {
    border-color: #65bc7b;
    background: #f3fbf5;
}

.erc-nl-confirm--error {
    border-color: #e0a3a3;
    background: #fdf3f3;
}

.erc-nl-confirm__title {
    margin: 0 0 12px;
    font-size: 22px;
}

.erc-nl-confirm__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
}

.erc-nl-confirm--success .erc-nl-confirm__text,
.erc-nl-confirm--error .erc-nl-confirm__text {
    margin-bottom: 0;
}

.erc-nl-confirm__error {
    margin: 0 0 16px;
    color: #b32d2e;
    font-weight: 600;
}

/* Tutta la riga è cliccabile, checkbox grande per il tocco da telefono */
.erc-nl-confirm__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 0 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: left;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.erc-nl-confirm__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #65bc7b;
    cursor: pointer;
}

.erc-nl-confirm__consent:has(input:checked) {
    border-color: #65bc7b;
    background: #f3fbf5;
}

.erc-nl-confirm__btn {
    display: inline-block;
    min-height: 48px;
    padding: 12px 32px;
    border: 0;
    border-radius: 25px;
    background: #65bc7b;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.erc-nl-confirm__btn:hover {
    background: #4fa866;
}

/* Caricamento dopo il click (js/newsletter-confirm.js) */
.erc-nl-confirm__btn.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: .85;
    cursor: wait;
}

.erc-nl-confirm__btn.is-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: erc-nl-spin .8s linear infinite;
}

@keyframes erc-nl-spin {
    to { transform: rotate(360deg); }
}

/* Titolo della barra titolo Avada nascosto su questa pagina (troppo grande su mobile, finiva
   sopra ai breadcrumbs — richiesta 02/10/2026). I breadcrumbs restano. */
.erc-nl-confirm-page .fusion-page-title-bar .entry-title,
.erc-nl-confirm-page #awb-ptb-heading {
    display: none;
}

@media (max-width: 600px) {
    .erc-nl-confirm {
        margin: 20px 0;
        padding: 22px 16px;
    }
    .erc-nl-confirm__btn {
        width: 100%;
    }
}
