/* ================================================================
   WP Push Notify – Frontend Prompt Styles
   ================================================================ */

#wppn-prompt {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 360px;
    width: calc(100vw - 48px);
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

#wppn-prompt.wppn-prompt-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wppn-prompt-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,.10),
        0 10px 40px -4px rgba(0,0,0,.18),
        0 0 0 1px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wppn-prompt-icon {
    font-size: 28px;
    line-height: 1;
    animation: wppn-bell 1.2s ease .5s both;
}

@keyframes wppn-bell {
    0%, 100% { transform: rotate(0deg); }
    15%       { transform: rotate(14deg); }
    30%       { transform: rotate(-10deg); }
    45%       { transform: rotate(8deg); }
    60%       { transform: rotate(-6deg); }
    75%       { transform: rotate(3deg); }
}

.wppn-prompt-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
}

.wppn-prompt-text p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.wppn-prompt-actions {
    display: flex;
    gap: 8px;
}

.wppn-btn-allow,
.wppn-btn-deny {
    flex: 1;
    padding: 9px 14px;
    border-radius: 9px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    font-family: inherit;
}

.wppn-btn-allow {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(79,70,229,.4);
}

.wppn-btn-allow:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,.45);
}

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

.wppn-btn-deny {
    background: #f3f4f6;
    color: #374151;
}

.wppn-btn-deny:hover {
    background: #e5e7eb;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #wppn-prompt {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
    }

    .wppn-prompt-inner {
        border-radius: 16px 16px 0 0;
        padding: 20px 20px 28px;
    }
}
