/* Explain: Styles for the first-login newsletter opt-in modal. */
/* ------------------------------------------------------------------
   First-login newsletter opt-in panel — offered once, right after a
   member signs in, with a pre-checked subscribe option.
   ------------------------------------------------------------------ */

.nlp-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(var(--scrim-rgb), 0.86);
}

.nlp-overlay.is-open {
    display: flex;
}

.nlp-panel {
    width: min(27rem, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    text-align: start;
}

.nlp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nlp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.3rem;
}

.nlp-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: none;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nlp-close:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nlp-title {
    margin-top: 0.9rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nlp-text {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.nlp-optin {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
    padding: 0.9rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nlp-optin:hover {
    border-color: var(--primary-color);
}

.nlp-checkbox {
    width: 1.3rem;
    height: 1.3rem;
    flex: none;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.nlp-msg {
    min-height: 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
}

.nlp-msg.is-ok {
    color: var(--primary-color);
}

.nlp-msg.is-error {
    color: var(--accent-color);
}

.nlp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.nlp-actions .btn-brand,
.nlp-actions .btn-outline {
    flex: 1 1 8rem;
}