/* Obveščanje – Zvonček (zasnova A). Tokeni Frutilu z rezervami; naslovi Montserrat (pisave ne nalagamo). */
.sveg-bell { display: inline-flex; vertical-align: middle; }
.sveg-bell[hidden], .sveg-bell-page[hidden], .sveg-bell__panel [hidden] { display: none !important; }
.sveg-bell__btn {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: none; color: var(--text-strong, #111); cursor: pointer; text-decoration: none; font: inherit;
}
.sveg-bell__btn:hover, .sveg-bell__btn[aria-expanded="true"] { background: var(--surface-sunken, #F4F4F4); }
.sveg-bell__btn:focus-visible, .sveg-bell__panel :focus-visible { outline: 3px solid var(--aqua-fresh, #19B8C8); outline-offset: 2px; }
.sveg-bell__i, .sveg-bell__panel svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sveg-bell__i { width: 24px; height: 24px; }
.sveg-bell .sveg-bell__badge {
	position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--state-error, #C8322F); color: #fff; font: 700 11px/18px var(--font-body, system-ui, sans-serif); text-align: center; box-shadow: 0 0 0 2px #fff;
}

/* Plošča: popover (zgornja plast, brez težav z z-indexom); položaj nastavi JS. */
.sveg-bell__panel {
	box-sizing: border-box; display: flex; flex-direction: column; width: min(380px, calc(100vw - 16px)); max-height: min(480px, calc(100vh - 80px));
	background: var(--surface-card, #fff); color: var(--text-body, #111); border-radius: var(--radius-card, 24px); overflow: hidden;
	box-shadow: var(--shadow-lg, 0 22px 60px rgba(0, 0, 0, .12)), inset 0 0 0 1px var(--border-subtle, rgba(0, 0, 0, .09));
	font: 15px/1.5 var(--font-body, "Open Sans", system-ui, sans-serif); text-align: left; z-index: 100000;
}
.sveg-bell__panel *, .sveg-bell__panel *::before, .sveg-bell__panel *::after { box-sizing: border-box; }
.sveg-bell__panel[popover] { position: fixed; inset: auto; top: var(--sveg-top, 72px); left: var(--sveg-left, auto); right: auto; margin: 0; padding: 0; border: 0; }
.sveg-bell__panel[popover]:not(:popover-open) { display: none; }
.sveg-bell__handle { display: none; width: 42px; height: 5px; margin: 10px auto 0; border-radius: 9px; background: var(--cream-warm, #EBEBEB); }
.sveg-bell__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 14px 20px 8px; }
.sveg-bell__title { font: 700 16px/1.3 Montserrat, "Segoe UI", sans-serif; color: var(--text-strong, #111); outline: 0; }
.sveg-bell__markall, .sveg-bell__retry, .sveg-bell__more, .sveg-bell__close { font: 600 13px/1.2 var(--font-body, system-ui, sans-serif); cursor: pointer; }
.sveg-bell__markall { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-link, #006B78); text-decoration: underline; text-underline-offset: 2px; }
.sveg-bell__markall:disabled { color: var(--text-subtle, #767676); text-decoration: none; cursor: default; }
/* Zapri = ikona X v krogu 44 px (enotno z modalom Moj račun), samo na spodnjem listu. */
.sveg-bell__close { display: none; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--cream, #F4F4F4); color: var(--text-strong, #111); }
.sveg-bell__close:hover { background: var(--cream-warm, #EBEBEB); }
.sveg-bell__close svg { width: 20px; height: 20px; stroke-width: 2; }
.sveg-bell__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.sveg-bell__all { display: block; padding: 14px 20px; border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, .09)); font: 700 14px Montserrat, "Segoe UI", sans-serif; color: var(--text-link, #006B78); text-align: center; text-decoration: none; }
.sveg-bell__all:hover { text-decoration: underline; }
.sveg-bell__more { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 10px auto; padding: 0 20px; border: 0; border-radius: 999px; background: var(--surface-sunken, #F4F4F4); color: var(--text-strong, #111); }
.sveg-bell__more:disabled { opacity: .6; cursor: default; }

/* Vrstica: cela je povezava (raztegnjen ::after naslova); »×« je nad njo. */
.sveg-bell__list { margin: 0; padding: 0; list-style: none; }
.sveg-bell__row { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 12px; margin: 0; padding: 12px 8px 12px 20px; border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, .09)); }
.sveg-bell__row:first-child { border-top: 0; }
.sveg-bell__row:hover { background: #FCFBF7; }
.sveg-bell__row.is-unread { background: #FFF9EC; }
.sveg-bell__ti { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-sunken, #F4F4F4); color: #444; }
.sveg-bell__ti svg { width: 18px; height: 18px; }
.sveg-bell__ti img { width: 100%; height: 100%; object-fit: cover; }
.sveg-bell--t-review .sveg-bell__ti { background: #FFF1D1; color: #9A5C00; }
.sveg-bell--t-partner .sveg-bell__ti { background: #DDF4F6; color: var(--aqua-deep, #006B78); }
.sveg-bell--t-promo .sveg-bell__ti { background: #FDE3E8; color: #B02445; }
.sveg-bell--t-order .sveg-bell__ti { background: #E2F3E3; color: var(--leaf-dark, #1E6B3A); }
.sveg-bell__tx { min-width: 0; }
.sveg-bell__tt {
	display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
	font: 600 14.5px/1.3 Montserrat, "Segoe UI", sans-serif; color: var(--text-strong, #111); text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sveg-bell__tt::after { content: ""; position: absolute; inset: 0; }
.sveg-bell__tt:focus-visible { outline: 0; }
.sveg-bell__tt:focus-visible::after { outline: 3px solid var(--aqua-fresh, #19B8C8); outline-offset: -3px; }
.is-unread .sveg-bell__tt { font-weight: 800; }
.sveg-bell__bo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted, #555); }
.sveg-bell__mt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--text-subtle, #767676); }
.sveg-bell__cta { font-weight: 700; color: var(--text-link, #006B78); }
.sveg-bell__rt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sveg-bell__dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--state-error, #C8322F); }
.sveg-bell__row:not(.is-unread) .sveg-bell__dot { visibility: hidden; }
.sveg-bell__x {
	position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: none; color: var(--text-muted, #555); cursor: pointer; opacity: 0;
}
.sveg-bell__row:hover .sveg-bell__x, .sveg-bell__row:focus-within .sveg-bell__x { opacity: 1; }
.sveg-bell__x:hover { background: var(--surface-sunken, #F4F4F4); }
.sveg-bell__x svg { width: 16px; height: 16px; }
.sveg-bell__xl, .sveg-bell__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: none) { .sveg-bell__x { opacity: 1; } }

/* Stanja */
.sveg-bell__sk { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 7px 12px; padding: 14px 20px; }
.sveg-bell__sk i { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #ECECEC 0, #F8F8F8 50%, #ECECEC 100%); background-size: 200% 100%; animation: sveg-bell-sh 1.3s linear infinite; }
.sveg-bell__sk i:first-child { width: 36px; height: 36px; border-radius: 50%; grid-row: span 3; }
.sveg-bell__sk i:nth-child(3) { width: 85%; }
.sveg-bell__sk i:nth-child(4) { width: 40%; }
@keyframes sveg-bell-sh { to { background-position: -200% 0; } }
.sveg-bell__es { padding: 32px 24px 34px; text-align: center; }
.sveg-bell__ic { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--cream, #F4F4F4); color: #9A5C00; }
.sveg-bell__ic svg { width: 26px; height: 26px; }
.sveg-bell__es--err .sveg-bell__ic { background: #FBE4E3; color: var(--state-error, #C8322F); }
.sveg-bell__es b { display: block; margin-bottom: 4px; font: 800 15px/1.3 Montserrat, "Segoe UI", sans-serif; color: var(--text-strong, #111); }
.sveg-bell__es p { max-width: 24em; margin: 0 auto 14px; font-size: 13.5px; color: var(--text-muted, #555); }
.sveg-bell__retry { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--surface-sunken, #F4F4F4); color: var(--text-strong, #111); font-family: Montserrat, "Segoe UI", sans-serif; font-weight: 800; }

/* Gost: vabilo k prijavi/registraciji */
.sveg-bell__guest { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.sveg-bell__guest p { margin: 0 0 10px; font-size: 14px; color: var(--text-muted, #555); }
.sveg-bell__perks { margin: 0 0 18px; padding: 0; list-style: none; }
.sveg-bell__perks li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; font-weight: 600; color: var(--text-strong, #111); }
.sveg-bell__perks svg { flex: 0 0 auto; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--cream, #F4F4F4); color: #9A5C00; }
.sveg-bell__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.sveg-bell__go { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--cta-primary-bg, #F6A300); color: var(--cta-primary-fg, #111); font: 800 14px/1.2 Montserrat, "Segoe UI", sans-serif; text-decoration: none; }
.sveg-bell__go:hover { filter: brightness(.95); color: var(--cta-primary-fg, #111); }
.sveg-bell__go--alt { background: var(--cta-dark-bg, #111); color: var(--cta-dark-fg, #fff); }
.sveg-bell__go--alt:hover { color: var(--cta-dark-fg, #fff); }
.sveg-bell__go:focus-visible { outline: 3px solid var(--aqua-fresh, #19B8C8); outline-offset: 2px; }

/* Mobilno: spodnji list */
@media (max-width: 599.98px) {
	.sveg-bell__panel[popover] { top: auto; bottom: 0; left: 0; width: 100%; max-width: none; max-height: 85vh; max-height: 85dvh; border-radius: var(--radius-card, 24px) var(--radius-card, 24px) 0 0; }
	.sveg-bell__panel[popover]::backdrop { background: rgba(17, 17, 17, .38); }
	.sveg-bell__panel[popover] .sveg-bell__handle { display: block; }
	/* Vrstni red v HTML = vidni: naslov, X (desno), »Označi vse« v svoji vrstici (Tab sledi očem). */
	.sveg-bell__panel[popover] .sveg-bell__close { display: grid; }
	.sveg-bell__panel[popover] .sveg-bell__markall { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-start; text-align: left; }
	.sveg-bell__row { min-height: 64px; }
	.sveg-bell__x { opacity: 1; }
	.sveg-bell__all { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
	.sveg-bell__guest { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* Celostranski seznam (Moj račun → Obvestila, [sv_bell_list]) */
.sveg-bell__panel--page { width: auto; max-height: none; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.sveg-bell__panel--page .sveg-bell__head { padding: 0 0 12px; }
.sveg-bell__panel--page .sveg-bell__title { font-size: 22px; font-weight: 800; }
.sveg-bell__panel--page .sveg-bell__body { overflow: visible; }
.sveg-bell__panel--page .sveg-bell__row { grid-template-columns: 40px minmax(0, 1fr) auto; margin-bottom: 10px; padding: 16px 12px 16px 18px; border: 1px solid var(--border-subtle, rgba(0, 0, 0, .09)); border-radius: var(--radius-md, 16px); }
.sveg-bell__panel--page .sveg-bell__ti { width: 40px; height: 40px; }
.sveg-bell__panel--page .sveg-bell__tt { white-space: normal; }
.sveg-bell__panel--page .sveg-bell__cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--cta-primary-bg, #F6A300); color: var(--cta-primary-fg, #111); font: 800 13px Montserrat, "Segoe UI", sans-serif; }
.sveg-bell__panel--page .sveg-bell__rt { flex-direction: row; align-items: flex-start; }
.sveg-bell__panel--page .sveg-bell__x { width: auto; min-width: 44px; padding: 0 12px; border-radius: 999px; opacity: 1; font: 600 13px var(--font-body, system-ui, sans-serif); }
.sveg-bell__panel--page .sveg-bell__x svg { display: none; }
.sveg-bell__panel--page .sveg-bell__xl { position: static; width: auto; height: auto; clip: auto; }

@media (prefers-reduced-motion: reduce) {
	.sveg-bell__sk i { animation: none; }
}
/* Moj račun → Obvestila: glava = naslov levo, desno stikalo »Akcije v zvončku« + »Označi vse kot prebrano« (tableti 44 px). */
.sveg-bell__panel--page .sveg-bell__head { gap: 10px; }
.sveg-bell__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.sveg-bell__panel--page .sveg-bell__title { margin-right: auto; }
.sveg-bell__pref { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0; padding: 0 10px 0 18px; border-radius: 999px; background: var(--cream, #F4F4F4); color: var(--text-strong, #111); font: 600 13px/1.2 var(--font-body, system-ui, sans-serif); cursor: pointer; }
.sveg-bell__pref[hidden] { display: none; }
.sveg-bell__tools > .sveg-bell__pref { margin: 0; } /* WC: .woocommerce-page label { margin-bottom } */
.sveg-bell__pref:hover { background: var(--cream-warm, #EBEBEB); }
/* Stikalo: native checkbox (role=switch), gumbek = radialni gradient (brez ::before, deluje v vseh brskalnikih). */
.sveg-bell__pref input {
	-webkit-appearance: none; appearance: none; flex: none; width: 42px; height: 24px; margin: 0; border: 0; border-radius: 999px; cursor: pointer;
	background: #767676 radial-gradient(circle, #fff 7.5px, #111 8px, #111 9px, transparent 9.5px) no-repeat 0 0 / 24px 24px; /* temen obroč: gumbek viden tudi na oranžni (WCAG 1.4.11) */
	transition: background-color .15s ease-out, background-position .15s ease-out;
}
.sveg-bell__pref input:checked { background-color: var(--cta-primary-bg, #F6A300); background-position: 18px 0; }
.sveg-bell__pref input:focus-visible { outline: 3px solid var(--aqua-fresh, #19B8C8); outline-offset: 2px; }
.sveg-bell__pref input:disabled { opacity: .6; cursor: progress; } /* med zahtevkom */
.sveg-bell__panel--page .sveg-bell__markall { padding: 0 18px; border: 1px solid var(--border-subtle, rgba(0, 0, 0, .12)); border-radius: 999px; color: var(--text-strong, #111); text-decoration: none; }
.sveg-bell__panel--page .sveg-bell__markall:hover:not(:disabled) { background: var(--cream, #F4F4F4); }
.sveg-bell__panel--page .sveg-bell__markall:disabled { opacity: .55; }
@media (max-width: 599.98px) {
	.sveg-bell__panel--page .sveg-bell__title { flex-basis: 100%; }
	.sveg-bell__tools { flex-basis: 100%; }
	.sveg-bell__panel--page .sveg-bell__pref, .sveg-bell__panel--page .sveg-bell__markall { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .sveg-bell__pref input { transition: none; } }
@media (forced-colors: active) { .sveg-bell__pref input { -webkit-appearance: auto; appearance: auto; width: 22px; height: 22px; background: none; } } /* gradient izgine → sistemsko polje */
