/**
 * CookieYes: a hozzájárulási ablak a Vikingo formanyelvén (Seo\Meres tölti
 * be). Az ingyenes csomagban a CookieYes-ben nincs saját CSS, a színeket
 * inline stílusként adja (kék alap), ezért itt !important kell.
 *
 * A vikingo.hu mintája: az ablak a képernyő közepén, sötétített, elmosott
 * háttér előtt; Ink, Coral, Sand, Paper; Clash Display és DM Mono, legfeljebb
 * 500-as súly, az első lépésben Elutasítás nélkül (Bence, 2026-10-19; a
 * Testreszabásban megvan). Eltérés: a nagy keret szögletes, 1 px sand
 * vonallal, árnyék nincs.
 */

.cky-consent-container,
.cky-preference-center,
.cky-modal {
	--vk-cky-ink: #3E2E45;
	--vk-cky-coral: #FF544D;
	--vk-cky-sand: #DCD0C3;
	--vk-cky-paper: #F3EEEB;
	--vk-cky-mauve: #7A687F;
	--vk-cky-feher: #FFFFFF;
}

/* CookieYes felirat és logó elrejtése */
[data-cky-tag="powered-by"],
[data-cky-tag="detail-powered-by"] {
	display: none !important;
}

/* Sáv: középen, sötétített, elmosott háttér előtt. A középre húzás
   margin: auto-val megy, nem transformmal: transform alatt a ::before fixed
   rétege a dobozhoz igazodna, nem a képernyőhöz. */
.cky-consent-container {
	inset: 0 !important;
	margin: auto !important;
	width: min(440px, calc(100vw - 32px)) !important;
	max-width: none !important;
	height: max-content !important;
	overflow: visible !important;
}

.cky-consent-container::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: rgba(62, 46, 69, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.cky-overlay {
	background: rgba(62, 46, 69, 0.45) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

body:has(.cky-overlay:not(.cky-hide)) .cky-consent-container::before {
	display: none;
}

.cky-consent-container.cky-hide::before {
	display: none;
}

.cky-consent-container .cky-consent-bar {
	background: var(--vk-cky-feher) !important;
	border: 1px solid var(--vk-cky-sand) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 32px !important;
}

.cky-consent-container .cky-notice .cky-title {
	color: var(--vk-cky-ink) !important;
	font-family: "Clash Display", sans-serif !important;
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 500 !important;
	padding: 0 !important;
	margin: 0 0 12px !important;
}

.cky-consent-container .cky-notice-content-wrapper,
.cky-consent-container .cky-notice-group,
.cky-consent-container .cky-notice-des {
	padding: 0 !important;
}

.cky-consent-container .cky-notice-des,
.cky-consent-container .cky-notice-des p {
	color: var(--vk-cky-ink) !important;
	font-family: "Clash Display", sans-serif !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	font-weight: 400 !important;
}

.cky-consent-container .cky-notice-des a,
.cky-preference-center .cky-preference-content-wrapper a {
	color: var(--vk-cky-ink) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--vk-cky-coral) !important;
	text-underline-offset: 3px;
}

/* Gombok: Testreszabás és Elfogadás egy sorban, Elutasítás nélkül. */
.cky-consent-container .cky-notice-btn-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 8px !important;
	margin: 24px 0 0 !important;
	padding: 0 !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject {
	display: none !important;
}

/* Mobilon a CookieYes az Elfogadást teszi előre: mindenhol jobbra legyen. */
.cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize {
	order: 1;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept {
	order: 2;
}

/* Közös gombalak: pill, DM Mono, 52 px */
.cky-consent-container .cky-btn,
.cky-preference-center .cky-btn {
	height: 52px !important;
	min-width: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 100px !important;
	border: 1px solid var(--vk-cky-ink) !important;
	background: transparent !important;
	color: var(--vk-cky-ink) !important;
	font-family: "DM Mono", monospace !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}

.cky-consent-container .cky-btn-accept,
.cky-preference-center .cky-btn-accept {
	background: var(--vk-cky-coral) !important;
	border-color: var(--vk-cky-coral) !important;
	color: var(--vk-cky-feher) !important;
}

@media (hover: hover) {
	.cky-consent-container .cky-btn:hover,
	.cky-preference-center .cky-btn:hover {
		background: var(--vk-cky-paper) !important;
	}

	.cky-consent-container .cky-btn-accept:hover,
	.cky-preference-center .cky-btn-accept:hover {
		background: var(--vk-cky-ink) !important;
		border-color: var(--vk-cky-ink) !important;
	}
}

.cky-consent-container .cky-btn:focus-visible,
.cky-preference-center .cky-btn:focus-visible {
	outline: 2px solid var(--vk-cky-coral) !important;
	outline-offset: 3px !important;
}

/* Felirat: „Az összes elfogadása” helyett „Elfogadás” (amíg a CookieYes-ben
   át nem írjuk). */
.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept {
	font-size: 0 !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept::after {
	content: "Elfogadás";
	font-size: 15px;
	line-height: 1;
}

html[lang^="en"] .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept::after {
	content: "Accept";
}

/* Beállító panel (Testreszabás). Keskeny, három sáv: fejléc, görgethető
   tartalom, gombsor. Asztalon a három gomb egy sorban (az Elfogadás jobbra),
   mobilon az Elfogadás felül teljes szélességben, alatta a másik kettő. */
.cky-preference-center {
	width: min(600px, calc(100vw - 32px)) !important;
	max-width: none !important;
	max-height: min(720px, calc(100vh - 32px)) !important;
	background: var(--vk-cky-feher) !important;
	border: 1px solid var(--vk-cky-sand) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--vk-cky-ink) !important;
}

.cky-preference-center .cky-preference-header {
	padding: 20px 20px 20px 32px !important;
	border-bottom: 1px solid var(--vk-cky-sand) !important;
	align-items: center !important;
}

.cky-preference-center .cky-preference-title {
	color: var(--vk-cky-ink) !important;
	font-family: "Clash Display", sans-serif !important;
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 500 !important;
}

.cky-preference-center .cky-preference-body-wrapper {
	padding: 0 32px !important;
}

.cky-preference-center .cky-preference-content-wrapper {
	padding: 20px 0 !important;
}

.cky-preference-center .cky-horizontal-separator {
	background: var(--vk-cky-sand) !important;
	border: 0 !important;
}

.cky-preference-center .cky-preference-content-wrapper,
.cky-preference-center .cky-preference-content-wrapper p,
.cky-preference-center .cky-accordion-header-des,
.cky-preference-center .cky-accordion-header-des p {
	color: var(--vk-cky-ink) !important;
	font-family: "Clash Display", sans-serif !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

/* Csak a használt kategóriák: Szükséges és Analitika (a többiben nincs süti). */
.cky-preference-center .cky-accordion:has([aria-controls="ckyDetailCategoryfunctionalBody"]),
.cky-preference-center .cky-accordion:has([aria-controls="ckyDetailCategoryperformanceBody"]),
.cky-preference-center .cky-accordion:has([aria-controls="ckyDetailCategoryadvertisementBody"]) {
	display: none !important;
}

.cky-preference-center .cky-accordion {
	border-top: 1px solid var(--vk-cky-sand) !important;
	border-bottom: 0 !important;
}

.cky-preference-center .cky-accordion-item {
	padding: 20px 0 !important;
}

.cky-preference-center .cky-accordion-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	margin-bottom: 8px !important;
}

.cky-preference-center .cky-accordion-btn,
.cky-preference-center .cky-accordion-btn:hover,
.cky-preference-center .cky-accordion-btn:focus {
	color: var(--vk-cky-ink) !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	font-family: "Clash Display", sans-serif !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
	text-transform: none !important;
	text-align: left !important;
}

.cky-preference-center .cky-accordion-btn:focus-visible {
	outline: 2px solid var(--vk-cky-coral) !important;
	outline-offset: 3px !important;
}

.cky-preference-center .cky-always-active {
	color: var(--vk-cky-mauve) !important;
	font-family: "DM Mono", monospace !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	white-space: nowrap !important;
}

.cky-preference-center .cky-show-desc-btn,
.cky-preference-center .cky-show-desc-btn:hover,
.cky-preference-center .cky-show-desc-btn:focus {
	color: var(--vk-cky-ink) !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	font-family: "DM Mono", monospace !important;
	font-size: 13px !important;
	text-decoration: underline !important;
	text-decoration-color: var(--vk-cky-coral) !important;
	text-underline-offset: 3px;
}

.cky-preference-center .cky-chevron-right {
	border-color: var(--vk-cky-ink) !important;
}

/* Kapcsolók: az Elementor űrlapstílusának semlegesítése, Vikingo színek */
.cky-switch input[type="checkbox"] {
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 50px !important;
	background: var(--vk-cky-sand) !important;
	box-shadow: none !important;
}

.cky-switch input[type="checkbox"]:checked {
	background: var(--vk-cky-ink) !important;
}

.cky-switch input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--vk-cky-coral) !important;
	outline-offset: 2px !important;
}

/* Bezáró gomb: 40 px-es érintési felület, gyűrű csak billentyűzetnél */
.cky-preference-header button.cky-btn-close,
.cky-preference-header button.cky-btn-close:hover,
.cky-preference-header button.cky-btn-close:focus {
	width: 40px !important;
	height: 40px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 40px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.cky-preference-header button.cky-btn-close img {
	width: 14px !important;
	height: 14px !important;
}

@media (hover: hover) {
	.cky-preference-header button.cky-btn-close:hover {
		background: var(--vk-cky-paper) !important;
	}
}

.cky-preference-header button.cky-btn-close:focus-visible {
	outline: 2px solid var(--vk-cky-coral) !important;
	outline-offset: 2px !important;
}

/* Gombsor */
.cky-preference-center .cky-footer-wrapper {
	border-top: 1px solid var(--vk-cky-sand) !important;
	background: var(--vk-cky-feher) !important;
}

.cky-preference-center .cky-footer-shadow {
	display: none !important;
}

.cky-preference-center .cky-prefrence-btn-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1.3fr !important;
	gap: 8px !important;
	padding: 20px 32px !important;
	border: 0 !important;
	background: transparent !important;
}

.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn {
	height: 48px !important;
	font-size: 14px !important;
}

.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-reject {
	order: 1;
}

.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-preferences {
	order: 2;
}

.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-accept {
	order: 3;
}

@media (max-width: 560px) {
	.cky-preference-center .cky-preference-header {
		padding: 16px 12px 16px 24px !important;
	}

	.cky-preference-center .cky-preference-body-wrapper {
		padding: 0 24px !important;
	}

	.cky-preference-center .cky-prefrence-btn-wrapper {
		grid-template-columns: 1fr 1fr !important;
		padding: 16px 24px !important;
	}

	.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-accept {
		grid-column: 1 / -1;
		order: 0;
	}
}

/* Visszahívó gomb (bal alul): Ink kör, árnyék nélkül */
.cky-btn-revisit-wrapper {
	background: var(--vk-cky-ink, #3E2E45) !important;
	width: 44px !important;
	height: 44px !important;
	bottom: 16px !important;
	left: 16px !important;
	box-shadow: none !important;
	transition: background-color .2s ease !important;
}

@media (hover: hover) {
	.cky-btn-revisit-wrapper:hover {
		background: #57445F !important;
	}
}

.cky-btn-revisit-wrapper .cky-btn-revisit,
.cky-btn-revisit-wrapper .cky-btn-revisit:hover,
.cky-btn-revisit-wrapper .cky-btn-revisit:focus,
.cky-btn-revisit-wrapper .cky-btn-revisit:active {
	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	width: 44px !important;
	height: 44px !important;
	transition: none !important;
}

.cky-btn-revisit-wrapper .cky-btn-revisit img {
	width: 26px !important;
	height: 26px !important;
}

.cky-btn-revisit-wrapper .cky-btn-revisit:focus-visible {
	outline: 2px solid #FF544D !important;
	outline-offset: 3px !important;
}

.cky-revisit-bottom-left:hover::before {
	background: #1A0922 !important;
	color: #fff !important;
	font-family: "DM Mono", monospace !important;
	font-size: 12px !important;
	line-height: 16px !important;
	padding: 6px 10px !important;
	border-radius: 8px !important;
	left: calc(100% + 10px) !important;
}

.cky-revisit-bottom-left:hover::after {
	border-color: transparent #1A0922 transparent transparent !important;
	left: calc(100% + 5px) !important;
}

@media (max-width: 480px) {
	.cky-consent-container .cky-consent-bar {
		padding: 24px !important;
	}

	.cky-btn-revisit-wrapper {
		width: 40px !important;
		height: 40px !important;
		bottom: 12px !important;
		left: 12px !important;
	}

	.cky-btn-revisit-wrapper .cky-btn-revisit {
		width: 40px !important;
		height: 40px !important;
	}

	.cky-btn-revisit-wrapper .cky-btn-revisit img {
		width: 22px !important;
		height: 22px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cky-consent-container .cky-btn,
	.cky-preference-center .cky-btn,
	.cky-btn-revisit-wrapper {
		transition: none !important;
	}
}
