/* =========================================================
   LW Cookie – bojler-javitas.hu megjelenés
   ---------------------------------------------------------
   A plugin alap CSS-e semleges WordPress-kék. Ez a fájl a téma
   nyelvére fordítja: acélkék, sárga CTA, Montserrat cím,
   pirula helyett a téma szögletesebb gombformája.

   Ugyanaz a felépítés, mint a celcentrum.hu-n: 768 px felett
   teljes szélességű ALSÓ SÁV, alatta kártya. Ott azért lett sáv,
   mert a lebegő doboz a hero címére ült rá – itt ugyanez a
   helyzet állna elő, a hero ugyanúgy bal oldalt kezdődik.

   Ez a fájl csak akkor töltődik be, ha a plugin aktív
   (lásd `inc/enqueue.php`).
   ========================================================= */

/* ---------- fátyol (ha modális elrendezésre váltanánk) ---------- */
#lw-cookie-notice.lw-cookie-pos-modal {
	background: rgba(16, 48, 92, .5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* ---------- kártya ---------- */
#lw-cookie-notice .lw-cookie-notice-inner {
	display: block !important;
	max-width: 470px !important;
	width: calc(100% - 32px);
	margin: 16px auto !important;
	padding: 26px 26px 22px !important;
	background: var(--feher, #ffffff) !important;
	color: var(--szoveg, #20242a);
	font-family: var(--font-test, 'Hanken Grotesk', system-ui, sans-serif);
	border: 1px solid var(--vonal, #d5dde8);
	border-radius: var(--kerek-l, 20px);
	box-shadow: var(--arnyek-l, 0 10px 24px rgba(16, 48, 92, .12));
}

#lw-cookie-notice .lw-cookie-content {
	text-align: left;
}

/* ---------- cím ---------- */
#lw-cookie-notice .lw-cookie-title {
	font-family: var(--font-cim, Montserrat, system-ui, sans-serif);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--ejkek, #10305c);
	margin: 0 0 10px;
}

/* A téma szekciócímeit idéző rövid sárga vonal. */
#lw-cookie-notice .lw-cookie-title::before {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	border-radius: 99px;
	margin: 0 0 12px;
	background: var(--sarga, #ffc21a);
}

/* ---------- üzenet ---------- */
#lw-cookie-notice .lw-cookie-message {
	font-size: .95rem;
	line-height: 1.6;
	letter-spacing: normal;
	text-transform: none;
	color: var(--szoveg-halvany, #56606e);
	opacity: 1;
}

#lw-cookie-notice .lw-cookie-message a {
	color: var(--acelkek, #1d4e89);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#lw-cookie-notice .lw-cookie-message a:hover {
	color: var(--ejkek, #10305c);
}

/* ---------- gombok ---------- */
#lw-cookie-notice .lw-cookie-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

/* A gombforma a beállítások ablakban is ugyanez – ott a „Beállítások mentése"
   ugyanúgy elsődleges művelet, tehát ugyanúgy sárga, nem kék. */
#lw-cookie-notice .lw-cookie-btn,
#lw-cookie-preferences .lw-cookie-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--font-cim, Montserrat, system-ui, sans-serif);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .01em;
	padding: .8em 1.5em;
	border-radius: var(--kerek-m, 12px);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease,
		background-color .2s, color .2s, border-color .2s;
}

/* Elfogadom = a téma elsődleges CTA-ja: sárga alap, sötétkék felirat.
   (Sárgán a fehér felirat 1,7:1 volna – a sötét szöveg 9,8:1.) */
#lw-cookie-notice .lw-cookie-btn-primary,
#lw-cookie-preferences .lw-cookie-btn-primary {
	background: var(--sarga, #ffc21a);
	color: var(--ejkek, #10305c);
	border-color: transparent;
	box-shadow: var(--arnyek-s, 0 2px 6px rgba(16, 48, 92, .06));
	order: 1;
}

/* A mentés gomb az ablak alján magától jobbra igazodik, nem kell teljes szélesség. */
#lw-cookie-preferences .lw-cookie-btn-primary {
	width: auto;
}

#lw-cookie-notice .lw-cookie-btn-primary:hover,
#lw-cookie-preferences .lw-cookie-btn-primary:hover {
	background: var(--sarga-sotet, #e8ae0d);
	transform: translateY(-2px);
	box-shadow: var(--arnyek-m, 0 12px 28px rgba(16, 48, 92, .08));
}

/* Elutasítom = kontúros */
#lw-cookie-notice .lw-cookie-btn-outline {
	background: transparent;
	color: var(--ejkek, #10305c);
	border-color: var(--vonal, #d5dde8);
	order: 2;
}

#lw-cookie-notice .lw-cookie-btn-outline:hover {
	border-color: var(--acelkek, #1d4e89);
	color: var(--acelkek, #1d4e89);
	transform: translateY(-2px);
}

/* Beállítások = szöveges link */
#lw-cookie-notice .lw-cookie-btn-secondary {
	background: none;
	color: var(--acelkek, #1d4e89);
	border: none;
	border-radius: 0;
	padding: 6px 0 0;
	font-size: .9rem;
	font-weight: 600;
	order: 3;
	text-decoration: underline;
	text-underline-offset: 3px;
	width: auto;
	margin: 2px auto 0;
	box-shadow: none;
}

#lw-cookie-notice .lw-cookie-btn-secondary:hover {
	color: var(--ejkek, #10305c);
	background: none;
	transform: none;
}

/* ---------- lebegő gomb ---------- */
#lw-cookie-floating-btn {
	background: var(--acelkek, #1d4e89) !important;
	color: var(--feher, #ffffff) !important;
	border: 1px solid rgba(16, 48, 92, .18);
	box-shadow: var(--arnyek-m, 0 12px 28px rgba(16, 48, 92, .08));
}

#lw-cookie-floating-btn:hover {
	background: var(--ejkek, #10305c) !important;
	transform: translateY(-2px);
}

#lw-cookie-floating-btn svg,
#lw-cookie-floating-btn path {
	stroke: var(--feher, #ffffff);
	fill: none;
}

/* ---------- beállítások ablak ---------- */
#lw-cookie-preferences .lw-cookie-modal-content {
	background: var(--feher, #ffffff) !important;
	color: var(--szoveg, #20242a);
	font-family: var(--font-test, 'Hanken Grotesk', system-ui, sans-serif);
	border: 1px solid var(--vonal, #d5dde8);
	border-radius: var(--kerek-l, 20px);
	box-shadow: var(--arnyek-l, 0 24px 56px rgba(16, 48, 92, .12));
}

#lw-cookie-preferences .lw-cookie-modal-title {
	font-family: var(--font-cim, Montserrat, system-ui, sans-serif) !important;
	font-weight: 800;
	color: var(--ejkek, #10305c) !important;
}

#lw-cookie-preferences .lw-cookie-category-label,
#lw-cookie-preferences .lw-cookie-category-name,
#lw-cookie-preferences .lw-cookie-modal-close {
	color: var(--ejkek, #10305c) !important;
}

#lw-cookie-preferences .lw-cookie-category-desc,
#lw-cookie-preferences .lw-cookie-category-details,
#lw-cookie-preferences .lw-cookie-category-cookies th,
#lw-cookie-preferences .lw-cookie-category-cookies td {
	color: var(--szoveg-halvany, #56606e) !important;
}

#lw-cookie-preferences .lw-cookie-category {
	border-bottom-color: var(--vonal-halvany, #e6ecf3) !important;
}

/* A „mindig aktív" jelölés halvány kék pirulán. */
#lw-cookie-preferences .lw-cookie-required {
	background: var(--huvos-feher, #eef2f7);
	color: var(--acelkek, #1d4e89) !important;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: .78rem;
	font-weight: 600;
}

#lw-cookie-preferences input[type="checkbox"]:checked + .lw-cookie-toggle-slider,
#lw-cookie-preferences .lw-cookie-toggle input:checked + span {
	background: var(--acelkek, #1d4e89) !important;
}

/* =========================================================
   SÁV ELRENDEZÉS (banner_layout = bar)
   ---------------------------------------------------------
   Csak 768 px felett sáv; alatta marad a kártya, mert telefonon
   egy vízszintes sáv olvashatatlan lenne. Az `!important` azért
   kell, mert a fenti kártya-szabályok is azzal írják felül a
   plugin alap-CSS-ét.
   ========================================================= */
@media (min-width: 768px) {

	#lw-cookie-notice.lw-cookie-layout-bar {
		background: var(--feher, #ffffff);
		border-top: 3px solid var(--sarga, #ffc21a);
		box-shadow: 0 -10px 40px -20px rgba(16, 48, 92, .35);
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-notice-inner {
		display: flex !important;
		align-items: center;
		gap: 32px;
		/* Ugyanaz a sávszélesség, mint az oldal többi részén. */
		max-width: 1180px !important;
		width: auto;
		margin: 0 auto !important;
		padding: 16px 1.25rem !important;
		background: none !important;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	/* A sávban a cím fölötti sárga vonal csak magasítana – a sáv
	   felső szegélye már úgyis sárga. */
	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-title::before {
		display: none;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-title {
		font-size: 1.05rem;
		margin: 0 0 2px;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-message {
		font-size: .88rem;
		line-height: 1.5;
		max-width: 74ch;
	}

	/* Gombok egy sorban, jobbra; a döntés (Elfogadom) a sor végén. */
	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-actions {
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		gap: 12px;
		margin-top: 0;
		flex-shrink: 0;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-btn {
		width: auto;
		white-space: nowrap;
		padding: .7em 1.35em;
		font-size: .9rem;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-btn-secondary {
		order: 1;
		margin: 0;
		padding: 0;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-btn-outline {
		order: 2;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-btn-primary {
		order: 3;
	}
}

/* 768–1040 px között a szöveg + három gomb szűkös egy sorban:
   a gombok a szöveg alá csúsznak, de maradnak vízszintesen. */
@media (min-width: 768px) and (max-width: 1040px) {
	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-notice-inner {
		flex-wrap: wrap;
		gap: 12px 24px;
	}

	#lw-cookie-notice.lw-cookie-layout-bar .lw-cookie-actions {
		width: 100%;
		justify-content: flex-end;
	}
}

/* =========================================================
   MOBIL – a fix hívósáv fölé
   ---------------------------------------------------------
   48rem alatt az oldal alján ott a fix Hívás / Ajánlatkérés sáv
   (`.mobilsav`, 4,5rem). A süti-kártya és a lebegő gomb enélkül
   pontosan ráülne, és a hívógombot takarná el – vagyis épp azt,
   amiért az egész oldal készült. Ezért mindkettőt föléje toljuk.
   ========================================================= */
@media (max-width: 767px) {
	#lw-cookie-notice .lw-cookie-notice-inner {
		width: auto !important;
		max-width: none !important;
		margin: 12px !important;
	}

	#lw-cookie-notice.lw-cookie-pos-bottom {
		bottom: var(--mobilsav, 4.5rem);
	}

	#lw-cookie-floating-btn {
		bottom: calc(var(--mobilsav, 4.5rem) + 12px) !important;
	}
}

@media (max-width: 520px) {
	#lw-cookie-notice .lw-cookie-notice-inner {
		padding: 22px 20px 18px !important;
		border-radius: var(--kerek-m, 12px);
	}

	#lw-cookie-notice .lw-cookie-title {
		font-size: 1.1rem;
	}
}
