/* ── WP Firebase Push Notifications – Popup ── */

#wfpn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 32px;
    z-index: 999999;
    animation: wfpn-fade-in .25s ease;
}
#wfpn-overlay.wfpn-hide { animation: wfpn-fade-out .25s ease forwards; }

#wfpn-popup {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    max-width: 400px;
    width: calc(100% - 32px);
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    text-align: center;
    animation: wfpn-slide-up .35s cubic-bezier(.22,1,.36,1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#wfpn-icon  {
    font-size: 48px;
    display: inline-block;
    margin-bottom: 14px;
    animation: wfpn-ring 1.4s ease .5s both;
}
#wfpn-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -.3px;
}
#wfpn-desc  {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
}

/* ── Single Subscribe button ── */
#wfpn-subscribe {
    display: block;
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .2px;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
#wfpn-subscribe:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37,99,235,.5);
    transform: translateY(-1px);
}
#wfpn-subscribe:active:not(:disabled) { transform: scale(.97); }
#wfpn-subscribe:disabled {
    opacity: .7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ── "Maybe later" link ── */
#wfpn-skip {
    margin: 14px 0 0;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    transition: color .2s;
}
#wfpn-skip:hover { color: #374151; }

#wfpn-msg {
    margin-top: 12px;
    font-size: 13px;
    min-height: 16px;
    font-weight: 500;
    line-height: 1.5;
}

@keyframes wfpn-fade-in  { from{opacity:0} to{opacity:1} }
@keyframes wfpn-fade-out { from{opacity:1} to{opacity:0} }
@keyframes wfpn-slide-up { from{opacity:0;transform:translateY(48px)} to{opacity:1;transform:translateY(0)} }
@keyframes wfpn-ring {
    0%,100%{transform:rotate(0)}
    20%{transform:rotate(-22deg)}
    40%{transform:rotate(18deg)}
    60%{transform:rotate(-12deg)}
    80%{transform:rotate(8deg)}
}

@media(max-width:480px){
    #wfpn-popup   { padding: 26px 20px 22px; }
    #wfpn-overlay { padding-bottom: 16px; }
}
