/*
 * Vloershop Core — nieuwsbrief-popup + inline-formulier (.vs-newsletter*).
 */

.vs-newsletter-popup,
.vs-newsletter-popup *,
.vs-newsletter-inline,
.vs-newsletter-inline * {
    box-sizing: border-box;
}

.vs-newsletter__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Popup ---- */
.vs-newsletter-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(15, 18, 25, 0.6) !important;
    opacity: 0;
    pointer-events: none !important;   /* alleen klikbaar als .is-open — geen onzichtbare klik-blokkade tijdens fade/sluiten */
    transition: opacity 0.28s ease !important;
    font-family: 'Lato', system-ui, -apple-system, sans-serif !important;
}

.vs-newsletter-popup[hidden] {
    display: none !important;
}

.vs-newsletter-popup.is-open {
    opacity: 1;
    pointer-events: auto !important;
}

.vs-newsletter-popup__box {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(14px);
    transition: transform 0.28s ease;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.vs-newsletter-popup.is-open .vs-newsletter-popup__box {
    transform: translateY(0);
}

.vs-newsletter-popup__media {
    flex: 1 1 45%;
    min-height: 240px;
}

.vs-newsletter-popup__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vs-newsletter-popup__body {
    flex: 1 1 55%;
    padding: 34px 30px;
}

.vs-newsletter-popup__close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(20, 24, 45, 0.06) !important;
    box-shadow: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #5a6172 !important;
    cursor: pointer !important;
    transition: background .15s ease, color .15s ease !important;
}
.vs-newsletter-popup__close:hover {
    background: rgba(20, 24, 45, 0.12) !important;
    color: #1a1f3d !important;
}

/* ---- Gedeelde form-styling (popup + inline) ---- */
.vs-newsletter__title {
    margin: 0 0 8px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--vs-color-primary, #2a3065) !important;
}

.vs-newsletter__text {
    margin: 0 0 16px !important;
    font-size: 15px !important;
    color: #55585f !important;
}

.vs-newsletter__form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.vs-newsletter .vs-newsletter__email,
.vs-newsletter__email {
    width: 100% !important;
    padding: 13px 14px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    border: 1px solid #d8dce6 !important;
    border-radius: 8px !important;
}

.vs-newsletter__consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #55585f !important;
}

.vs-newsletter__consent input {
    margin-top: 3px;
    accent-color: var(--vs-color-primary, #2a3065);
}

.vs-newsletter a.vs-newsletter__submit,
.vs-newsletter__submit {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 18px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--vs-color-primary, #2a3065) !important;
    border: 0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.vs-newsletter__submit:disabled {
    opacity: 0.6 !important;
}

.vs-newsletter__status {
    min-height: 18px;
    font-size: 13px !important;
    color: #c0392b !important;
}

.vs-newsletter__status.is-success {
    color: #2a7d46 !important;
}

.vs-newsletter__fine {
    display: block;
    margin-top: 2px !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #8a8f99 !important;
}

.vs-newsletter-inline {
    max-width: 520px;
    padding: 24px;
    background: #f4f6fb;
    border-radius: 14px;
    font-family: 'Lato', system-ui, sans-serif;
}

@media (max-width: 640px) {
    .vs-newsletter-popup__media {
        display: none;
    }

    .vs-newsletter-popup__body {
        padding: 30px 22px;
    }
}
