/* Custom cookie consent: glass box */
.lbcc {
  --lbcc-bg: rgba(16, 16, 18, 0.74);
  --lbcc-border: rgba(255, 255, 255, 0.16);
  --lbcc-text: #fff;
  --lbcc-muted: rgba(255, 255, 255, 0.78);
  --lbcc-line: rgba(255, 255, 255, 0.1);
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(420px, calc(100vw - 32px));
  font-family: inherit;
  color: var(--lbcc-text);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lbcc.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lbcc-box {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: var(--lbcc-bg);
  border: 1px solid var(--lbcc-border);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
/* soft light sheen on top edge */
.lbcc-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lbcc-box { background: rgba(22, 22, 24, 0.94); }
}

.lbcc-view { position: relative; }
.lbcc-view[hidden] { display: none; }

.lbcc-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lbcc-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lbcc-muted);
}
.lbcc-link {
  color: var(--lbcc-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lbcc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.lbcc-btn {
  flex: 1 1 auto;
  appearance: none;
  border: 1px solid var(--lbcc-border);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lbcc-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lbcc-text);
}
.lbcc-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.lbcc-btn-solid {
  background: #fff;
  border-color: #fff;
  color: #111;
}
.lbcc-btn-solid:hover { background: rgba(255, 255, 255, 0.86); }
.lbcc-btn:focus-visible,
.lbcc-back:focus-visible,
.lbcc-switch input:focus-visible + .lbcc-slider,
.lbcc-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* preferences view */
.lbcc-prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.lbcc-prefs-head .lbcc-title { margin: 0; }
.lbcc-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--lbcc-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--lbcc-text);
  cursor: pointer;
}
.lbcc-back:hover { background: rgba(255, 255, 255, 0.14); }

.lbcc-options {
  max-height: min(48vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.lbcc-option {
  padding: 14px 0;
  border-bottom: 1px solid var(--lbcc-line);
}
.lbcc-option:last-child { border-bottom: 0; }
.lbcc-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lbcc-option-label {
  font-size: 14px;
  font-weight: 600;
}
.lbcc-option-text {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--lbcc-muted);
}
.lbcc-always {
  font-size: 12px;
  color: var(--lbcc-muted);
}

/* toggle switch */
.lbcc-switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 40px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.lbcc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.lbcc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s ease;
  pointer-events: none;
}
.lbcc-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lbcc-switch input:checked + .lbcc-slider { background: #fff; }
.lbcc-switch input:checked + .lbcc-slider::after {
  transform: translateX(18px);
  background: #111;
}

/* mobile: full-width sheet at the bottom */
@media (max-width: 479px) {
  .lbcc {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .lbcc-box { padding: 18px; border-radius: 18px; }
  .lbcc-main .lbcc-btn-solid { flex-basis: 100%; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .lbcc, .lbcc-slider, .lbcc-slider::after { transition: none; }
}
