/* Gedeelde nieuwsbriefinteractie voor website, contactpagina en webshop. */
.fs-newsletter-toast {
    position: fixed;
    z-index: 10050;
    top: 22px;
    right: 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(430px, calc(100vw - 32px));
    padding: 15px 16px;
    border: 1px solid rgba(15, 118, 78, .24);
    border-radius: var(--fs-radius-panel, 14px);
    background: #ffffff;
    color: #17201b;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .22);
    font-family: var(--fs-font-family, inherit);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity .2s ease, transform .2s ease;
}

.fs-newsletter-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fs-newsletter-toast.is-error {
    border-color: rgba(185, 28, 28, .25);
}

.fs-newsletter-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 18px;
    font-weight: 900;
}

.fs-newsletter-toast.is-error .fs-newsletter-toast-icon {
    background: #fee2e2;
    color: #991b1b;
}

.fs-newsletter-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.fs-newsletter-toast-close:hover,
.fs-newsletter-toast-close:focus-visible {
    background: #f3f4f6;
    color: #111827;
}

.fs-newsletter-consent-field {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    text-align: left;
}

.fs-newsletter-consent {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    margin: 0;
    color: var(--fs-footer-text, var(--fs-text, currentColor));
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

.fs-newsletter-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--fs-primary-color, var(--fs-primary, #f34541));
    cursor: pointer;
}

.fs-newsletter-consent input:focus-visible {
    outline: 2px solid var(--fs-primary-color, var(--fs-primary, #f34541));
    outline-offset: 2px;
}

.fs-newsletter-consent-error {
    margin: 0 0 0 28px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.fs-newsletter-privacy {
    margin: 0 0 0 28px;
    color: var(--fs-footer-muted, var(--fs-muted, currentColor));
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.fs-newsletter-privacy a {
    color: inherit !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.fs-shop-newsletter-form .fs-newsletter-consent,
.fs-shop-newsletter-form .fs-newsletter-privacy {
    color: var(--fs-newsletter-text, var(--fs-on-surface, currentColor));
}

.fs-contact-newsletter-form .fs-newsletter-consent {
    color: var(--fs-text, currentColor);
}

.fs-contact-newsletter-form .fs-newsletter-privacy {
    color: var(--fs-muted, currentColor);
}

/* Een merk kan nog donkere footer-tokens hebben opgeslagen terwijl het lichte
   thema actief is. Voor deze toestemmingscopy volgen we daarom expliciet de
   algemene lichte tekstkleuren, net als de rest van de pagina. */
body.fs-theme-light .fs-newsletter-consent {
    color: var(--fs-text, #121212) !important;
}

body.fs-theme-light .fs-newsletter-privacy {
    color: var(--fs-muted, #4b5563) !important;
}

body.fs-theme-dark .fs-newsletter-consent-error {
    color: #fecaca;
}

.fs-website-footer-newsletter-note.is-success,
.fs-shop-newsletter-note.is-success,
.fs-contact-newsletter-note.is-success {
    color: #166534 !important;
}

.fs-website-footer-newsletter-note.is-error,
.fs-shop-newsletter-note.is-error,
.fs-contact-newsletter-note.is-error {
    color: #b91c1c !important;
}

@media (max-width: 600px) {
    .fs-newsletter-toast {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .fs-newsletter-consent,
    .fs-newsletter-privacy,
    .fs-newsletter-consent-error {
        font-size: 12px;
    }

    .fs-newsletter-privacy,
    .fs-newsletter-consent-error {
        margin-left: 28px;
    }
}
