/* ============================================================
   PM Popup Maker — Frontend Styles
   ============================================================ */

.pm-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999999999999999999999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* Shown/hidden via JS — starts display:none (set inline) */
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pm-popup-overlay.pm-popup-visible {
    opacity: 1;
}

.pm-popup-container {
    position: relative;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    animation: pmPopupIn 0.25s ease forwards;
}

@keyframes pmPopupIn {
    from {
        transform: translateY(-16px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close button */
.pm-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
    z-index: 1;
}

.pm-popup-close:hover {
    opacity: 1;
}

/* Title */
.pm-popup-title {
    margin: 0 0 16px;
    font-size: 1.4em;
    line-height: 1.3;
    padding-right: 32px; /* clear close button */
}

/* Content */
.pm-popup-content {
    font-size: 1em;
    line-height: 1.6;
}

.pm-popup-content p:last-child {
    margin-bottom: 0;
}

.pm-popup-content img {
    max-width: 100%;
    height: auto;
}

/* Shortcode trigger button */
.pm-popup-trigger-btn {
    cursor: pointer;
}

/* Scroll lock */
body.pm-popup-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 600px) {
    .pm-popup-container {
        max-height: 85vh;
    }

    .pm-popup-title {
        font-size: 1.2em;
    }
}
