/* WP Push Notify — Subscription Popup */

#wppn-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#wppn-popup-overlay.wppn-visible {
    opacity: 1;
    pointer-events: all;
}

#wppn-popup {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    z-index: 999999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 28px 28px 22px;
    max-width: 400px;
    width: calc(100vw - 32px);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#wppn-popup.wppn-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

#wppn-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
#wppn-popup-close:hover { color: #333; background: #f0f0f0; }

#wppn-popup-icon {
    font-size: 38px;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1;
}

#wppn-popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.3;
}

#wppn-popup-body {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

#wppn-popup-actions {
    display: flex;
    gap: 10px;
}

#wppn-popup-allow {
    flex: 1;
    padding: 11px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#wppn-popup-allow:hover { background: #135e96; }

#wppn-popup-deny {
    flex: 1;
    padding: 11px 16px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
#wppn-popup-deny:hover { background: #e0e0e0; }

#wppn-popup-status {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    min-height: 18px;
}

/* Mobile tweak */
@media (max-width: 480px) {
    #wppn-popup { bottom: 0; border-radius: 16px 16px 0 0; left: 0; transform: translateY(30px); width: 100%; max-width: 100%; }
    #wppn-popup.wppn-visible { transform: translateY(0); }
}
