/* Alap változók – igazítsd a saját dizájnodhoz */
:root {
  --cookie-bg: #0f172a;
  --cookie-bg-soft: #020617;
  --cookie-text: #f9fafb;
  --cookie-accent: #eab308;
  --cookie-accent-soft: #facc15;
  --cookie-border: #1f2937;
  --cookie-danger: #ef4444;
  --cookie-muted: #9ca3af;
  --cookie-radius: 14px;
  --cookie-shadow: 0 18px 45px rgba(0,0,0,.65);
  --cookie-z: 99999;
}

/* Teljes képernyős overlay a banner mögé */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.68);
  backdrop-filter: blur(4px);
  z-index: var(--cookie-z);
  display: none;
}

/* Alap banner doboz */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 960px;
  width: calc(100% - 32px);
  background: radial-gradient(circle at top left, #111827 0, #020617 45%, #020617 100%);
  color: var(--cookie-text);
  border-radius: var(--cookie-radius);
  box-shadow: var(--cookie-shadow);
  padding: 18px 20px;
  display: none;
  z-index: calc(var(--cookie-z) + 1);
  border: 1px solid rgba(148,163,184,.3);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: flex-start;
}

.cookie-banner__icon {
  font-size: 28px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.cookie-banner__content {
  flex: 1 1 260px;
  min-width: 0;
}

.cookie-banner__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-banner__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cookie-muted);
}

.cookie-banner__link {
  color: var(--cookie-accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: var(--cookie-accent);
}

.cookie-banner__toggles {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cookie-muted);
}

.cookie-toggle__label {
  font-weight: 500;
  color: var(--cookie-text);
}

.cookie-toggle__switch {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #4b5563;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .18s ease-out;
}

.cookie-toggle__switch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  transition: all .18s ease-out;
}

.cookie-toggle__switch--on {
  background: #22c55e;
  border-color: #22c55e;
}

.cookie-toggle__switch--on::before {
  transform: translate(19px, -50%);
  background: #ecfdf5;
}

/* Kötelező (technikai) sütik – nem kattintható */
.cookie-toggle--locked .cookie-toggle__switch {
  opacity: .5;
  cursor: default;
}
.cookie-toggle--locked .cookie-toggle__label::after {
  content: " (kötelező)";
  font-weight: 400;
  color: var(--cookie-muted);
}

/* Gombok blokk */
.cookie-banner__actions {
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.cookie-btn--primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.cookie-btn--ghost {
  background: transparent;
  color: var(--cookie-text);
  border-color: #4b5563;
}
.cookie-btn--ghost:hover {
  background: rgba(15,23,42,.7);
}

.cookie-btn--text {
  background: transparent;
  border: none;
  color: var(--cookie-muted);
  font-size: 13px;
  padding-inline: 0;
}
.cookie-btn--text:hover {
  color: var(--cookie-text);
}

/* Bal alsó lebegő ikon */
.cookie-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: var(--cookie-z);
  display: none;
}

.cookie-fab__btn {
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.4);
  box-shadow: 0 12px 30px rgba(0,0,0,.7);
  padding: 8px 10px;
  color: var(--cookie-text);
  font-size: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 40px;
  min-height: 40px;
  cursor:pointer;
}

.cookie-fab__btn span {
  font-size: 18px;
}

.cookie-fab__btn:hover {
  background: rgba(15,23,42,1);
}

/* Modal a részletes beállításokhoz */
.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: calc(var(--cookie-z) + 2);
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(6px);
}

.cookie-modal__dialog {
  position: relative;
  background: radial-gradient(circle at top left, #111827 0, #020617 50%, #020617 100%);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.85);
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 20px 22px 18px;
  border: 1px solid rgba(148,163,184,.35);
  color: var(--cookie-text);
}

.cookie-modal__header {
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.cookie-modal__title {
  font-size: 18px;
  font-weight: 600;
}

.cookie-modal__close {
  border: none;
  background: transparent;
  color: var(--cookie-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cookie-modal__body {
  font-size: 14px;
  color: var(--cookie-muted);
  max-height: min(360px, 60vh);
  overflow: auto;
  padding-right: 4px;
}

.cookie-modal__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(31,41,55,.8);
}

.cookie-modal__group-header {
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cookie-modal__group-title {
  font-weight: 500;
  color: var(--cookie-text);
}

.cookie-modal__group-desc {
  font-size: 13px;
}

.cookie-modal__footer {
  display:flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* Reszponzív */
@media (max-width: 640px) {
  .cookie-banner__actions {
    flex: 1 1 100%;
    flex-direction: column;
  }
  .cookie-modal__dialog {
    padding: 16px 14px 14px;
  }
}
