/* Soti Cookie Consent – a téma színeit használja (--c-primary), ha vannak */
.scc, .scc-modal, .scc-reopen, .scc-placeholder {
	--scc-primary: var(--c-primary, #EE7A30);
	--scc-on-primary: var(--c-on-primary, #17232B);
	--scc-dark: var(--c-primary-dark, #8f491d);
	--scc-soft: var(--c-primary-soft, #fdefe6);
	--scc-ink: var(--ink, #17232B);
	--scc-text: var(--text, #43515C);
	--scc-line: var(--line, #E6E2D8);
	font-family: var(--f-sans, inherit);
	box-sizing: border-box;
}
.scc *, .scc-modal *, .scc-placeholder * { box-sizing: border-box; }
[hidden].scc, [hidden].scc-modal, [hidden].scc-reopen, .scc-placeholder[hidden], iframe[data-scc-src][hidden] { display: none !important; }

/* ---------- Banner ---------- */
.scc { position: fixed; z-index: 9998; color: var(--scc-ink); animation: scc-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.scc__inner { background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(23, 35, 43, .22); padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.scc--box { left: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px)); }
.scc--bar { left: 16px; right: 16px; bottom: 16px; }
.scc--bar .scc__inner { max-width: 1200px; margin: 0 auto; flex-direction: row; align-items: center; gap: 32px; }
.scc--bar .scc__body { flex: 1; }
.scc__title { margin: 0 0 6px; font-family: var(--f-serif, inherit); font-size: 22px; font-weight: 500; line-height: 1.2; }
.scc__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--scc-text); }
.scc__text a { color: var(--scc-dark); font-weight: 600; text-decoration: underline; }
.scc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scc__actions .scc-btn--link { grid-column: 1 / -1; }
.scc--bar .scc__actions { display: flex; flex-wrap: wrap; flex-shrink: 0; }

.scc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
	cursor: pointer; text-align: center; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.scc-btn:hover { transform: translateY(-1px); }
.scc-btn:focus-visible, .scc-reopen:focus-visible, .scc-inline-link:focus-visible { outline: 3px solid var(--scc-primary); outline-offset: 3px; }
.scc-btn--primary { background: var(--scc-primary); color: var(--scc-on-primary); }
.scc-btn--ghost { background: #fff; color: var(--scc-ink); border-color: #CFC9BC; }
.scc-btn--link { background: none; color: var(--scc-dark); min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Beállítások ablak ---------- */
.scc-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.scc-modal__backdrop { position: absolute; inset: 0; background: rgba(23, 35, 43, .55); animation: scc-fade .25s ease both; }
.scc-modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 32px; color: var(--scc-ink); box-shadow: 0 24px 60px rgba(23, 35, 43, .25); animation: scc-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.scc-modal__box h2 { margin: 0 0 10px; font-family: var(--f-serif, inherit); font-size: 28px; font-weight: 500; line-height: 1.15; padding-right: 40px; }
.scc-modal__x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F6F4EF; font-size: 24px; line-height: 1; cursor: pointer; color: var(--scc-ink); }
.scc-cats { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scc-cat { border: 1px solid var(--scc-line); border-radius: 16px; padding: 16px 18px; }
.scc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scc-cat__head label { font-weight: 700; font-size: 16px; cursor: pointer; }
.scc-cat p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--scc-text); }
.scc-cat__always { font-size: 13px; font-weight: 700; color: var(--scc-dark); background: var(--scc-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.scc__actions--modal { grid-template-columns: repeat(3, 1fr); }

/* kapcsoló */
.scc-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.scc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.scc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #CFC9BC; transition: background-color .2s ease; }
.scc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.scc-switch input:checked + span { background: var(--scc-primary); }
.scc-switch input:checked + span::after { transform: translateX(22px); }
.scc-switch input:focus-visible + span { outline: 3px solid var(--scc-primary); outline-offset: 3px; }

/* ---------- Újranyitó gomb ---------- */
.scc-reopen {
	position: fixed; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 9990;
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--scc-line);
	background: #fff; color: var(--scc-dark); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(23, 35, 43, .16); cursor: pointer; transition: transform .2s ease;
}
.scc-reopen:hover { transform: rotate(-12deg) scale(1.06); }
.scc-inline-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Letiltott tartalom helyőrző ---------- */
.scc-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; min-height: 220px; background: var(--scc-soft); color: var(--scc-ink); border-radius: 16px; }
.scc-placeholder p { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.55; color: var(--scc-text); }
.scc-embed { position: relative; }
.scc-embed iframe { max-width: 100%; }

/* nyitott banner mellett a téma „fel” gombja ne takarjon */
.scc-open .to-top { opacity: 0 !important; visibility: hidden !important; }

@keyframes scc-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes scc-fade { from { opacity: 0; } }

@media (max-width: 720px) {
	.scc--box, .scc--bar { left: 10px; right: 10px; bottom: 10px; width: auto; }
	.scc--bar .scc__inner { flex-direction: column; align-items: stretch; gap: 18px; }
	.scc__inner { padding: 22px 20px; border-radius: 20px; }
	.scc__title { font-size: 20px; }
	.scc__text { font-size: 14px; }
	.scc__actions--modal { grid-template-columns: 1fr; }
	.scc-modal__box { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.scc, .scc-modal__box, .scc-modal__backdrop { animation: none; }
	.scc-btn, .scc-switch span, .scc-switch span::after, .scc-reopen { transition: none; }
}
@media print { .scc, .scc-modal, .scc-reopen { display: none !important; } }
