/* cw_newsletter_popup — uses the shop's own font, .form-control and .btn-primary (NOVA theme). */
html.cw-nlp-open {
    overflow: hidden;
}

.cw-nlp[hidden] {
    display: none !important;
}

.cw-nlp {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cw-nlp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cw-nlp-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    color: #020000;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 2rem 1.75rem 1.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
    -webkit-overflow-scrolling: touch;
}

.cw-nlp.cw-nlp-visible .cw-nlp-backdrop {
    opacity: 1;
}

.cw-nlp.cw-nlp-visible .cw-nlp-dialog {
    opacity: 1;
    transform: none;
}

.cw-nlp-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #020000;
    border-radius: 50%;
    background: #fff;
    color: #020000;
    padding: 0;
    cursor: pointer;
}

.cw-nlp-close:hover,
.cw-nlp-close:focus-visible {
    background: #020000;
    color: #fff;
}

.cw-nlp-eyebrow {
    margin: 0 2.5rem 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cw-nlp-title {
    margin: 0 2rem 0.75rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
}

.cw-nlp-title:focus {
    outline: none;
}

.cw-nlp-text {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cw-nlp-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.cw-nlp .cw-nlp-email {
    width: 100%;
    margin-bottom: 0.75rem;
}

.cw-nlp-captcha {
    display: none;
}

.cw-nlp-error {
    margin: -0.25rem 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #b00020;
}

.cw-nlp .cw-nlp-submit,
.cw-nlp-success .btn {
    width: 100%;
    min-height: 2.875rem;
}

.cw-nlp-note {
    margin: 0.875rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #4a4a4a;
}

.cw-nlp-note a {
    color: inherit;
    text-decoration: underline;
}

.cw-nlp-success .cw-nlp-text {
    margin-bottom: 1.25rem;
}

/* phones: compact bottom sheet, the page above stays visible */
@media (max-width: 575.98px) {
    .cw-nlp {
        align-items: flex-end;
        padding: 0;
    }

    .cw-nlp-dialog {
        max-width: none;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(24px);
    }

    .cw-nlp-title {
        font-size: 1.1875rem;
    }

    .cw-nlp-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cw-nlp-backdrop,
    .cw-nlp-dialog {
        transition: none;
    }
}
