/* Beck Cookie Consent - optimized compact bottom-left */

#beck-consent-root.beck-consent-hidden {
  display: none;
}

.beck-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  pointer-events: none;
}

.beck-consent-modal {
  position: fixed !important;
  left: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;

  width: min(360px, calc(100% - 32px));
  max-height: calc(100vh - 36px) !important;

  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;
}

/* Csak akkor animál, ha a user engedi. PageSpeed + accessibility barátabb. */
@media (prefers-reduced-motion: no-preference) {
  .beck-consent-modal {
    animation: beck-slide-up .22s ease-out;
  }

  @keyframes beck-slide-up {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

.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;
}

.beck-consent-x {
  background: transparent !important;
  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;
  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;
}

.beck-consent-body {
  position: relative;
  padding: 10px 14px 6px;
  max-height: calc(100vh - 160px) !important;
  overflow: auto !important;
}

.beck-consent-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--beck-consent-logo, none);
  background-repeat: no-repeat;
  background-position: 92% 80%;
  background-size: 140px auto;
  opacity: .075;
  pointer-events: none;
  z-index: 0;
}

.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;
}

.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);
}

.beck-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

#beck-accept {
  grid-column: 1 / -1;
}

.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);
}

.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: #fff;
  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);
}

@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;
  }

  .beck-consent-title {
    font-size: 14px;
  }

  .beck-consent-desc {
    font-size: 12px;
    line-height: 1.45;
  }

  .beck-consent-body::before {
    background-size: 120px auto;
    opacity: .07;
    background-position: 92% 86%;
  }

  .beck-btn {
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 11px;
  }

  .beck-consent-x {
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
  }
}
