/* Newsletter popup — reuses .newsletter-box / .newsletter-form / .btn-primary; shared form rules in newsletter.css */

.furritory-nl-popup[hidden] {
    display: none;
}

.furritory-nl-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.furritory-nl-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: furritoryNlFade 0.25s ease;
}

.furritory-nl-popup__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    animation: furritoryNlIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.furritory-nl-popup__box {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

.newsletter-box .furritory-nl-popup__title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #FFFFFF;
}

.newsletter-box .furritory-nl-popup__lead {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    color: #94A3B8;
}

.furritory-nl-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 9999px;
    color: #94A3B8;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.furritory-nl-popup__close:hover {
    color: #FFFFFF;
}

.furritory-nl-popup__close:focus-visible {
    outline: 2px solid var(--furritory-primary, #D96B43);
    outline-offset: 2px;
}

.furritory-nl-popup .newsletter-form {
    max-width: none;
    margin: 0;
    align-items: center;
}

.furritory-nl-popup .newsletter-input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.furritory-nl-popup .newsletter-form .btn-primary {
    flex-shrink: 0;
}

.furritory-nl-popup .newsletter-form + .newsletter-status {
    text-align: left;
}

html.furritory-nl-open {
    overflow: hidden;
}

@keyframes furritoryNlFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes furritoryNlIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .furritory-nl-popup__box {
        padding: 2rem 1.25rem 1.5rem;
    }

    .newsletter-box .furritory-nl-popup__title {
        font-size: 1.5rem;
    }

    .furritory-nl-popup .newsletter-form .btn-primary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .furritory-nl-popup__backdrop,
    .furritory-nl-popup__dialog {
        animation: none;
    }
}
