.bd-notification-widget{position:fixed;right:16px;bottom:94px;z-index:60;font-family:system-ui,Arial,sans-serif}.bd-notification-widget[hidden],.bd-notification-panel[hidden],.bd-notification-count[hidden]{display:none!important}.bd-notification-toggle{position:relative;border:1px solid #bcd0e1;border-radius:999px;background:#0759a7;color:#fff;width:56px;height:56px;box-shadow:0 4px 15px #001c3d3b;cursor:pointer;font-size:24px}.bd-notification-count{position:absolute;right:-4px;top:-6px;background:#bd2431;color:#fff;border-radius:12px;min-width:19px;padding:2px 5px;font:700 12px system-ui}.bd-notification-panel{position:absolute;bottom:66px;right:0;width:min(370px,calc(100vw - 25px));max-height:min(510px,70vh);overflow:auto;background:#fff;color:#13263a;border:1px solid #c9d9e5;border-radius:15px;box-shadow:0 8px 30px #001c3d4a}.bd-notification-panel header{display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #d9e2eb}.bd-notification-panel button:not(.bd-notification-toggle){cursor:pointer;background:#f2f7fc;color:#174c81;border:1px solid #bfd3e3;border-radius:8px;padding:7px;font-size:13px}.bd-notification-state{margin:10px 15px;color:#425c74;font-size:14px}.bd-notification-item{padding:12px 15px;border-bottom:1px solid #dce5ed;font-size:14px}.bd-notification-item.unread{border-left:4px solid #1672cf;background:#f1f8ff}.bd-notification-item strong{display:block}.bd-notification-item p{font-size:13px;line-height:1.4;margin:6px 0}.bd-notification-item small{display:block;color:#5e7285;margin-bottom:7px}@media(max-width:420px){.bd-notification-widget{right:12px;bottom:88px}.bd-notification-panel{bottom:63px}}
/* Keep the notification bell stacked above the existing WhatsApp button, including mobile safe areas. */
@supports(bottom: env(safe-area-inset-bottom)){.bd-notification-widget{bottom:calc(94px + env(safe-area-inset-bottom))}@media(max-width:420px){.bd-notification-widget{bottom:calc(88px + env(safe-area-inset-bottom))}}}

.bd-notification-open{display:inline-flex;align-items:center;padding:8px 10px;margin:5px 0 9px;border-radius:8px;background:#0759a7;color:#fff!important;font-weight:700;font-size:13px;text-decoration:none;min-height:40px}.bd-notification-open:focus-visible{outline:3px solid #ffcf4d;outline-offset:3px}
.bd-notification-target{outline:3px solid #1672cf;outline-offset:3px;scroll-margin-top:110px;border-radius:8px}

/* V13: full card as a navigation surface, with an accessible anchor. */
.bd-notification-actionable{cursor:pointer;transition:background-color .15s ease}
.bd-notification-actionable:hover,.bd-notification-actionable:focus-within{background:#e5f2ff}
.bd-notification-card-link{display:inline-flex;min-height:36px;align-items:center;color:#0759a7!important;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.bd-notification-card-link:focus-visible,.bd-notification-mark:focus-visible{outline:3px solid #e0a600;outline-offset:3px}

/* V16 accessible activation of full notification cards. */
.bd-notification-actionable:focus-visible{outline:3px solid #e0a600;outline-offset:-3px}

/* V20 · notification sans ouvrir la cloche; n'apparaît qu'en page visible. */
.bd-notification-toast{position:fixed;bottom:calc(165px + env(safe-area-inset-bottom));left:12px;z-index:2147482900;max-width:min(380px,calc(100vw - 24px));display:flex;align-items:stretch;background:#fff;border:1px solid #bdd3ed;border-radius:17px;box-shadow:0 12px 36px rgba(20,45,88,.23);overflow:hidden;color:#183553}
.bd-notification-toast[hidden]{display:none!important}.bd-notification-toast-action{background:#fff;border:0;display:flex;align-items:center;gap:10px;min-width:0;padding:13px 10px 13px 14px;flex:1;text-align:left;color:inherit;cursor:pointer}
.bd-notification-toast-icon{font-size:24px}.bd-notification-toast-lines{min-width:0;display:flex;flex-direction:column;gap:3px}.bd-notification-toast-lines strong{font-size:13px;line-height:1.3}.bd-notification-toast-lines span{font-size:11px;color:#71859e}
.bd-notification-toast-close{border:0;background:transparent;color:#6e839a;font-size:23px;min-width:35px;cursor:pointer}
@media(max-width:760px){.bd-notification-toast{bottom:calc(182px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}}

/* V25 mobile: keep bell accessible when a thread is open without covering composer. */
@media (max-width:760px){
 body.bd-messenger-page.bd-conversation-open #bd-notification-widget{
  right:12px;top:calc(155px + env(safe-area-inset-top, 0px));bottom:auto;
 }
 body.bd-messenger-page.bd-conversation-open .bd-notification-toggle{width:44px;height:44px;font-size:20px;}
 body.bd-messenger-page.bd-conversation-open .bd-notification-panel{
  top:52px;bottom:auto;max-height:min(55vh,430px);
 }
 body.bd-messenger-page.bd-conversation-open .bd-notification-toast{display:none!important;}
}

/* V25: guarantee bell remains visible after asynchronous auth/widget init. */
@media(max-width:760px){body.bd-messenger-page.bd-conversation-open #bd-notification-widget:not([hidden]){visibility:visible!important;opacity:1!important;}}

/* Preserve auth gate on mobile after conversation opens */
body.bd-messenger-page #bd-notification-widget[hidden]{display:none!important;}

@media(max-width:760px){
 body.bd-messenger-page.bd-conversation-open #bd-notification-widget:not([hidden]){z-index:90;top:calc(var(--bd-viewport-offset,0px) + 12px + env(safe-area-inset-top,0px));right:10px;}
 body.bd-messenger-page.bd-conversation-open .bd-notification-panel{max-height:min(430px,calc(var(--bd-visible-height,100dvh) - 140px));}
}

/* Independent header bell, with a closed-by-default dropdown surface. */
.bd-notification-widget.bd-notification-in-header{position:relative!important;inset:auto!important;flex:0 0 42px;width:42px;height:42px;margin-left:8px;z-index:1050}
.bd-notification-in-header .bd-notification-toggle{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eaf3fc;color:#155f9f;border:1px solid #cbdfee;box-shadow:none;font-size:21px}
.bd-notification-in-header .bd-notification-toggle:hover,.bd-notification-in-header .bd-notification-toggle[aria-expanded=true]{background:#d5eaff;color:#095a9c;border-color:#86b8df}
.bd-notification-in-header .bd-notification-toggle:focus-visible{outline:3px solid #138bd6;outline-offset:3px}
.bd-notification-in-header .bd-notification-panel{position:fixed!important;top:var(--bd-notification-top,74px)!important;right:16px!important;bottom:auto!important;width:min(390px,calc(100vw - 24px));max-height:min(620px,calc(100dvh - var(--bd-notification-top,74px) - 18px));border-radius:18px;box-shadow:0 14px 40px #10375830;overscroll-behavior:contain}
.bd-notification-in-header .bd-notification-panel header{position:sticky;top:0;background:#fff;z-index:1;gap:8px;flex-wrap:wrap}
.bd-notification-in-header .bd-notification-panel header>strong{font-size:19px;margin-right:auto}
.bd-notification-in-header .bd-notification-item{margin:7px 9px;border:1px solid #dce7f2;border-radius:12px;font-size:13px;padding:12px}
.bd-notification-in-header .bd-notification-item.unread{background:#eef7ff;border-left:3px solid #1479d3}
.bd-notification-in-header .bd-notification-item p{font-size:12px}.bd-notification-in-header .bd-notification-card-link{font-size:12px}
html[data-bs-theme=dark] .bd-notification-in-header .bd-notification-toggle{background:#254d70;color:#def2ff;border-color:#6a8da9}
html[data-bs-theme=dark] .bd-notification-in-header .bd-notification-panel,html[data-bs-theme=dark] .bd-notification-in-header .bd-notification-panel header{background:#173b5d;color:#e7f5ff;border-color:#698ba8}
html[data-bs-theme=dark] .bd-notification-in-header .bd-notification-item{border-color:#5c7f9c}html[data-bs-theme=dark] .bd-notification-in-header .bd-notification-item.unread{background:#245177}
@media(max-width:600px){.bd-notification-widget.bd-notification-in-header{flex-basis:38px;width:38px;height:38px;margin-left:4px}.bd-notification-in-header .bd-notification-toggle{width:38px;height:38px}.bd-notification-in-header .bd-notification-panel{right:12px!important}}

/* Compact notification feed. */
.bd-notification-in-header .bd-notification-panel header{padding:10px 12px;gap:6px}
.bd-notification-in-header .bd-notification-panel header>strong{font-size:17px}
.bd-notification-in-header .bd-notification-item{margin:3px 6px;padding:9px 10px;border-radius:10px;font-size:12px;line-height:1.35}
.bd-notification-in-header .bd-notification-item strong{font-size:12px;line-height:1.35;font-weight:650}
.bd-notification-in-header .bd-notification-item p{font-size:11px;line-height:1.35;margin:3px 0}
.bd-notification-in-header .bd-notification-item small{font-size:10px;line-height:1.3;margin:3px 0}
.bd-notification-in-header .bd-notification-card-link{font-size:11px;line-height:1.3;min-height:32px;text-underline-offset:2px}
.bd-notification-in-header .bd-notification-panel .bd-notification-mark{font-size:11px;padding:5px 8px;min-height:32px}
.bd-notification-in-header .bd-notification-state{font-size:11px;margin:7px 12px}
.bd-notification-in-header .bd-notification-state:empty{display:none}
.bd-notification-in-header .bd-notification-panel header button,.bd-notification-in-header .bd-notification-panel header a{font-size:11px;padding:5px 7px;min-height:32px}
@media(pointer:coarse){.bd-notification-in-header .bd-notification-card-link,.bd-notification-in-header .bd-notification-panel .bd-notification-mark{min-height:40px}}

.bd-notification-inline-details[hidden]{display:none!important}.bd-notification-inline-details{border-top:1px solid #cddfee;margin-top:6px;padding-top:6px}.bd-notification-in-header .bd-notification-panel .bd-notification-details-toggle{display:inline-flex;align-items:center;min-height:32px;padding:3px 0;background:transparent;border:0;color:#1268a7;font-size:11px;font-weight:650}.bd-notification-inline-details .bd-notification-mark{display:block;margin-top:4px}.bd-notification-inline-details .bd-notification-card-link{display:flex}html[data-bs-theme=dark] .bd-notification-in-header .bd-notification-panel .bd-notification-details-toggle{color:#b5e2ff}

.bd-notification-in-header .bd-notification-item>strong{font-size:12px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.bd-notification-item p[hidden]{display:none!important}.bd-notification-in-header .bd-notification-item>.bd-notification-mark{font-size:10px;padding:3px 6px;min-height:28px;margin-top:2px}

.bd-notification-panel .bd-notification-retry{margin:8px 12px 12px;min-height:38px}.bd-notification-retry[hidden]{display:none!important}#bd-message-hub>button[hidden]{display:none!important}

.bd-notification-filters{display:flex;align-items:center;gap:7px;padding:9px 12px 6px}
.bd-notification-panel .bd-notification-filters button{border-radius:999px;font-size:12px;line-height:1.3;min-height:34px;padding:6px 12px;border:1px solid #c4d9ec;background:#f6faff;color:#38637f;font-weight:650}
.bd-notification-panel .bd-notification-filters button.active{background:#dcedff;color:#0b5ca1;border-color:#78add8}
.bd-notification-panel .bd-notification-filters button:focus-visible{outline:3px solid #159bdd;outline-offset:2px}
html[data-bs-theme=dark] .bd-notification-panel .bd-notification-filters button{background:#20496b;color:#d3eafa;border-color:#648aa7}
html[data-bs-theme=dark] .bd-notification-panel .bd-notification-filters button.active{background:#31698f;color:#fff;border-color:#8bc8ed}

/* Fit the actual containing block, including the browser scrollbar. */
.bd-notification-in-header .bd-notification-panel{box-sizing:border-box;width:390px;max-width:calc(100% - 24px)}

.bd-admin-notification-feed{border-bottom:1px solid #abc9da}.bd-admin-notification-feed[hidden]{display:none!important}.bd-admin-notification-title{display:block;padding:10px 12px 4px;font-size:12px}.bd-admin-notification-feed a{display:block;color:inherit;text-decoration:none}.bd-admin-notification-feed a:focus-visible{outline:3px solid #00a4c4;outline-offset:-3px}

.bd-notification-panel header{flex-wrap:wrap;gap:8px}.bd-notification-audio-controls{display:flex;flex-wrap:wrap;gap:6px;width:100%}.bd-notification-audio-status{flex-basis:100%;font-size:11px;line-height:1.4;color:inherit}
