:root {
  --consent-carbon: #0B0C0D;
  --consent-bone: #F1F0EA;
  --consent-graphite: #252827;
  --consent-acid: #C8FF2E;
  --consent-muted: #A9ADA6;
  --consent-line: rgba(241, 240, 234, .20);
  --consent-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

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

.consent-banner {
  position: fixed;
  z-index: 2147483000;
  left: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  width: min(1180px, calc(100vw - 24px));
  margin-inline: auto;
  padding: clamp(20px, 2.6vw, 34px);
  color: var(--consent-bone);
  background: rgba(11, 12, 13, .98);
  border: 1px solid rgba(241, 240, 234, .16);
  box-shadow: var(--consent-shadow);
  backdrop-filter: blur(16px);
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner__copy {
  max-width: 760px;
}

.consent-kicker {
  margin: 0 0 10px;
  color: var(--consent-muted);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.consent-banner h2,
.consent-dialog h2,
.consent-dialog h3 {
  margin: 0;
  color: var(--consent-bone);
}

.consent-banner h2,
.consent-dialog h2 {
  font: 700 clamp(24px, 3vw, 38px)/1.02 Arial, Helvetica, sans-serif;
  letter-spacing: -.04em;
}

.consent-banner__copy > p:last-child,
.consent-option p,
.consent-legal-note {
  margin: 14px 0 0;
  color: #D2D4CF;
  font: 400 14px/1.55 Arial, Helvetica, sans-serif;
}

.consent-banner__actions,
.consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-banner__actions {
  justify-content: flex-end;
  max-width: 470px;
}

.consent-btn,
.consent-close,
.consent-footer-trigger {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.consent-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(241, 240, 234, .34);
  border-radius: 0;
  font: 800 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.consent-btn--accept {
  color: #050607;
  background: var(--consent-acid);
  border-color: var(--consent-acid);
}

.consent-btn--reject {
  color: var(--consent-bone);
  background: transparent;
  border-color: rgba(241, 240, 234, .48);
}

.consent-btn--settings {
  color: var(--consent-bone);
  background: var(--consent-graphite);
  border-color: var(--consent-graphite);
}

.consent-btn:hover {
  transform: translateY(-1px);
}

.consent-btn--reject:hover,
.consent-btn--settings:hover {
  border-color: var(--consent-acid);
}

.consent-btn:focus-visible,
.consent-close:focus-visible,
.consent-footer-trigger:focus-visible,
.consent-switch input:focus-visible + span {
  outline: 3px solid var(--consent-acid);
  outline-offset: 3px;
}

.consent-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(820px, calc(100vh - 24px));
  margin: auto;
  padding: 0;
  color: var(--consent-bone);
  background: var(--consent-carbon);
  border: 1px solid rgba(241, 240, 234, .18);
  box-shadow: var(--consent-shadow);
}

.consent-dialog::backdrop {
  background: rgba(5, 6, 7, .76);
  backdrop-filter: blur(5px);
}

.consent-dialog__inner {
  padding: clamp(22px, 4vw, 42px);
}

.consent-dialog__head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--consent-line);
}

.consent-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--consent-bone);
  background: transparent;
  border: 1px solid rgba(241, 240, 234, .24);
  font-size: 28px;
  line-height: 1;
}

.consent-options {
  display: grid;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--consent-line);
}

.consent-option h3 {
  font: 700 18px/1.2 Arial, Helvetica, sans-serif;
}

.consent-option p {
  max-width: 580px;
  margin-top: 8px;
}

.consent-switch {
  position: relative;
  display: inline-flex;
}

.consent-switch input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.consent-switch > span:last-child {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  background: #484B49;
  border: 1px solid #6A6E6A;
  transition: background-color .18s ease, border-color .18s ease;
}

.consent-switch > span:last-child::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: var(--consent-bone);
  transition: transform .18s ease, background-color .18s ease;
}

.consent-switch input:checked + span {
  background: var(--consent-acid);
  border-color: var(--consent-acid);
}

.consent-switch input:checked + span::after {
  background: #050607;
  transform: translateX(22px);
}

.consent-switch--locked {
  opacity: .72;
  cursor: not-allowed;
}

.consent-dialog__actions {
  justify-content: flex-end;
  padding-top: 24px;
}

.consent-legal-note {
  font-size: 12px;
  color: #92968F;
}

.consent-footer-trigger {
  display: inline;
  padding: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.consent-footer-trigger:hover {
  color: var(--consent-acid);
}

@media (max-width: 760px) {
  .consent-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .consent-banner__actions,
  .consent-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
  }

  .consent-btn {
    width: 100%;
  }

  .consent-dialog__actions .consent-btn--accept {
    order: -1;
  }
}

@media (max-width: 520px) {
  .consent-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto;
  }

  .consent-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .consent-option {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-btn,
  .consent-switch > span:last-child,
  .consent-switch > span:last-child::after {
    transition: none;
  }
}

.consent-root .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
