/* Modal shell — overlay + centered panel */
body .popup-overlay {
    padding: 16px;
    box-sizing: border-box;
}

body .popup-overlay .popup-content,
body.popup-active .popup-overlay .popup-content {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
    max-height: min(90vh, 860px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 24px 22px 22px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    box-sizing: border-box;
    flex: 0 1 auto;
    align-self: center;
}

body.popup-active .popup-overlay {
    pointer-events: auto;
}

body:not(.popup-active) .popup-overlay {
    pointer-events: none;
}

body.popup-active .popup-overlay .popup-content {
    pointer-events: auto;
}

body .popup-overlay .popup-content .nnweb-support-popup__close,
body.home .popup-overlay .popup-content .nnweb-support-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 50;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.nnweb-support-popup__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nnweb-support-popup {
    position: relative;
    padding: 8px 4px 4px;
}

.nnweb-support-popup__title {
    margin: 0 0 8px;
    padding-right: 36px;
    font-size: 1.35rem;
    color: #0f172a;
}

.nnweb-support-popup__lead {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.nnweb-support-popup__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nnweb-support-popup__submit:hover:not(:disabled),
.nnweb-support-popup__submit:focus-visible:not(:disabled) {
    background: #000000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(18, 18, 18, 0.28);
    opacity: 1;
}

.nnweb-support-popup__submit:active:not(:disabled) {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(18, 18, 18, 0.22);
}

.nnweb-support-popup__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nnweb-support-popup__notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.nnweb-support-popup__notice--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.nnweb-support-popup__notice--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.nnweb-support-popup__logged-in {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.nnweb-support-popup__logged-in p {
    margin: 0 0 12px;
}

.nnweb-support-popup__dashboard-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #121212;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
}

.nnweb-support-form--popup .nnweb-support-field textarea {
    min-height: 120px;
}

.nnweb-support-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    cursor: pointer;
}

.nnweb-support-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #121212;
    cursor: pointer;
}

.nnweb-support-consent__text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

.nnweb-support-consent__text a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nnweb-support-consent__text a:hover {
    color: #334155;
}

#popupContent .forminator-ui,
#popupContent .forminator-custom-form {
    display: none !important;
}
