/* Süti-hozzájárulás modul – stílusok. Minden szabály #cc-root alatt, hogy a sablon CSS-e ne írja felül. */
#cc-root {
	--cc-color: #0b6bcb;
	--cc-on-color: #fff;
	--cc-bg: #fff;
	--cc-text: #1f2430;
	--cc-muted: #5b6372;
	--cc-border: #d9dde5;
	--cc-soft: #f3f5f8;
	--cc-shadow: 0 8px 32px rgba(15, 23, 42, .22);
	position: relative;
	z-index: 2147483000;
	font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--cc-text);
}

#cc-root[data-theme="dark"] {
	--cc-bg: #1f2430;
	--cc-text: #e8eaf0;
	--cc-muted: #a4acbb;
	--cc-border: #3a4050;
	--cc-soft: #2a3040;
	--cc-shadow: 0 8px 32px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
	#cc-root[data-theme="auto"] {
		--cc-bg: #1f2430;
		--cc-text: #e8eaf0;
		--cc-muted: #a4acbb;
		--cc-border: #3a4050;
		--cc-soft: #2a3040;
		--cc-shadow: 0 8px 32px rgba(0, 0, 0, .55);
	}
}

#cc-root *, #cc-root *::before, #cc-root *::after { box-sizing: border-box; }

#cc-root [hidden] { display: none !important; }

/* ---- banner ---- */
#cc-root .cc-banner {
	position: fixed;
	background: var(--cc-bg);
	color: var(--cc-text);
	border: 1px solid var(--cc-border);
	box-shadow: var(--cc-shadow);
	padding: 18px 20px;
	max-height: 92vh;
	overflow: auto;
	display: flex;
	gap: 16px 24px;
	align-items: center;
}

#cc-root.cc-bar .cc-banner { left: 0; right: 0; bottom: 0; border-width: 1px 0 0; flex-wrap: wrap; justify-content: space-between; }
#cc-root.cc-bar .cc-body { flex: 1 1 420px; }

#cc-root.cc-left .cc-banner,
#cc-root.cc-right .cc-banner { bottom: 16px; width: 420px; max-width: calc(100vw - 32px); flex-direction: column; align-items: stretch; border-radius: 10px; }
#cc-root.cc-left .cc-banner { left: 16px; }
#cc-root.cc-right .cc-banner { right: 16px; }

#cc-root.cc-center .cc-banner { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: calc(100vw - 32px); flex-direction: column; align-items: stretch; border-radius: 10px; }

#cc-root .cc-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); }

#cc-root .cc-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--cc-text); }
#cc-root .cc-text { margin: 0; color: var(--cc-muted); }
#cc-root .cc-text a, #cc-root .cc-modal a { color: var(--cc-color); text-decoration: underline; }

#cc-root .cc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#cc-root.cc-left .cc-actions, #cc-root.cc-right .cc-actions, #cc-root.cc-center .cc-actions { justify-content: stretch; }

/* ---- gombok ---- */
#cc-root .cc-btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	min-height: 42px;
	padding: 9px 18px;
	border-radius: 6px;
	border: 2px solid var(--cc-color);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: filter .15s, background .15s;
}
/* az elfogadás és az elutasítás kinézete azonos – a döntés egyformán könnyű */
#cc-root .cc-btn-primary { background: var(--cc-color); color: var(--cc-on-color); }
#cc-root .cc-btn-outline { background: transparent; color: var(--cc-color); }
#cc-root .cc-btn:hover { filter: brightness(.92); }
#cc-root .cc-btn:focus-visible, #cc-root .cc-revisit:focus-visible, #cc-root .cc-close:focus-visible, #cc-root summary:focus-visible, #cc-root .cc-switch input:focus-visible + .cc-slider {
	outline: 3px solid var(--cc-color);
	outline-offset: 2px;
}
#cc-root.cc-left .cc-actions .cc-btn, #cc-root.cc-right .cc-actions .cc-btn, #cc-root.cc-center .cc-actions .cc-btn { flex: 1 1 100%; }

/* ---- beállító-központ ---- */
#cc-root .cc-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
#cc-root .cc-modal { background: var(--cc-bg); color: var(--cc-text); border-radius: 10px; box-shadow: var(--cc-shadow); width: 640px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
#cc-root .cc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cc-border); }
#cc-root .cc-modal-head h2 { margin: 0; font-size: 18px; color: var(--cc-text); }
#cc-root .cc-close { appearance: none; -webkit-appearance: none; background: transparent; border: 0; cursor: pointer; color: var(--cc-muted); font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 6px; }
#cc-root .cc-close:hover { background: var(--cc-soft); }
#cc-root .cc-modal-body { padding: 16px 20px; overflow: auto; flex: 1 1 auto; }
#cc-root .cc-modal-body > p { margin: 0 0 14px; color: var(--cc-muted); }
#cc-root .cc-modal-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--cc-border); }

#cc-root .cc-cat { border: 1px solid var(--cc-border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
#cc-root .cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#cc-root .cc-cat-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--cc-text); }
#cc-root .cc-always { font-size: 12px; font-weight: 700; color: var(--cc-color); white-space: nowrap; }
#cc-root .cc-cat-desc { margin: 6px 0 0; color: var(--cc-muted); }

#cc-root .cc-cookies { margin-top: 8px; }
#cc-root .cc-cookies summary { cursor: pointer; font-weight: 600; color: var(--cc-color); padding: 4px 0; }
#cc-root .cc-cookies table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
#cc-root .cc-cookies th, #cc-root .cc-cookies td { text-align: left; vertical-align: top; padding: 6px 8px; border-top: 1px solid var(--cc-border); word-break: break-word; }
#cc-root .cc-cookies th { color: var(--cc-muted); font-weight: 600; }
#cc-root .cc-cookies .cc-none { margin: 6px 0 0; color: var(--cc-muted); }

/* kapcsoló */
#cc-root .cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
#cc-root .cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
#cc-root .cc-slider { position: absolute; inset: 0; background: #9aa3b2; border-radius: 26px; transition: background .15s; }
#cc-root .cc-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
#cc-root .cc-switch input:checked + .cc-slider { background: var(--cc-color); }
#cc-root .cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }

/* újranyitó gomb */
#cc-root .cc-revisit {
	position: fixed;
	bottom: 14px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--cc-color);
	color: var(--cc-on-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
#cc-root .cc-revisit svg { width: 24px; height: 24px; fill: currentColor; }
#cc-root .cc-revisit.cc-pos-left { left: 14px; }
#cc-root .cc-revisit.cc-pos-right { right: 14px; }

html.cc-lock { overflow: hidden; }

@media (max-width: 640px) {
	#cc-root .cc-banner { padding: 14px; }
	#cc-root.cc-bar .cc-actions { width: 100%; }
	#cc-root.cc-bar .cc-actions .cc-btn { flex: 1 1 100%; }
	#cc-root .cc-modal-foot .cc-btn { flex: 1 1 100%; }
	#cc-root .cc-overlay { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	#cc-root * { transition: none !important; }
}
