/* Central de notificações — mesma paleta e acabamento das configurações da loja. */
body[data-app="admin"] .sbn-trigger{position:relative!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 40px!important;padding:0!important;border:1px solid #705085!important;border-radius:9px!important;background:#281b39!important;color:#d7b7ff!important;box-shadow:none!important;cursor:pointer;order:0}
.sbn-trigger .sbn-glyph{display:grid;place-items:center;width:20px;height:20px;border-radius:999px;border:1.8px solid currentColor;font:800 13px/1 Inter,system-ui,sans-serif;pointer-events:none}.sbn-trigger.has-unread{border-color:#b484ed!important}.sbn-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;box-sizing:border-box;padding:0 4px;border-radius:10px;background:#ffac65;color:#301705;font:700 10px/17px Inter,system-ui,sans-serif;box-shadow:0 0 0 2px #181024;pointer-events:none}.sbn-count[hidden],#starbyNotificationCenter[hidden]{display:none!important}
#starbyNotificationCenter{--sbn-bg:#191124;--sbn-line:#38264d;--sbn-ink:#eee9ff;--sbn-muted:#b4a5c9;--sbn-accent:#ceacff;--sbn-raised:#21162e;--sbn-button:#32203f;--sbn-button-border:#705085;--sbn-hover:#49305e;--sbn-close:#f87171;position:fixed!important;z-index:12000!important;width:min(430px,calc(100vw - 20px));max-height:min(600px,calc(100dvh - 96px));display:flex;flex-direction:column;box-sizing:border-box;background:var(--sbn-bg);color:var(--sbn-ink);border:1px solid var(--sbn-line);border-radius:18px;box-shadow:0 20px 55px #09031166;font:13px/1.5 Inter,system-ui,sans-serif;overflow:hidden;text-align:left;caret-color:transparent}
#starbyNotificationCenter *{box-sizing:border-box}
#starbyNotificationCenter .sbn-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 20px 14px;flex-shrink:0}
#starbyNotificationCenter .sbn-head h2{font:650 18px/1.3 Inter,system-ui,sans-serif;margin:0!important;color:var(--sbn-ink)!important;letter-spacing:-.35px}
#starbyNotificationCenter .sbn-head p{margin:4px 0 0!important;color:var(--sbn-muted)!important;font-size:11px}
/* Escopo por ID: impede que os estilos globais de botões azuis do admin prevaleçam. */
html body[data-app="admin"] #starbyNotificationCenter button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;font:600 11px/1.4 Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;cursor:pointer;color:var(--sbn-accent)!important;background:transparent!important;border:1px solid transparent!important;border-radius:9px!important;padding:7px 10px!important;box-shadow:none!important;min-height:30px!important;height:auto!important;min-width:0!important;width:auto!important;margin:0!important;transform:none!important;white-space:normal!important;text-align:center!important}
html body[data-app="admin"] #starbyNotificationCenter button:disabled{opacity:.45;cursor:default!important}
#starbyNotificationCenter button:focus-visible,.sbn-trigger:focus-visible{outline:2px solid var(--sbn-accent,#b887f3)!important;outline-offset:2px}
html body[data-app="admin"] #starbyNotificationCenter .sbn-close{flex:0 0 32px;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;color:var(--sbn-close)!important;font-size:23px!important;font-weight:500!important;line-height:1!important;border-radius:8px!important}
html body[data-app="admin"] #starbyNotificationCenter .sbn-close:hover{background:#f8717115!important}




#starbyNotificationCenter .sbn-list{overflow:auto;min-height:0;flex:1 1 auto;overscroll-behavior:contain;padding:0 20px;scrollbar-width:thin;scrollbar-color:var(--sbn-button-border) transparent}
#starbyNotificationCenter .sbn-row{display:flex;position:relative;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--sbn-line)}
#starbyNotificationCenter .sbn-row:last-child{border-bottom:0}
#starbyNotificationCenter .sbn-row.unread .sbn-content strong{padding-right:12px}
#starbyNotificationCenter .sbn-row.unread::after{content:"";position:absolute;right:1px;top:20px;width:6px;height:6px;border-radius:50%;background:var(--sbn-accent)}
#starbyNotificationCenter .sbn-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid var(--sbn-line);background:var(--sbn-raised);border-radius:10px;color:var(--sbn-accent);font-size:17px;font-weight:600}
#starbyNotificationCenter .sbn-content{min-width:0;flex:1;overflow-wrap:anywhere}
#starbyNotificationCenter .sbn-meta{display:block;color:var(--sbn-muted);font-size:10px;margin:0 0 4px;font-weight:400}
#starbyNotificationCenter .sbn-content strong{display:block;color:var(--sbn-ink);font-size:13px;font-weight:650;line-height:1.45}
#starbyNotificationCenter .sbn-content p{margin:4px 0 0!important;white-space:pre-wrap;color:var(--sbn-muted)!important;font-size:12px;line-height:1.55}
#starbyNotificationCenter .sbn-row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:8px}
#starbyNotificationCenter .sbn-row-actions:empty{display:none}
html body[data-app="admin"] #starbyNotificationCenter .sbn-row-actions .sbn-action{background:var(--sbn-button)!important;border-color:var(--sbn-button-border)!important;color:var(--sbn-ink)!important;padding:6px 10px!important}
html body[data-app="admin"] #starbyNotificationCenter .sbn-row-actions .sbn-read{padding:6px 7px!important;color:var(--sbn-muted)!important;font-weight:500!important}
html body[data-app="admin"] #starbyNotificationCenter .sbn-row-actions button:hover,html body[data-app="admin"] #starbyNotificationCenter .sbn-mark:hover:not(:disabled){background:var(--sbn-hover)!important;color:var(--sbn-ink)!important}
#starbyNotificationCenter .sbn-empty{padding:36px 12px;text-align:center;color:var(--sbn-muted);font-size:12px}
#starbyNotificationCenter footer{flex-shrink:0;padding:10px 18px;border-top:1px solid var(--sbn-line);display:flex;justify-content:center;background:var(--sbn-bg)}
html body[data-app="admin"] #starbyNotificationCenter .sbn-mark{color:var(--sbn-accent)!important;font-weight:600!important}
html[data-admin-theme="light"] #starbyNotificationCenter{--sbn-bg:#fff;--sbn-line:#e5dcec;--sbn-ink:#342544;--sbn-muted:#756483;--sbn-accent:#6937aa;--sbn-raised:#f7f3fb;--sbn-button:#f1e8fb;--sbn-button-border:#d8c4eb;--sbn-hover:#e9daf8;--sbn-close:#bd304a;box-shadow:0 20px 55px #34254425}
html[data-admin-theme="light"] body[data-app="admin"] .sbn-trigger{background:#f5effd!important;color:#6937aa!important;border-color:#dac6ec!important}html[data-admin-theme="light"] .sbn-count{box-shadow:0 0 0 2px #fff}
@media(max-width:480px){#starbyNotificationCenter{border-radius:14px}#starbyNotificationCenter .sbn-head{padding:16px 15px 12px}#starbyNotificationCenter .sbn-list{padding:0 15px}#starbyNotificationCenter .sbn-row{gap:10px}}

/* Seleção e exclusão — ações discretas, sem alterar as cores da central. */
#starbyNotificationCenter .sbn-select{appearance:auto!important;accent-color:#9365ce;flex:0 0 15px!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;padding:0!important;margin:9px 0 0!important;cursor:pointer;box-shadow:none!important;outline-offset:3px}
#starbyNotificationCenter .sbn-row.selected{background:var(--sbn-raised);border-radius:8px}
#starbyNotificationCenter footer{flex-direction:column;gap:5px;padding:9px 18px}
#starbyNotificationCenter .sbn-selection{display:flex;align-items:center;gap:5px;flex-wrap:wrap}

html body[data-app="admin"] #starbyNotificationCenter .sbn-delete{color:var(--sbn-close)!important}
html body[data-app="admin"] #starbyNotificationCenter .sbn-delete:hover:not(:disabled){background:#f8717115!important;color:var(--sbn-close)!important}
html body[data-app="admin"] #starbyNotificationCenter .sbn-delete-selected{border-color:var(--sbn-close)!important}
html body[data-app="admin"] #starbyNotificationCenter .sbn-select-all{color:var(--sbn-accent)!important}

/* V9 — controles do cabeçalho. O seletor explícito supera o reset position:static das configurações. */
html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean .admin-header-actions #starbyNotificationButton{position:relative!important;overflow:visible!important;isolation:isolate;flex:0 0 40px!important;margin:0!important;display:grid!important;place-items:center!important;}
html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean .admin-header-actions #starbyNotificationButton.has-unread{border-color:#f5a04d!important;color:#ffb36c!important;background:#f59e0b15!important;box-shadow:0 0 0 1px #f59e0b38,0 0 15px #fb923c65!important;}
html[data-admin-theme="light"] body[data-app="admin"] header.admin-header.starby-header-clean .admin-header-actions #starbyNotificationButton.has-unread{color:#a64c08!important;background:#fff2e4!important;box-shadow:0 0 0 1px #f59e0b40,0 0 13px #f59e0b50!important;}
#starbyNotificationButton .sbn-count{display:block!important;position:absolute!important;top:-6px!important;right:-6px!important;left:auto!important;bottom:auto!important;min-width:18px!important;height:18px!important;line-height:18px!important;background:#ffa34f!important;color:#351805!important;z-index:2;white-space:nowrap;font-weight:750;}
#starbyNotificationButton .sbn-count[hidden]{display:none!important;}
html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean .admin-header-actions #starbyAdminLogoutBtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;height:38px!important;padding:0 15px!important;min-width:56px!important;width:auto!important;white-space:nowrap!important;border-radius:9px!important;font:600 12px/1 system-ui,sans-serif!important;}
@media(max-width:900px){html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean .admin-header-actions{grid-template-columns:40px 38px auto minmax(0,1fr) auto!important;}}
@media(max-width:480px){html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean .admin-header-actions{grid-template-columns:40px 38px minmax(0,1fr) auto!important;}html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean #starbyAdminLoggedUser{grid-column:1/4;grid-row:2;}html[data-admin-theme] body[data-app="admin"] header.admin-header.starby-header-clean #starbyAdminLogoutBtn{grid-column:4;grid-row:2;}}

/* V31 — central simplificada, sem filtros redundantes. */
#starbyNotificationCenter .sbn-head{padding:16px 18px 13px;border-bottom:1px solid var(--sbn-line)}
#starbyNotificationCenter .sbn-list{padding:0 18px}
#starbyNotificationCenter .sbn-row{padding:13px 0;gap:10px}
#starbyNotificationCenter .sbn-row.unread::after{top:17px}
#starbyNotificationCenter .sbn-row-actions{margin-top:6px;gap:4px}
#starbyNotificationCenter .sbn-empty{padding:30px 12px}
#starbyNotificationCenter footer{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;padding:10px 14px;margin:0;min-height:0}
#starbyNotificationCenter .sbn-selection{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
html body[data-app="admin"] #starbyNotificationCenter .sbn-select-all{border-color:var(--sbn-line)!important}
@media(max-width:480px){#starbyNotificationCenter .sbn-head{padding:14px 14px 11px}#starbyNotificationCenter .sbn-list{padding:0 14px}#starbyNotificationCenter footer{padding:9px 10px;gap:5px}html body[data-app="admin"] #starbyNotificationCenter footer button{padding:7px 6px!important;font-size:10px!important}}
