/* WP Self Push — Frontend Push Prompt */

#wpsp-prompt {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2147483647;
    max-width: 370px;
    width: calc(100% - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
    overflow: hidden;
    border: 1px solid #ececec;
}

#wpsp-prompt.wpsp-visible {
    transform: translateY(0);
    opacity: 1;
}

.wpsp-prompt-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.wpsp-prompt-icon {
    font-size: 22px;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.wpsp-prompt-text { flex: 1; min-width: 0; }

.wpsp-prompt-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
    line-height: 1.3;
}

.wpsp-prompt-text p {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

.wpsp-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.wpsp-prompt-actions button {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s;
    white-space: nowrap;
}

.wpsp-prompt-actions button:active { transform: scale(.96); }

#wpsp-allow {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.35);
}
#wpsp-allow:hover { box-shadow: 0 4px 14px rgba(99,102,241,.45); }

#wpsp-deny {
    background: #f4f4f5;
    color: #71717a;
}
#wpsp-deny:hover { background: #e8e8ea; }

/* Branding bar at bottom */
.wpsp-prompt-brand {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 7px 18px;
    font-size: 10px;
    color: #bbb;
    text-align: right;
    letter-spacing: .03em;
}

/* Toast */
.wpsp-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1a1a2e;
    color: #fff;
    padding: 11px 24px;
    border-radius: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    z-index: 2147483647;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.wpsp-toast.wpsp-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 480px) {
    #wpsp-prompt {
        bottom: 0; right: 0;
        width: 100%; max-width: 100%;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
    }
    .wpsp-prompt-actions { flex-direction: row; }
    .wpsp-prompt-actions button { flex: 1; }
}
