/* Frontend promotional popup */
.wenp-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wenp-popup-overlay.is-visible {
    display: flex;
}

.wenp-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.wenp-popup-modal {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    max-height: min(90vh, 860px);
    overflow: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
    padding: 16px 16px 18px;
}

.wenp-popup-overlay[data-position="top-right"] {
    align-items: flex-start;
    justify-content: flex-end;
}

.wenp-popup-overlay[data-position="bottom-right"] {
    align-items: flex-end;
    justify-content: flex-end;
}

.wenp-popup-overlay[data-position="top-left"] {
    align-items: flex-start;
    justify-content: flex-start;
}

.wenp-popup-overlay[data-position="bottom-left"] {
    align-items: flex-end;
    justify-content: flex-start;
}

.wenp-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #f0f2f5;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wenp-popup-close:hover {
    background: #e5e7eb;
}

.wenp-popup-heading {
    margin: 6px 0 4px;
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
}

.wenp-popup-subheading {
    margin: 0 0 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    color: #475569;
}

.wenp-popup-media-link {
    display: block;
    text-decoration: none;
}

.wenp-popup-media {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .wenp-popup-modal {
        width: min(94vw, 420px);
        padding: 12px;
    }

    .wenp-popup-heading {
        font-size: 16px;
    }
}
