/* Színart Terhelésjelző */
.szt {
	--szt-bg: #fff;
	--szt-fg: #2b2b2b;
	--szt-muted: #6b6b6b;
	--szt-track: #ececec;
	--szt-accent: #d6336c;
	--szt-offset: 20px;
	box-sizing: border-box;
	color: var(--szt-fg);
	background: var(--szt-bg);
	font-size: 13px;
	line-height: 1.35;
	z-index: 99990;
	-webkit-font-smoothing: antialiased;
}
.szt *, .szt *::before, .szt *::after { box-sizing: border-box; }
.szt p { margin: 0; padding: 0; }
.szt [hidden] { display: none !important; }

/* Téma gombstílusainak semlegesítése */
.szt button {
	font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
	box-shadow: none; text-transform: none; letter-spacing: normal; line-height: inherit;
	min-height: 0; min-width: 0; width: auto; height: auto; cursor: pointer; border-radius: 0;
}
.szt button:focus-visible { outline: 2px solid var(--szt-accent); outline-offset: 2px; }

.szt__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--szt-c, #999); flex: none; }
.szt__chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.szt__chip b, .szt__lvl { font-weight: 600; }
.szt__chip--cd { color: var(--szt-accent); font-variant-numeric: tabular-nums; }
.szt__ico { width: 14px; height: 14px; flex: none; }

.szt__cd-label { display: none; font-weight: 600; }
.szt__heading { display: none; font-weight: 700; flex: 1; text-align: left; }
.szt__chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0; opacity: .55; flex: none; transition: transform .2s; }
.szt.is-open .szt__chev { transform: rotate(-135deg); margin-top: 3px; }

.szt__panel { display: none; }
.szt.is-open .szt__panel { display: block; }

.szt__row + .szt__row { margin-top: 12px; }
.szt__row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.szt__row-lvl { display: inline-flex; align-items: center; gap: 6px; }
.szt__bar { height: 6px; border-radius: 3px; background: var(--szt-track); overflow: hidden; }
.szt__bar span { display: block; height: 100%; width: 0; background: var(--szt-c); border-radius: inherit; transition: width .6s ease, background-color .3s; }
.szt__msg { color: var(--szt-muted); font-size: 12px; margin-top: 5px !important; }

.szt__cd { margin-top: 14px; padding: 10px 10px 11px; border-radius: 10px; background: color-mix(in srgb, var(--szt-accent) 9%, #fff); text-align: center; }
.szt__cd-title { font-weight: 700; font-size: 12px; color: var(--szt-accent); }
.szt__cd-boxes { display: flex; justify-content: center; gap: 6px; margin: 7px 0; }
.szt__cd-boxes span { min-width: 46px; background: #fff; border-radius: 8px; padding: 4px 2px 3px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.szt__cd-boxes b { display: block; font-size: 18px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.szt__cd-boxes small { display: block; font-size: 10px; color: var(--szt-muted); text-transform: uppercase; letter-spacing: .03em; }
.szt__cd-text { font-size: 12px; color: var(--szt-muted); }
.szt.is-expired .szt__cd-text { color: var(--szt-fg); }

.szt__close { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 18px !important; line-height: 1 !important; color: var(--szt-muted) !important; opacity: .7; }
.szt__close:hover { opacity: 1; }

/* ---------- Mobil: vékony sáv a fejléc fölött ---------- */
@media (max-width: 767px) {
	.szt { position: relative; width: 100%; border-bottom: 1px solid rgba(0,0,0,.08); }
	.szt--no-mobile { display: none !important; }
	.szt__toggle { display: flex !important; align-items: center; gap: 8px; width: 100% !important; padding: 9px 40px 9px 14px !important; text-align: left; }
	.szt__summary { display: flex; flex-wrap: wrap; flex: 1; gap: 5px 16px; font-size: 14px; min-width: 0; }
	.szt__summary .szt__dot { width: 10px; height: 10px; }
	.szt__chip--cd { order: -1; flex-basis: 100%; flex-wrap: wrap; white-space: normal; font-size: 15px; gap: 2px 6px; }
	.szt__chip--cd b { white-space: nowrap; }
	.szt__chip--cd .szt__cd-label { display: inline; }
	.szt__chip--cd b { font-weight: 800; }
	.szt__ico { width: 17px; height: 17px; animation: szt-pulse 2s ease-in-out infinite; }
	.szt__chev { display: none; }

	/* Kiemelt stílus: színes háttér, fehér szöveg */
	.szt--m-bold { background: var(--szt-accent); color: #fff; border-bottom: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
	.szt--m-bold .szt__chip--cd { color: #fff; }
	.szt--m-bold .szt__summary .szt__dot { box-shadow: 0 0 0 2px #fff; }
	.szt--m-bold .szt__close { color: #fff !important; opacity: .9; }
	.szt--m-bold .szt__panel { background: #fff; color: var(--szt-fg); padding-top: 12px; }
	.szt__summary::-webkit-scrollbar { display: none; }
	.szt__panel { padding: 4px 14px 14px; }
	.szt__close { top: 3px; right: 4px; width: 36px !important; height: 36px !important; font-size: 24px !important; }
}

/* Keskeny telefonok */
@media (max-width: 379px) {
	.szt__toggle { padding-left: 10px !important; padding-right: 36px !important; }
	.szt__chip--cd { font-size: 14px; }
	.szt__summary { font-size: 13px; gap: 5px 12px; }
}

/* ---------- Gép: lebegő doboz a sarokban ---------- */
@media (min-width: 768px) {
	.szt { position: fixed; bottom: var(--szt-offset); right: 20px; max-width: calc(100vw - 40px); border-radius: 14px; box-shadow: 0 6px 28px rgba(0,0,0,.15); }
	.szt--left { right: auto; left: 20px; }
	.szt--no-desktop { display: none !important; }
	.szt.is-open { width: 290px; }
	.szt__toggle { display: flex !important; align-items: center; gap: 10px; width: 100% !important; padding: 10px 40px 10px 14px !important; white-space: nowrap; }
	.szt__summary { display: flex; gap: 12px; font-size: 12px; }
	.szt.is-open .szt__summary { display: none; }
	.szt.is-open .szt__heading { display: block; }
	.szt__panel { padding: 0 14px 14px; }
	.szt__close { top: 8px; right: 8px; width: 24px !important; height: 24px !important; }
}

@keyframes szt-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
	.szt__bar span, .szt__chev { transition: none; }
	.szt__ico { animation: none !important; }
}
