/* DK Süti Hozzájárulás */
:root { --dkcc-accent: #0f7a3d; --dkcc-text: #1d2327; --dkcc-muted: #50575e; --dkcc-bg: #fff; --dkcc-line: #dcdcde; }

html.dkcc-locked, html.dkcc-locked body { overflow: hidden !important; }

.dkcc-root { display: none; }
.dkcc-root, .dkcc-root * { box-sizing: border-box; }
.dkcc-root.is-open { display: block; }

.dkcc-overlay {
	position: fixed; inset: 0; z-index: 2147483600;
	background: rgba(15, 20, 25, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.dkcc-dialog {
	position: fixed; z-index: 2147483601; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
	background: var(--dkcc-bg); color: var(--dkcc-text);
	border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
	padding: 24px; font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: left;
}
.dkcc-dialog:focus { outline: none; }
.dkcc-dialog h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; color: var(--dkcc-text); font-weight: 700; }
.dkcc-dialog p { margin: 0 0 10px; color: var(--dkcc-muted); font-size: 14.5px; }
.dkcc-links a { color: var(--dkcc-accent); text-decoration: underline; }

/* Nem takaró változat a tájékoztató oldalakon */
.dkcc-nonblocking .dkcc-overlay { display: none; }
.dkcc-nonblocking .dkcc-dialog { top: auto; bottom: 16px; transform: translateX(-50%); }

.dkcc-prefs { border-top: 1px solid var(--dkcc-line); margin-top: 12px; padding-top: 6px; }
.dkcc-cat { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--dkcc-line); }
.dkcc-cat strong { display: block; font-size: 15px; color: var(--dkcc-text); }
.dkcc-cat span { display: block; font-size: 13.5px; color: var(--dkcc-muted); }

.dkcc-switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin-top: 2px; }
.dkcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dkcc-switch span { position: absolute; inset: 0; background: #c3c4c7; border-radius: 24px; transition: background .15s; pointer-events: none; }
.dkcc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.dkcc-switch input:checked + span { background: var(--dkcc-accent); }
.dkcc-switch input:checked + span::after { transform: translateX(20px); }
.dkcc-switch input:focus-visible + span { outline: 2px solid var(--dkcc-accent); outline-offset: 2px; }
.dkcc-switch.is-locked { opacity: .6; }

.dkcc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dkcc-btn {
	appearance: none; border: 2px solid var(--dkcc-accent); border-radius: 8px; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; padding: 12px 18px; min-height: 46px; box-sizing: border-box;
}
/* Elfogadom: kitöltött. Elutasítom: keretes, azonos méretű és jól olvasható. */
.dkcc-btn-main { flex: 1 1 160px; background: var(--dkcc-accent); color: #fff; }
.dkcc-btn-main:hover { filter: brightness(1.08); }
.dkcc-btn-main.dkcc-btn-secondary { background: #fff; color: var(--dkcc-accent); }
.dkcc-btn-main.dkcc-btn-secondary:hover { filter: none; background: #f3f8f5; }
.dkcc-btn-link { flex: 1 1 100%; background: transparent; color: var(--dkcc-accent); border-color: transparent; text-decoration: underline; min-height: 40px; padding: 8px; }
.dkcc-btn[hidden] { display: none; }
.dkcc-btn:focus-visible { outline: 3px solid var(--dkcc-text); outline-offset: 2px; }

.dkcc-float {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147483000;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--dkcc-accent); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2);
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.dkcc-float:focus-visible { outline: 3px solid var(--dkcc-text); outline-offset: 2px; }

.dkcc-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.dkcc-table th, .dkcc-table td { border: 1px solid var(--dkcc-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.dkcc-table th { background: #f6f7f7; }

@media (max-width: 480px) {
	.dkcc-dialog { padding: 18px; top: auto; bottom: 0; left: 0; transform: none; width: 100vw; max-height: 90vh; border-radius: 14px 14px 0 0; }
	.dkcc-nonblocking .dkcc-dialog { bottom: 0; transform: none; }
	.dkcc-btn-main { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dkcc-switch span, .dkcc-switch span::after { transition: none; } }
