/* =========================================================
   PMP WooCommerce Product Restriction — Popup Styles
   ========================================================= */

/* Overlay — covers the entire viewport */
.pmppr-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pmppr-fade-in 0.3s ease forwards;
}

@keyframes pmppr-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup card */
.pmppr-popup {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 460px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: pmppr-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pmppr-slide-up {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Lock icon */
.pmppr-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    margin: 0 auto 24px;
}

.pmppr-lock-icon svg {
    width: 36px;
    height: 36px;
    color: #4f46e5;
    stroke: #4f46e5;
}

/* Title */
.pmppr-popup .pmppr-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 14px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px;
}

/* Message */
.pmppr-popup .pmppr-message {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 28px !important;
}

.pmppr-popup .pmppr-message strong {
    color: #111827;
    font-weight: 600;
}

/* Action buttons */
.pmppr-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pmppr-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
    line-height: 1.4;
}

.pmppr-btn:hover {
    transform: translateY(-1px);
}

.pmppr-btn:active {
    transform: translateY(0);
}

/* Primary CTA */
.pmppr-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.pmppr-btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: #ffffff !important;
}

/* Secondary (Log In) */
.pmppr-btn-secondary {
    background: #f3f4f6;
    color: #374151 !important;
    box-shadow: none;
}

.pmppr-btn-secondary:hover {
    background: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #111827 !important;
}

/* Footnote */
.pmppr-popup .pmppr-footnote {
    font-size: 12.5px;
    color: #9ca3af;
    margin: 0 !important;
    line-height: 1.5;
}

/* ---- Prevent body scroll when overlay is shown ---- */
body.pmppr-blocked {
    overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .pmppr-popup {
        padding: 36px 24px 28px;
    }

    .pmppr-popup .pmppr-title {
        font-size: 22px !important;
    }
}
