/* FEF Notifications — front end (consent prompt, manage dialog, bell/panel, centre, card, popup, bar, toast).
   Every rule is scoped under a .fef-ntf-* class. Accent is set per component through --fef-ntf-accent. */

.fef-ntf-prompt, .fef-ntf-modal, .fef-ntf-bellwrap, .fef-ntf-panel, .fef-ntf-bar, .fef-ntf-toast {
  --fef-ntf-accent: #2563eb;
  --fef-ntf-bg: #ffffff;
  --fef-ntf-fg: #1f2937;
  --fef-ntf-muted: #6b7280;
  --fef-ntf-line: #e5e7eb;
  --fef-ntf-soft: #f3f4f6;
  --fef-ntf-shadow: 0 10px 40px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08);
  box-sizing: border-box;
  font: 400 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fef-ntf-fg);
}
@media (prefers-color-scheme: dark) {
  .fef-ntf-prompt, .fef-ntf-modal, .fef-ntf-bellwrap, .fef-ntf-panel, .fef-ntf-bar, .fef-ntf-toast {
    --fef-ntf-bg: #1f2937; --fef-ntf-fg: #f3f4f6; --fef-ntf-muted: #9ca3af; --fef-ntf-line: #374151; --fef-ntf-soft: #111827;
  }
}
.fef-ntf-prompt *, .fef-ntf-modal *, .fef-ntf-bellwrap *, .fef-ntf-panel *, .fef-ntf-bar *, .fef-ntf-toast * { box-sizing: border-box; }
.fef-ntf-ico { display: inline-flex; line-height: 0; }

/* Buttons */
.fef-ntf-btn { appearance: none; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font: 600 14px/1.2 inherit; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.fef-ntf-btn:focus-visible, .fef-ntf-bell:focus-visible, .fef-ntf-x:focus-visible, .fef-ntf-link:focus-visible, .fef-ntf-item-main:focus-visible { outline: 2px solid var(--fef-ntf-accent); outline-offset: 2px; }
.fef-ntf-btn-primary { background: var(--fef-ntf-accent); color: #fff; }
.fef-ntf-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.fef-ntf-btn-ghost { background: transparent; color: var(--fef-ntf-muted); border-color: var(--fef-ntf-line); }
.fef-ntf-btn-ghost:hover { background: var(--fef-ntf-soft); }
.fef-ntf-btn[disabled] { opacity: .6; cursor: default; }
.fef-ntf-link { appearance: none; background: none; border: 0; padding: 0; color: var(--fef-ntf-accent); font: 600 12px/1 inherit; cursor: pointer; }
.fef-ntf-x { appearance: none; background: none; border: 0; padding: 6px; color: var(--fef-ntf-muted); cursor: pointer; border-radius: 6px; }
.fef-ntf-x:hover { background: var(--fef-ntf-soft); }

/* Consent prompt */
.fef-ntf-prompt { position: fixed; z-index: 2147483000; display: flex; gap: 14px; background: var(--fef-ntf-bg); border: 1px solid var(--fef-ntf-line); border-radius: 14px; box-shadow: var(--fef-ntf-shadow); padding: 18px; width: min(380px, calc(100vw - 24px)); animation: fef-ntf-in .25s ease-out; }
.fef-ntf-prompt.fef-ntf-compact { width: min(340px, calc(100vw - 24px)); padding: 12px 14px; gap: 10px; }
.fef-ntf-prompt.fef-ntf-compact .fef-ntf-prompt-msg, .fef-ntf-prompt.fef-ntf-compact .fef-ntf-cats { display: none; } /* compact = heading + buttons (+ privacy line); topics stay available in the settings panel */
.fef-ntf-pos-bottom-right { right: 16px; bottom: 16px; }
.fef-ntf-pos-bottom-left { left: 16px; bottom: 16px; }
.fef-ntf-pos-bottom-center { left: 50%; bottom: 16px; transform: translateX(-50%); }
.fef-ntf-pos-center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); }
.fef-ntf-prompt-icon, .fef-ntf-prompt > .fef-ntf-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.fef-ntf-prompt > .fef-ntf-ico { align-items: center; justify-content: center; background: var(--fef-ntf-accent); color: #fff; }
.fef-ntf-prompt-body { min-width: 0; flex: 1; }
.fef-ntf-prompt-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.fef-ntf-prompt-msg { color: var(--fef-ntf-muted); margin: 0 0 12px; }
.fef-ntf-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fef-ntf-status { margin: 8px 0 0; color: var(--fef-ntf-muted); }
.fef-ntf-status:empty { display: none; }
.fef-ntf-privacy { margin: 12px 0 0; font-size: 12px; color: var(--fef-ntf-muted); }
.fef-ntf-privacy a { color: var(--fef-ntf-accent); }
.fef-ntf-cats { margin: 10px 0 4px; }
.fef-ntf-cats-h { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.fef-ntf-cat { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }

/* Dialog (manage + popup) */
.fef-ntf-modal { position: fixed; inset: 0; z-index: 2147483001; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fef-ntf-fade .2s ease-out; }
.fef-ntf-modal-card { position: relative; background: var(--fef-ntf-bg); border-radius: 16px; box-shadow: var(--fef-ntf-shadow); padding: 24px; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.fef-ntf-modal-card > .fef-ntf-x { position: absolute; top: 10px; right: 10px; }
.fef-ntf-modal-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.fef-ntf-manage-body .fef-ntf-btn { margin: 8px 8px 0 0; }

/* Bell */
.fef-ntf-bellwrap { position: relative; display: inline-block; }
.fef-ntf-floating { position: fixed; z-index: 2147482000; }
.fef-ntf-fpos-bottom-left { left: 16px; bottom: 16px; } .fef-ntf-fpos-bottom-right { right: 16px; bottom: 16px; }
.fef-ntf-fpos-top-left { left: 16px; top: 16px; } .fef-ntf-fpos-top-right { right: 16px; top: 16px; }
.fef-ntf-bell { appearance: none; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--fef-ntf-accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); }
.fef-ntf-bell:hover { filter: brightness(1.08); }
.fef-ntf-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #dc2626; color: #fff; font: 700 11px/20px inherit; text-align: center; border: 2px solid var(--fef-ntf-bg); }
.fef-ntf-badge[hidden] { display: none; }
.fef-ntf-dropdown { position: absolute; bottom: calc(100% + 10px); left: 0; width: 360px; max-width: calc(100vw - 24px); z-index: 2; }
.fef-ntf-fpos-bottom-right .fef-ntf-dropdown, .fef-ntf-fpos-top-right .fef-ntf-dropdown { left: auto; right: 0; }
.fef-ntf-fpos-top-left .fef-ntf-dropdown, .fef-ntf-fpos-top-right .fef-ntf-dropdown { bottom: auto; top: calc(100% + 10px); }
.fef-ntf-bellwrap:not(.fef-ntf-floating) .fef-ntf-dropdown { bottom: auto; top: calc(100% + 8px); }
.fef-ntf-dropdown[hidden] { display: none; }

/* Panel / list (shared by dropdown, centre, card view) */
.fef-ntf-panel { background: var(--fef-ntf-bg); border: 1px solid var(--fef-ntf-line); border-radius: 14px; box-shadow: var(--fef-ntf-shadow); overflow: hidden; }
.fef-ntf-centre, .fef-ntf-cardview { box-shadow: none; max-width: 720px; }
.fef-ntf-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--fef-ntf-line); }
.fef-ntf-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 460px); overflow: auto; }
.fef-ntf-centre .fef-ntf-list, .fef-ntf-cardview .fef-ntf-list { max-height: none; }
.fef-ntf-item { position: relative; display: flex; border-bottom: 1px solid var(--fef-ntf-line); }
.fef-ntf-item:last-child { border-bottom: 0; }
.fef-ntf-item.is-unread { background: color-mix(in srgb, var(--fef-ntf-accent) 7%, transparent); }
.fef-ntf-item.is-unread .fef-ntf-item-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fef-ntf-accent); margin-right: 6px; }
.fef-ntf-item.is-high { border-left: 3px solid #dc2626; }
.fef-ntf-item-main { flex: 1; min-width: 0; display: flex; gap: 12px; padding: 12px 40px 12px 14px; color: inherit; text-decoration: none; }
a.fef-ntf-item-main:hover { background: var(--fef-ntf-soft); }
.fef-ntf-item-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.fef-ntf-item-icon-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--fef-ntf-soft); color: var(--fef-ntf-accent); }
.fef-ntf-item-icon-ph .fef-ntf-ico svg { width: 18px; height: 18px; }
.fef-ntf-item-text { display: flex; flex-direction: column; min-width: 0; }
.fef-ntf-item-title { font-weight: 600; overflow-wrap: anywhere; }
.fef-ntf-item-body { color: var(--fef-ntf-muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fef-ntf-item-time { font-size: 12px; color: var(--fef-ntf-muted); margin-top: 2px; }
.fef-ntf-item-x { position: absolute; top: 8px; right: 8px; appearance: none; background: none; border: 0; padding: 4px; color: var(--fef-ntf-muted); cursor: pointer; border-radius: 6px; opacity: .6; }
.fef-ntf-item-x:hover, .fef-ntf-item-x:focus-visible { opacity: 1; background: var(--fef-ntf-soft); }
.fef-ntf-empty { margin: 0; padding: 28px 18px; text-align: center; color: var(--fef-ntf-muted); }
.fef-ntf-empty[hidden], .fef-ntf-more[hidden], .fef-ntf-link[hidden] { display: none; }
.fef-ntf-panel-foot { padding: 8px 12px; text-align: center; }
.fef-ntf-panel-foot:empty, .fef-ntf-panel-foot:has(> [hidden]:only-child) { display: none; }

/* Announcement bar */
.fef-ntf-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 44px 10px 16px; position: relative; background: var(--fef-ntf-accent); color: #fff; text-align: center; }
.fef-ntf-bar .fef-ntf-bar-link { color: #fff; font-weight: 700; text-decoration: underline; }
.fef-ntf-bar .fef-ntf-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #fff; }
.fef-ntf-bar .fef-ntf-x:hover { background: rgba(255, 255, 255, .2); }

/* Toast */
.fef-ntf-toast { position: fixed; right: 16px; bottom: 80px; z-index: 2147482500; display: flex; flex-direction: column; gap: 2px; max-width: min(340px, calc(100vw - 32px)); padding: 12px 16px; background: var(--fef-ntf-bg); border-left: 4px solid var(--fef-ntf-accent); border-radius: 10px; box-shadow: var(--fef-ntf-shadow); color: inherit; text-decoration: none; animation: fef-ntf-in .3s ease-out; transition: opacity .35s, transform .35s; }
.fef-ntf-toast.is-out { opacity: 0; transform: translateY(8px); }

@keyframes fef-ntf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fef-ntf-fade { from { opacity: 0; } to { opacity: 1; } }
.fef-ntf-pos-center, .fef-ntf-pos-bottom-center { animation-name: fef-ntf-fade; }

.fef-ntf-subscribe-btn { cursor: pointer; }
/* State-aware Subscribe button (widget / view="subscribe"). The Elementor widget restyles it with its own controls. */
.fef-ntf-mount[hidden] { display: none; }
.fef-ntf-mount .fef-ntf-subscribe-btn { --fef-ntf-accent: #2563eb; appearance: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--fef-ntf-accent); border-radius: 999px; background: var(--fef-ntf-accent); color: #fff; font: 600 14px/1.2 inherit; cursor: pointer; transition: filter .15s, background .15s, color .15s; }
.fef-ntf-mount .fef-ntf-subscribe-btn:hover { filter: brightness(1.08); }
.fef-ntf-mount .fef-ntf-subscribe-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--fef-ntf-accent) 45%, transparent); outline-offset: 2px; }
.fef-ntf-mount .fef-ntf-subscribe-btn[data-state="on"] { background: transparent; color: var(--fef-ntf-accent); }
.fef-ntf-mount .fef-ntf-subscribe-btn[data-state="blocked"] { background: #f3f4f6; border-color: #d1d5db; color: #6b7280; cursor: not-allowed; filter: none; }
.fef-ntf-mount .fef-ntf-subscribe-btn .fef-ntf-ico { display: inline-flex; }
.fef-ntf-mount .fef-ntf-subscribe-btn .fef-ntf-ico svg { width: 18px; height: 18px; }

/* Phones: prompts and the dropdown become full-width sheets. */
@media (max-width: 520px) {
  .fef-ntf-prompt { left: 8px !important; right: 8px !important; bottom: 8px !important; top: auto !important; width: auto; transform: none !important; }
  .fef-ntf-dropdown { position: fixed; left: 8px !important; right: 8px !important; bottom: 70px !important; top: auto !important; width: auto; }
  .fef-ntf-toast { right: 8px; left: 8px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fef-ntf-prompt, .fef-ntf-modal, .fef-ntf-toast { animation: none; transition: none; }
}
