/* GFC Cookie Consent - megjelenés
 * Verzió: 1.0.6 | 2026-11-17 | Lábléc-gomb: keretes gomb 28 px-es süti ikonnal (MediaMarkt-minta)
 * Verzió: 1.0.5 | 2026-11-17 | Megnyitó link süti ikonnal (.gfc-cc-link)
 * Verzió: 1.0.4 | 2026-11-17 | Oldalról becsúszó panel, új lebegő süti-gomb
 * Verzió: 1.0.0 | 2026-11-17 | Első kiadás
 * Színek a bővítmény beállításaiból: --gfc-cc-primary, --gfc-cc-primary-text, --gfc-cc-bg, --gfc-cc-text, --gfc-cc-radius
 */

.gfc-cc [hidden],
iframe[data-gfc-src][hidden] { display: none !important; }

.gfc-cc,
.gfc-cc * { box-sizing: border-box; }

.gfc-cc {
  --gfc-cc-border: rgba(0, 0, 0, .12);
  --gfc-cc-muted: rgba(0, 0, 0, .06);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gfc-cc-text);
}

/* ---------- sáv / doboz ---------- */

.gfc-cc__banner {
  position: fixed;
  z-index: 2147483000;
  background: var(--gfc-cc-bg);
  color: var(--gfc-cc-text);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
  display: flex;
  gap: 16px 24px;
  align-items: center;
}

.gfc-cc--bar .gfc-cc__banner {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.gfc-cc--bar .gfc-cc__body { flex: 1 1 480px; max-width: 900px; }

.gfc-cc--box .gfc-cc__banner {
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 20px;
  border-radius: var(--gfc-cc-radius);
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 6px 32px rgba(0, 0, 0, .22);
}

.gfc-cc--box.gfc-cc--left .gfc-cc__banner { left: 16px; }
.gfc-cc--box.gfc-cc--right .gfc-cc__banner { right: 16px; }

.gfc-cc__banner { max-height: 100vh; overflow-y: auto; }

.gfc-cc__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.gfc-cc__text { margin: 0; }

.gfc-cc__link {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.gfc-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gfc-cc--box .gfc-cc__actions .gfc-cc__btn { flex: 1 1 auto; }

/* ---------- gombok: elfogadás és elutasítás egyenrangú ---------- */

.gfc-cc__btn,
.gfc-cc-ph .gfc-cc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--gfc-cc-primary);
  border-radius: var(--gfc-cc-radius);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.gfc-cc__btn--primary {
  background: var(--gfc-cc-primary);
  color: var(--gfc-cc-primary-text);
}

.gfc-cc__btn--ghost {
  background: transparent;
  color: var(--gfc-cc-text);
  border-color: var(--gfc-cc-border);
}

.gfc-cc__btn:hover { filter: brightness(1.1); }

.gfc-cc__btn:focus-visible,
.gfc-cc__cattitle:focus-visible,
.gfc-cc__switch input:focus-visible + .gfc-cc__slider,
.gfc-cc-float:focus-visible,
.gfc-cc__x:focus-visible {
  outline: 3px solid var(--gfc-cc-primary);
  outline-offset: 2px;
}

/* ---------- beállítóablak ---------- */

.gfc-cc__overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gfc-cc__modal {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--gfc-cc-bg);
  color: var(--gfc-cc-text);
  border-radius: var(--gfc-cc-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  outline: none;
}

.gfc-cc__mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gfc-cc-border);
}

.gfc-cc__mhead .gfc-cc__title { margin: 0; }

.gfc-cc__x {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gfc-cc-border);
  border-radius: var(--gfc-cc-radius);
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gfc-cc__mbody {
  padding: 16px 20px;
  overflow-y: auto;
}

.gfc-cc__mbody > .gfc-cc__text { margin-bottom: 14px; }

.gfc-cc__cat {
  background: var(--gfc-cc-muted);
  border-radius: var(--gfc-cc-radius);
  margin-bottom: 8px;
}

.gfc-cc__catrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px 6px 4px;
}

.gfc-cc__cattitle {
  flex: 1;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.gfc-cc__cattitle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}

.gfc-cc__cattitle[aria-expanded="true"]::before { transform: rotate(45deg); }

.gfc-cc__catdesc {
  padding: 0 16px 14px 30px;
  font-size: 14px;
}

.gfc-cc__catdesc p { margin: 0 0 8px; }

.gfc-cc__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gfc-cc__tbl th,
.gfc-cc__tbl td {
  padding: 4px 6px;
  border-top: 1px solid var(--gfc-cc-border);
  text-align: left;
  vertical-align: top;
}

/* kapcsoló */
.gfc-cc__switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
}

.gfc-cc__switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.gfc-cc__switch input:disabled { cursor: not-allowed; }

.gfc-cc__slider {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #b9c0cb;
  transition: background .15s;
}

.gfc-cc__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}

.gfc-cc__switch input:checked + .gfc-cc__slider { background: var(--gfc-cc-primary); }
.gfc-cc__switch input:checked + .gfc-cc__slider::before { transform: translateX(22px); }
.gfc-cc__switch input:disabled + .gfc-cc__slider { opacity: .55; }

.gfc-cc__meta {
  margin: 14px 0 0;
  font-size: 13px;
  opacity: .8;
  word-break: break-all;
}

.gfc-cc__mfoot {
  padding: 14px 20px;
  border-top: 1px solid var(--gfc-cc-border);
}

.gfc-cc__mfoot .gfc-cc__btn { flex: 1 1 auto; }

html.gfc-cc-lock,
html.gfc-cc-lock body { overflow: hidden; }

/* ---------- oldalról becsúszó panel (alap) ---------- */

.gfc-cc--m-panel .gfc-cc__overlay {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  animation: gfc-cc-fade .2s ease-out;
}

.gfc-cc--m-panel.gfc-cc--right .gfc-cc__overlay { justify-content: flex-end; }

.gfc-cc--m-panel .gfc-cc__modal {
  max-width: 460px;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: 8px 0 40px rgba(0, 0, 0, .3);
  animation: gfc-cc-in-left .28s cubic-bezier(.2, .8, .2, 1);
}

.gfc-cc--m-panel.gfc-cc--right .gfc-cc__modal {
  box-shadow: -8px 0 40px rgba(0, 0, 0, .3);
  animation-name: gfc-cc-in-right;
}

.gfc-cc--m-panel .gfc-cc__mbody { flex: 1 1 auto; }

.gfc-cc--m-panel .gfc-cc__mfoot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gfc-cc--m-panel .gfc-cc__mfoot .gfc-cc__btn { width: 100%; }

@keyframes gfc-cc-in-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes gfc-cc-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes gfc-cc-fade { from { background: rgba(0, 0, 0, 0); } }

/* ---------- lebegő gomb ---------- */

.gfc-cc-float {
  position: fixed;
  bottom: 16px;
  z-index: 2147482999;
  width: 52px;
  height: 52px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gfc-cc-primary);
  color: var(--gfc-cc-primary-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s;
}

.gfc-cc-float:hover { transform: rotate(-18deg) scale(1.08); }

.gfc-cc--left .gfc-cc-float { left: 16px; }
.gfc-cc--right .gfc-cc-float { right: 16px; }

/* ---------- {gfc-cookie-consent-lista} táblázat ---------- */

.gfc-cc-table { width: 100%; overflow-x: auto; }
.gfc-cc-table table { min-width: 560px; }

/* ---------- beágyazás helyőrző ---------- */

.gfc-cc-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  padding: 24px;
  border: 1px dashed rgba(0, 0, 0, .25);
  border-radius: var(--gfc-cc-radius, 8px);
  background: rgba(0, 0, 0, .04);
  text-align: center;
  font-size: 15px;
}

.gfc-cc-ph__text { margin: 0; max-width: 520px; }

.gfc-cc-ph .gfc-cc__btn--primary {
  background: var(--gfc-cc-primary, #1f3a5f);
  color: var(--gfc-cc-primary-text, #fff);
  border-color: var(--gfc-cc-primary, #1f3a5f);
}

/* ---------- mobil ---------- */

@media (max-width: 640px) {
  .gfc-cc--bar .gfc-cc__banner { padding: 16px; }
  .gfc-cc__actions { width: 100%; }
  .gfc-cc__actions .gfc-cc__btn { flex: 1 1 100%; }
  .gfc-cc__overlay { padding: 0; align-items: flex-end; }
  .gfc-cc__modal { max-height: 92vh; border-radius: var(--gfc-cc-radius) var(--gfc-cc-radius) 0 0; }
  .gfc-cc--m-panel .gfc-cc__overlay { align-items: stretch; }
  .gfc-cc--m-panel .gfc-cc__modal { max-width: 100%; max-height: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gfc-cc__slider,
  .gfc-cc__slider::before,
  .gfc-cc__cattitle::before,
  .gfc-cc-float { transition: none; }
  .gfc-cc__overlay,
  .gfc-cc__modal { animation: none !important; }
}

/* ---------- megnyitó gomb a láblécben (MediaMarkt-minta): keretes gomb, süti ikonnal ---------- */

a.gfc-cc-link,
button.gfc-cc-link,
.gfc-cc-link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 46px;
  padding: .55em 1.1em .55em .8em;
  border: 2px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s, color .15s;
}

a.gfc-cc-link:hover,
a.gfc-cc-link:focus-visible,
.gfc-cc-link:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.gfc-cc-link:hover .gfc-cc-linkicon svg { transform: rotate(-18deg) scale(1.08); }

.gfc-cc-linkicon { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.gfc-cc-linkicon svg { display: block; width: 28px; height: 28px; transition: transform .2s; }

/* világos háttérű láblécnél: class="gfc-cc-link--dark" a linkre */
.gfc-cc-link--dark,
a.gfc-cc-link--dark { color: #1d2533; }
a.gfc-cc-link--dark:hover { background: rgba(0, 0, 0, .06); color: #1d2533; }
