.cb-consent-open {
  overflow: hidden !important;
}

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

.cb-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(3, 6, 10, 0.88);
  color: #f1f4f7;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cb-consent-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #37424e;
  border-radius: 18px;
  background: linear-gradient(180deg, #18212b 0%, #111820 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.cb-consent-kicker,
.cb-consent-version {
  display: block;
  color: #f5b400;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cb-consent-dialog h1 {
  margin: 8px 0 10px;
  color: #fff;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.cb-consent-dialog > p {
  color: #c6d0da;
  line-height: 1.6;
}

.cb-consent-choice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #3a4652;
  border-radius: 12px;
  background: #0d1319;
}

.cb-consent-choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #f5b400;
  cursor: pointer;
}

.cb-consent-choice label {
  color: #edf1f5;
  font-size: 0.94rem;
  line-height: 1.55;
  cursor: pointer;
}

.cb-consent-choice a {
  color: #ffd45a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cb-consent-storage {
  margin: 16px 0 0;
  color: #9eabb7 !important;
  font-size: 0.78rem;
}

.cb-consent-action {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 3px solid #f5b400;
  color: #dfe5eb !important;
  font-size: 0.86rem;
}

.cb-consent-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.cb-consent-exit {
  color: #c4ced7;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cb-consent-submit {
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  background: #f5b400;
  color: #090c10;
  font: 800 0.9rem/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.cb-consent-submit:disabled {
  background: #66717c;
  color: #d3d8dd;
  cursor: not-allowed;
  opacity: 0.72;
}

.cb-consent-backdrop a:focus-visible,
.cb-consent-backdrop button:focus-visible,
.cb-consent-backdrop input:focus-visible {
  outline: 3px solid #73c9ff;
  outline-offset: 3px;
}

.cb-consent-version {
  margin-top: 18px;
  color: #8e9aa6;
  font-size: 0.62rem;
}

@media (max-width: 560px) {
  .cb-consent-backdrop {
    align-items: start;
    padding: 10px;
  }

  .cb-consent-dialog {
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 14px;
  }

  .cb-consent-choice {
    padding: 14px 12px;
  }

  .cb-consent-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .cb-consent-exit,
  .cb-consent-submit {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-consent-backdrop * {
    scroll-behavior: auto !important;
  }
}
