#mahi-notify-root { position: relative; z-index: 999999; }
.mahi-notify-button,
.mahi-notify-manual-trigger {
    position: fixed;
    z-index: 999999;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
    background: #2563eb;
    color: #fff;
}
.mahi-notify-button:disabled { cursor: default; opacity: .8; }
.mahi-notify-button.is-enabled { background: #16a34a; }
.mahi-notify-button.bottom-right, .mahi-notify-manual-trigger.bottom-right { right: 20px; bottom: 20px; }
.mahi-notify-button.bottom-left, .mahi-notify-manual-trigger.bottom-left { left: 20px; bottom: 20px; }
.mahi-notify-button.top-right, .mahi-notify-manual-trigger.top-right { right: 20px; top: 20px; }
.mahi-notify-button.top-left, .mahi-notify-manual-trigger.top-left { left: 20px; top: 20px; }
.mahi-notify-message {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1000000;
    max-width: min(90vw, 460px);
    padding: 12px 18px;
    border-radius: 10px;
    font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
    transition: opacity .3s ease, transform .3s ease;
}
.mahi-notify-message.success { background: #16a34a; }
.mahi-notify-message.error { background: #dc2626; }
.mahi-notify-message.hide { opacity: 0; transform: translate(-50%, 8px); }

/* ======================================================================
   Mahi Notify 2.2.0 — permission popup designs
   ====================================================================== */

.mnp, .mnp * { box-sizing: border-box; }
.mnp { font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #0f172a; }

/* Fixed to the screen on the website, absolute inside the admin preview stage */
.mnp-fixed, .mnp-fab, .mnp-bar, .mnp-backdrop, .mnp-pill {
    position: var(--mnp-pos, fixed);
    z-index: 1000001;
}

.mnp-pos-bottom-right { right: 16px; bottom: 16px; }
.mnp-pos-bottom-left  { left: 16px;  bottom: 16px; }
.mnp-pos-top-right    { right: 16px; top: 16px; }
.mnp-pos-top-left     { left: 16px;  top: 16px; }

/* Card */
.mnp-card {
    position: relative;
    background: var(--mnp-card-bg, #fff);
    color: #0f172a;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
    padding: 24px;
    width: min(100%, 400px);
    text-align: center;
}
.mnp-icon { width: 56px; height: 56px; margin: 0 auto 10px; color: #f59e0b; display: block; }
.mnp-icon svg { display: block; width: 100%; height: 100%; }
.mnp-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.mnp-title { font-weight: 700; font-size: 18px; margin: 0 0 6px; color: inherit; }
.mnp-msg { color: #475569; margin: 0 0 16px; }
.mnp-actions { display: flex; gap: 10px; justify-content: center; }
.mnp-btn { border: 0; border-radius: 8px; padding: 10px 20px; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; flex: 1; }
.mnp-btn-allow { background: var(--mnp-accent, #2563eb); color: #fff; }
.mnp-btn-later { background: #f1f5f9; color: #334155; }
.mnp-btn[disabled] { opacity: .65; cursor: default; }
.mnp-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; color: #64748b; cursor: pointer; padding: 4px; }

/* 2 / 6 / 7  Modal, Full screen, Center card */
.mnp-backdrop { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .5); animation: mnpFade .2s ease-out; }
.mnp-fullscreen .mnp-backdrop { background: rgba(15, 23, 42, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mnp-fullscreen .mnp-card { width: min(100%, 460px); }
.mnp-fullscreen .mnp-actions { flex-direction: column; }
.mnp-fullscreen .mnp-btn-later { background: transparent; color: #64748b; }
.mnp-center .mnp-backdrop { background: rgba(15, 23, 42, .25); }
.mnp-center .mnp-icon { width: 64px; height: 64px; padding: 15px; border-radius: 50%; background: var(--mnp-accent, #2563eb); color: #fff; margin-bottom: 14px; }
.mnp-center .mnp-icon img { border-radius: 50%; }
.mnp-center .mnp-card { box-shadow: 0 24px 70px rgba(15, 23, 42, .3); }

/* Row cards: slide-in (3), inline (5), bubbles (8, 9) */
.mnp-row { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 16px; width: min(340px, calc(100vw - 24px)); }
.mnp-row .mnp-icon { width: 40px; height: 40px; margin: 0; flex: none; }
.mnp-row .mnp-body { flex: 1; min-width: 0; padding-right: 14px; }
.mnp-row .mnp-title { font-size: 15px; }
.mnp-row .mnp-msg { font-size: 13px; margin-bottom: 12px; }
.mnp-row .mnp-actions { justify-content: flex-start; }
.mnp-row .mnp-btn { flex: none; padding: 8px 16px; }
.mnp-row .mnp-close { top: 6px; right: 8px; }
.mnp-slide .mnp-card { animation: mnpIn .3s ease-out; }

/* 5  Inline box */
.mnp-inlinebox { width: auto; max-width: 640px; margin: 24px 0; background: #fffbeb; border: 1px solid #fde68a; box-shadow: none; border-radius: 12px; }
.mnp-inline .mnp-row .mnp-body { padding-right: 0; }

/* 4 / 10  Top bar, Header banner */
.mnp-bar { top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--mnp-accent, #2563eb); color: #fff; animation: mnpDown .3s ease-out; }
.mnp-bar .mnp-icon { width: 26px; height: 26px; margin: 0; flex: none; color: #fff; }
.mnp-bartext { flex: 1; min-width: 0; font-size: 14px; }
.mnp-bartext .mnp-title { display: inline; font-size: 14px; margin: 0 8px 0 0; }
.mnp-bartext .mnp-msg { display: inline; color: inherit; opacity: .9; margin: 0; }
.mnp-bar .mnp-btn { flex: none; padding: 7px 18px; background: #fff; color: var(--mnp-accent, #2563eb); }
.mnp-bar .mnp-close { position: static; color: #fff; opacity: .85; }
.mnp-banner .mnp-bar { background: #0f172a; border-radius: 0 0 14px 14px; max-width: 980px; margin: 0 auto; }
.mnp-banner .mnp-icon { color: #facc15; }
.mnp-banner .mnp-bar .mnp-btn { background: #facc15; color: #111827; }

/* 8 / 9  Floating bell + bubble, Tooltip */
.mnp-fab { width: 56px; height: 56px; padding: 15px; border: 0; border-radius: 50%; background: #ef4444; color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(15, 23, 42, .3); }
.mnp-fab svg { display: block; width: 100%; height: 100%; }
.mnp-fab[disabled] { opacity: .7; cursor: default; }
.mnp-tooltip .mnp-fab { background: var(--mnp-accent, #2563eb); }
.mnp-bubble { cursor: pointer; animation: mnpIn .3s ease-out; }
.mnp-bubble .mnp-msg { margin: 0; }
.mnp-bubble.mnp-pos-bottom-right { bottom: 88px; }
.mnp-bubble.mnp-pos-bottom-left  { bottom: 88px; }
.mnp-bubble.mnp-pos-top-right    { top: 88px; }
.mnp-bubble.mnp-pos-top-left     { top: 88px; }
.mnp-bubble::after { content: ""; position: absolute; border: 8px solid transparent; }
.mnp-bubble.mnp-pos-bottom-right::after, .mnp-bubble.mnp-pos-bottom-left::after { bottom: -8px; border-top-color: var(--mnp-card-bg, #fff); border-bottom: 0; }
.mnp-bubble.mnp-pos-top-right::after, .mnp-bubble.mnp-pos-top-left::after { top: -8px; border-bottom-color: var(--mnp-card-bg, #fff); border-top: 0; }
.mnp-bubble.mnp-pos-bottom-right::after, .mnp-bubble.mnp-pos-top-right::after { right: 22px; }
.mnp-bubble.mnp-pos-bottom-left::after, .mnp-bubble.mnp-pos-top-left::after { left: 22px; }
.mnp-tooltip { --mnp-card-bg: #1e293b; }
.mnp-tooltip .mnp-card { color: #fff; box-shadow: 0 14px 36px rgba(15, 23, 42, .4); }
.mnp-tooltip .mnp-title { color: #fff; }
.mnp-tooltip .mnp-msg { color: #cbd5e1; }
.mnp-tooltip .mnp-close { color: #94a3b8; }

/* Classic pill (preview of the original button) */
.mnp-pill { border: 0; border-radius: 10px; padding: 12px 18px; background: var(--mnp-accent, #2563eb); color: #fff; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }

/* Browser default (preview mock only) */
.mnp-browser { position: var(--mnp-pos, fixed); top: 16px; left: 16px; width: min(320px, 90%); text-align: left; padding: 18px; border-radius: 10px; }
.mnp-browser .mnp-title { font-weight: 500; font-size: 14px; margin: 0; }
.mnp-browser .mnp-msg { color: #0f172a; font-size: 15px; margin-bottom: 14px; }
.mnp-browser .mnp-actions { justify-content: flex-end; }
.mnp-browser .mnp-btn { flex: none; }

@keyframes mnpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mnpIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mnpDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
    .mnp-bar { flex-wrap: wrap; }
    .mnp-bartext { flex-basis: calc(100% - 80px); }
    .mnp-slide .mnp-card.mnp-pos-bottom-right, .mnp-slide .mnp-card.mnp-pos-bottom-left { left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .mnp-backdrop, .mnp-bar, .mnp-bubble, .mnp-slide .mnp-card { animation: none; }
}

/* Admin preview stage */
.mnp-stage {
    --mnp-pos: absolute;
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: repeating-linear-gradient(#f8fafc 0, #f8fafc 22px, #eef2f7 22px, #eef2f7 30px);
}
.mnp-stage .mnp-card { max-width: 100%; }

/* 2.3.5: "powered by Mahi Notify" under the buttons */
.mnp .mnp-brand{display:block;width:100%;text-align:center;font-size:11px;line-height:1.3;color:#6b7280;margin-top:12px;font-weight:400;letter-spacing:0}
.mnp .mnp-brand b{color:#1d4ed8;font-weight:700}
.mnp-row .mnp-brand{text-align:left;margin-top:10px}
