/* Beck Cookie Consent - compact bottom-left + subtle watermark background */

#beck-consent-root.beck-consent-hidden { display: none; }

/* layer */
.beck-consent-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

/* popup card */
.beck-consent-modal{
  position: fixed !important;
  left: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;

  width: min(360px, calc(100% - 32px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  overflow: hidden;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  pointer-events: auto;

  animation: beck-slide-up .22s ease-out;
}

@keyframes beck-slide-up{
  from{ transform: translateY(12px); opacity: 0; }
  to  { transform: translateY(0);   opacity: 1; }
}

/* Header */
.beck-consent-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.beck-consent-title{
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .1px;
}

/* X button - smaller */
.beck-consent-x{
  border: none;
  background: rgba(0,0,0,.08);
  font-size: 14px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
}
.beck-consent-x:hover{ background: rgba(0,0,0,.12); }

/* Body */
.beck-consent-body{
  position: relative; /* watermark anchor */
  padding: 10px 14px 6px;
}

/* watermark BEHIND text (doesn't affect layout) */
.beck-consent-body::before{
  content: "";
  position: absolute;
  inset: 0;                 /* fill body */
  background-image: var(--beck-consent-logo);
  background-repeat: no-repeat;
  background-position: 92% 80%;  /* right-lower, behind text */
  background-size: 140px auto;   /* subtle size */
  opacity: 0.075;                /* more transparent */
  pointer-events: none;
  z-index: 0;
}

/* Keep real content above watermark */
.beck-consent-body > *{
  position: relative;
  z-index: 1;
}

.beck-consent-desc{
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  opacity:.88;
}

.beck-consent-policy{ margin: 0 0 6px; }
.beck-consent-policy a{
  font-size: 12.5px;
  opacity: .86;
  text-decoration: underline;
}

/* Settings */
.beck-consent-details summary{
  cursor: pointer;
  user-select: none;
  font-weight: 750;
  padding: 6px 0;
  font-size: 13px;
}

.beck-consent-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,.07);
}

.beck-consent-label{ font-weight: 750; font-size: 12.5px; }
.beck-consent-sub{ font-size: 11.5px; opacity: .78; margin-top: 3px; }

.beck-pill{
  display:inline-block;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
}

/* Actions: ALWAYS clean layout */
.beck-consent-actions{
  display: grid;
  grid-template-columns: 1fr 1fr; /* reject + save side by side */
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

#beck-accept{
  grid-column: 1 / -1; /* accept full width, separate row */
}

/* micro buttons */
.beck-btn{
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.2;
  width: 100%;
}

.beck-btn-ghost{ background: rgba(0,0,0,.08); }
.beck-btn-ghost:hover{ background: rgba(0,0,0,.14); }

.beck-btn-primary{ background: #111; color: #fff; }
.beck-btn-primary:hover{ filter: brightness(1.05); }

/* Toggle */
.beck-switch{
  position: relative;
  display:inline-block;
  width: 40px;
  height: 22px;
}
.beck-switch input{ display:none; }

.beck-slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background: rgba(0,0,0,.25);
  transition: .18s;
  border-radius: 999px;
}
.beck-slider:before{
  content:"";
  position:absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: white;
  transition: .18s;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.beck-switch input:checked + .beck-slider{ background: #111; }
.beck-switch input:checked + .beck-slider:before{ transform: translateX(18px); }

/* Mobile tweaks */
@media (max-width: 480px){
  .beck-consent-modal{
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto;
  }

  .beck-consent-title{ font-size: 14px; }
  .beck-consent-desc{ font-size: 12px; line-height: 1.45; }

  /* slightly smaller watermark on mobile */
  .beck-consent-body::before{
    background-size: 120px auto;
    opacity: 0.07;
    background-position: 92% 86%;
  }

  .beck-btn{
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 11px;
  }

  .beck-consent-x{
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 13px;
  }
}

/* ===== Beck Consent – Close (X) button refined ===== */

.beck-consent-x{
  background: transparent !important;   /* nincs fekete háttér */
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #111 !important;

  width: 22px !important;
  height: 22px !important;

  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  border-radius: 999px !important;      /* finom kör */
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  opacity: .6;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}

.beck-consent-x:hover{
  opacity: 1;
  background: rgba(0,0,0,.04) !important;
  border-color: rgba(0,0,0,.2) !important;
}

/* Mobilon még diszkrétebb */
@media (max-width: 480px){
  .beck-consent-x{
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
  }
}

/* ===== HARD FIX: theme/pagebuilder overrides against position bugs ===== */

/* semmilyen parent transform ne tudja elvinni */
#beck-consent-root,
#beck-consent-root *{
  transform: none !important;
}

/* modál mindig bal alul, soha nem felül */
.beck-consent-modal{
  position: fixed !important;
  left: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;

  /* soha ne lógjon ki felfelé */
  max-height: calc(100vh - 36px) !important;
  overflow: hidden !important;
}

/* a belső rész görgethető, ha túl magas */
.beck-consent-body{
  max-height: calc(100vh - 160px) !important; /* header+actions helye */
  overflow: auto !important;
}

/* mobilon is fix alul */
@media (max-width: 480px){
  .beck-consent-modal{
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-height: calc(100vh - 24px) !important;
  }
  .beck-consent-body{
    max-height: calc(100vh - 170px) !important;
  }
}

/* biztosan a legfelső rétegen legyen */
.beck-consent-overlay{
  z-index: 2147483647 !important;
}
