/* PushMaster Pro — Frontend prompts */

#pmp-prompt-container {
    position: fixed !important;
    z-index: 2147483647 !important;
    pointer-events: none;
}
#pmp-prompt-container > * { pointer-events: auto; }

#pmp-prompt-container[data-position="bottom-right"] { right: 20px; bottom: 20px; }
#pmp-prompt-container[data-position="bottom-left"]  { left: 20px;  bottom: 20px; }
#pmp-prompt-container[data-position="top-right"]    { right: 20px; top: 20px; }
#pmp-prompt-container[data-position="top-left"]     { left: 20px;  top: 20px; }

/* Bell */
.pmp-bell {
    background: var(--pmp-primary, #0073e6);
    color: var(--pmp-text, #fff);
    border: 0;
    border-radius: 50%;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    cursor: pointer;
    position: relative;
    transition: transform .18s;
}
.pmp-bell:hover { transform: scale(1.07); }
.pmp-bell-tooltip {
    position: absolute;
    right: calc(100% + 12px); top: 50%;
    transform: translateY(-50%);
    background: #222; color: #fff;
    padding: 6px 12px; border-radius: 4px;
    font-size: 13px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .18s;
}
.pmp-bell:hover .pmp-bell-tooltip { opacity: 1; }

/* Bar (top/bottom full width) */
.pmp-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--pmp-primary, #0073e6);
    color: var(--pmp-text, #fff);
    padding: 14px 20px;
    display: flex; gap: 12px; align-items: center; justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
.pmp-bar button {
    border: 0; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-weight: 600;
}
.pmp-bar .pmp-allow { background: #fff; color: var(--pmp-primary, #0073e6); }
.pmp-bar .pmp-deny  { background: transparent; color: var(--pmp-text, #fff); border: 1px solid rgba(255,255,255,.5); }

/* Modal */
.pmp-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 100000;
}
.pmp-modal {
    background: #fff;
    border-radius: 10px;
    padding: 28px 28px 22px;
    max-width: 420px;
    width: calc(100% - 40px);
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
    text-align: center;
}
.pmp-modal h3 { margin: 0 0 18px; font-size: 17px; line-height: 1.45; color: #222; }
.pmp-modal-actions { display: flex; gap: 10px; justify-content: center; }
.pmp-modal-actions button {
    border: 0; padding: 10px 22px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.pmp-modal-actions .pmp-allow { background: var(--pmp-primary, #0073e6); color: var(--pmp-text, #fff); }
.pmp-modal-actions .pmp-deny  { background: #efefef; color: #555; }

/* Slide-in (corner card) */
.pmp-slidein {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    border-top: 4px solid var(--pmp-primary, #0073e6);
    animation: pmp-slide-up .35s ease;
}
.pmp-slidein p { margin: 0 0 12px; color: #333; line-height: 1.45; }
.pmp-slidein-actions { display: flex; gap: 8px; }
.pmp-slidein-actions button {
    flex: 1; border: 0; padding: 9px 12px; border-radius: 5px; cursor: pointer; font-weight: 600;
}
.pmp-slidein-actions .pmp-allow { background: var(--pmp-primary, #0073e6); color: var(--pmp-text, #fff); }
.pmp-slidein-actions .pmp-deny  { background: #f1f1f1; color: #555; }

@keyframes pmp-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .pmp-slidein { width: calc(100vw - 40px); }
}
