/* MS Push Notify – frontend styles */
:root {
    --mspn-green: #16a34a;
    --mspn-green-dark: #15803d;
    --mspn-green-light: #d1fae5;
    --mspn-green-text: #059669;
    --mspn-text: #111827;
    --mspn-muted: #6b7280;
    --mspn-border: #e5e7eb;
    --mspn-bg: #ffffff;
    --mspn-z: 9999;
}

/* ---- Floating Bell ---- */
.mspn-bell {
    position: fixed;
    z-index: var(--mspn-z);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mspn-bell--bottom-right { right: 24px; bottom: 24px; }
.mspn-bell--bottom-left  { left:  24px; bottom: 24px; }
.mspn-bell--top-right    { right: 24px; top: 24px; }
.mspn-bell--top-left     { left:  24px; top: 24px; }

.mspn-bell-button {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--mspn-green); color: #fff; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.mspn-bell-button:hover { background: var(--mspn-green-dark); transform: translateY(-1px); }

.mspn-bell-modal {
    position: absolute; right: 0; bottom: 72px;
    width: 320px; max-width: calc(100vw - 32px);
    background: var(--mspn-bg); color: var(--mspn-text);
    border: 1px solid var(--mspn-border); border-radius: 12px;
    padding: 20px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.mspn-bell--bottom-left .mspn-bell-modal,
.mspn-bell--top-left .mspn-bell-modal { right: auto; left: 0; }
.mspn-bell--top-right .mspn-bell-modal,
.mspn-bell--top-left .mspn-bell-modal { bottom: auto; top: 72px; }

.mspn-bell-close {
    position: absolute; top: 8px; right: 12px; background: transparent; border: 0;
    font-size: 20px; cursor: pointer; color: var(--mspn-muted);
}
.mspn-bell-modal h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.mspn-bell-modal p { margin: 6px 0; color: var(--mspn-muted); font-size: 14px; }

.mspn-bell-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mspn-bell-btn { padding: 10px 14px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.mspn-bell-btn--primary { background: var(--mspn-green); color: #fff; }
.mspn-bell-btn--primary:hover { background: var(--mspn-green-dark); }
.mspn-bell-btn--outline { background: #fff; color: var(--mspn-text); border-color: var(--mspn-border); }
.mspn-bell-disclaimer { font-size: 12px; color: var(--mspn-muted); margin-top: 12px; }
.mspn-bell-msg { font-size: 13px; color: var(--mspn-green-text); margin-top: 8px; }

/* ---- Post-end widget ---- */
.mspn-postend {
    display: flex; gap: 16px; align-items: flex-start;
    border: 1px solid var(--mspn-border); border-radius: 8px;
    padding: 24px; margin: 32px 0; background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mspn-postend-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--mspn-green-light); color: var(--mspn-green-text);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mspn-postend-body { flex: 1; }
.mspn-postend-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--mspn-text); }
.mspn-postend-desc  { margin: 0 0 12px; color: var(--mspn-muted); font-size: 14px; }
.mspn-postend-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mspn-postend-btn { padding: 10px 16px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.mspn-postend-btn--primary { background: var(--mspn-green); color: #fff; }
.mspn-postend-btn--primary:hover { background: var(--mspn-green-dark); }
.mspn-postend-btn--outline { background: #fff; color: var(--mspn-text); border-color: var(--mspn-border); }
.mspn-postend-disclaimer { font-size: 12px; color: var(--mspn-muted); margin-top: 12px; }
.mspn-postend-msg { font-size: 13px; color: var(--mspn-green-text); margin-top: 8px; min-height: 1em; }

@media (max-width: 520px) {
    .mspn-postend { flex-direction: column; }
}
