/* Egyedi süti-hozzájárulás: a márkaszín narancs, a szöveg-kontraszt WCAG AA szerint */
.egc-banner, .egc-modal, .egc-fab { font-family: inherit; box-sizing: border-box; }
.egc-banner *, .egc-modal *, .egc-fab { box-sizing: border-box; }
.egc-banner[hidden], .egc-modal[hidden], .egc-fab[hidden] { display: none !important; }
/* A banner a HTML-ben alapból látható (azonnal kirajzolódik); a már döntött látogatónál ez az osztály a fejlécben azonnal rejti */
.egc-has .egc-banner { display: none !important; }

/* Banner: alul, nem takarja le az oldalt */
.egc-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
	background: #f7f7f7; color: #222; border-top: 3px solid #c94f00;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
}
.egc-banner__inner {
	max-width: 1180px; margin: 0 auto; padding: 14px 16px;
	display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.egc-banner__text { margin: 0; flex: 1 1 420px; font-size: 14px; line-height: 1.5; }
.egc-banner__text a, .egc-links a { color: #a63f00; text-decoration: underline; }
.egc-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Gombok: az elutasítás és az elfogadás egyforma súlyú */
.egc-btn {
	appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
	padding: 10px 16px; border-radius: 6px; border: 2px solid #c94f00; line-height: 1.2;
}
.egc-btn--primary { background: #c94f00; color: #fff; }
.egc-btn--ghost { background: #fff; color: #7a2f00; }
.egc-btn:hover { filter: brightness(.95); }
.egc-btn:focus-visible, .egc-close:focus-visible, .egc-fab:focus-visible, .egc-switch input:focus-visible + .egc-switch__ui {
	outline: 3px solid #1a73e8; outline-offset: 2px;
}

/* Beállítások ablak */
.egc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 12px; }
.egc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.egc-modal__dialog {
	position: relative; background: #fff; color: #222; width: 100%; max-width: 620px; max-height: calc(100vh - 24px);
	border-radius: 10px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); outline: 0;
}
.egc-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e3e3e3; }
.egc-modal__head h2 { margin: 0; font-size: 19px; }
.egc-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #333; padding: 0 6px; }
.egc-modal__body { padding: 14px 18px; overflow-y: auto; font-size: 14px; line-height: 1.5; }
.egc-modal__body p { margin: 0 0 10px; }
.egc-modal__foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid #e3e3e3; }

.egc-cat { border: 1px solid #e3e3e3; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.egc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.egc-cat__desc { margin: 6px 0 4px !important; }
.egc-cat__services { margin: 0 !important; color: #555; font-size: 13px; }
.egc-always { font-size: 13px; color: #2e6b2e; font-weight: 600; }
.egc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kapcsoló */
.egc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.egc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.egc-switch__ui { position: absolute; inset: 0; background: #767676; border-radius: 26px; transition: background .15s; }
.egc-switch__ui::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.egc-switch input:checked + .egc-switch__ui { background: #2e7d32; }
.egc-switch input:checked + .egc-switch__ui::before { transform: translateX(20px); }

/* Lebegő gomb a döntés későbbi módosításához */
.egc-fab {
	position: fixed; left: 14px; bottom: 14px; z-index: 99990; width: 44px; height: 44px; border-radius: 50%;
	background: #c94f00; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}

@media (max-width: 600px) {
	/* kompakt mobil banner: a három gomb egy sorban, kisebb szöveg (a képernyő ~egy ötödét foglalja, nem harmadát) */
	.egc-banner__inner { padding: 10px 12px; gap: 8px; }
	.egc-banner__text { font-size: 12.5px; line-height: 1.4; flex-basis: 100%; }
	.egc-banner__actions { width: 100%; flex-wrap: nowrap; gap: 6px; }
	.egc-banner__actions .egc-btn { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 12.5px; }
	.egc-modal__foot .egc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.egc-switch__ui, .egc-switch__ui::before { transition: none; }
}
