/* BeBrand Tracking — Cookie-consent banner (Consent Mode v2). Könnyűsúlyú, akadálymentes. */

.bebrand-consent, .bebrand-consent * { box-sizing: border-box; }

.bebrand-consent {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #1a1030;
  color: #f3f0fa;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  padding: 22px 24px;
  z-index: 2147483000;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.bebrand-consent[hidden] { display: none; }

/* Középre-modal + backdrop (Consent Mode v2: a döntés kötelező, a banner nem kikerülhető) */
.bebrand-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 20, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 2147482990;
}
.bebrand-consent-backdrop[hidden] { display: none; }
body.bebrand-consent-open { overflow: hidden; }

.bebrand-consent__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.bebrand-consent__body { margin: 0 0 16px; color: #d6cceb; font-size: 13.5px; }
.bebrand-consent__body a { color: #c4a7ff; text-decoration: underline; }

.bebrand-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bebrand-consent__btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, opacity .15s;
  font-family: inherit;
}
.bebrand-consent__btn--accept { background: #7c3aed; color: #fff; order: 1; }
.bebrand-consent__btn--accept:hover { background: #6d28d9; }
/* Elutasítom: de-emphasizált (nincs fehér sáv, kisebb), de EGY kattintással látható -> GDPR-safe */
.bebrand-consent__btn--reject {
  background: transparent;
  color: #b7a9d4;
  border-color: rgba(255,255,255,0.15);
  flex: 0 0 auto;
  min-width: auto;
  padding: 11px 14px;
  font-size: 13px;
  order: 3;
}
.bebrand-consent__btn--reject:hover { background: rgba(255,255,255,0.06); color: #f3f0fa; }
.bebrand-consent__btn--settings { background: transparent; color: #c4a7ff; border-color: rgba(196,167,255,0.4); order: 2; }
.bebrand-consent__btn--settings:hover { background: rgba(196,167,255,0.1); }
.bebrand-consent__btn--save { background: #7c3aed; color: #fff; }
.bebrand-consent__btn--save:hover { background: #6d28d9; }

.bebrand-consent__btn:focus-visible,
.bebrand-consent__switch input:focus-visible + .bebrand-consent__slider {
  outline: 2px solid #c4a7ff;
  outline-offset: 2px;
}

/* Granuláris beállítások panel */
.bebrand-consent__settings { margin: 4px 0 16px; display: none; }
.bebrand-consent.is-settings .bebrand-consent__settings { display: block; }
.bebrand-consent.is-settings .bebrand-consent__actions--main { display: none; }
.bebrand-consent:not(.is-settings) .bebrand-consent__actions--settings { display: none; }

.bebrand-consent__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bebrand-consent__cat-label { font-weight: 600; font-size: 14px; }
.bebrand-consent__cat-desc { color: #b7a9d4; font-size: 12.5px; margin-top: 3px; }

/* Toggle switch */
.bebrand-consent__switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.bebrand-consent__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bebrand-consent__switch input:disabled { cursor: not-allowed; }
.bebrand-consent__slider { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,0.2); transition: background .15s; }
.bebrand-consent__slider::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s;
}
.bebrand-consent__switch input:checked + .bebrand-consent__slider { background: #7c3aed; }
.bebrand-consent__switch input:checked + .bebrand-consent__slider::before { transform: translateX(20px); }
.bebrand-consent__switch input:disabled + .bebrand-consent__slider { background: #4c1d95; opacity: .7; }

/* Footer újranyitó link */
.bebrand-cookie-settings {
  background: none; border: none; padding: 0; margin-left: 8px;
  color: inherit; text-decoration: underline; cursor: pointer; font: inherit; opacity: .85;
}
.bebrand-cookie-settings:hover { opacity: 1; }

@media (max-width: 520px) {
  .bebrand-consent { width: calc(100vw - 24px); padding: 18px 16px; }
  .bebrand-consent__btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bebrand-consent__btn, .bebrand-consent__slider, .bebrand-consent__slider::before { transition: none; }
}
