:root {
  --dc-consent-indigo-900: #0A0244;
  --dc-consent-indigo-800: #12046B;
  --dc-consent-blue-400: #3D9BFF;
  --dc-consent-acid: #E8FF4D;
  --dc-consent-white: #FFFFFF;
  --dc-consent-muted: #B9C0F5;
  --dc-consent-line: rgba(255, 255, 255, .16);
}

.dc-consent-banner {
  box-sizing: border-box;
  position: fixed;
  inset: auto 20px 20px;
  z-index: 100000;
  width: min(calc(100% - 40px), 1120px);
  max-height: min(82vh, 760px);
  margin-inline: auto;
  padding: 22px 24px;
  overflow-y: auto;
  color: var(--dc-consent-white);
  background: var(--dc-consent-indigo-900);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(10, 2, 68, .28);
  font-family: Archivo, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scrollbar-color: var(--dc-consent-blue-400) transparent;
  -webkit-font-smoothing: antialiased;
}

.dc-consent-banner::selection {
  color: var(--dc-consent-indigo-900);
  background: var(--dc-consent-acid);
}

.dc-consent-banner[data-state="entering"] {
  animation: dc-consent-enter 280ms cubic-bezier(.16, 1, .3, 1) both;
}

.dc-consent-banner[data-state="leaving"] {
  animation: dc-consent-leave 160ms ease-in both;
}

.dc-consent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 32px;
}

.dc-consent-copy,
.dc-consent-settings-header {
  max-width: 70ch;
  min-width: 0;
}

.dc-consent-title {
  margin: 0 0 8px;
  color: var(--dc-consent-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.dc-consent-title:focus {
  outline: none;
}

.dc-consent-description,
.dc-consent-category-description {
  color: var(--dc-consent-muted);
  overflow-wrap: break-word;
}

.dc-consent-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.dc-consent-description a {
  color: var(--dc-consent-white);
  text-decoration-color: var(--dc-consent-blue-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dc-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dc-consent-button {
  appearance: none;
  border: 1px solid transparent;
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .02em;
  cursor: pointer;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.dc-consent-button--secondary {
  color: var(--dc-consent-muted);
  background: transparent;
}

.dc-consent-button--secondary:hover {
  color: var(--dc-consent-white);
}

.dc-consent-button--reject {
  color: var(--dc-consent-white);
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
}

.dc-consent-button--reject:hover {
  border-color: var(--dc-consent-white);
  background: rgba(255, 255, 255, .08);
}

.dc-consent-button--save {
  color: var(--dc-consent-indigo-800);
  background: var(--dc-consent-white);
  border-color: var(--dc-consent-white);
}

.dc-consent-button--save:hover {
  background: #E8E9F7;
  border-color: #E8E9F7;
}

.dc-consent-button--accept {
  color: var(--dc-consent-indigo-800);
  background: var(--dc-consent-acid);
  border-color: var(--dc-consent-acid);
}

.dc-consent-button--accept:hover {
  background: var(--dc-consent-white);
  border-color: var(--dc-consent-white);
}

.dc-consent-settings {
  display: grid;
  gap: 18px;
}

.dc-consent-settings[hidden],
.dc-consent-layout[hidden] {
  display: none;
}

.dc-consent-categories {
  border-block: 1px solid var(--dc-consent-line);
}

.dc-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.dc-consent-category + .dc-consent-category {
  border-top: 1px solid var(--dc-consent-line);
}

.dc-consent-category-copy {
  min-width: 0;
}

.dc-consent-category-title {
  margin: 0 0 3px;
  color: var(--dc-consent-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.dc-consent-category-description {
  max-width: 76ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.dc-consent-required-status {
  color: var(--dc-consent-acid);
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.dc-consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

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

.dc-consent-switch-track {
  position: relative;
  display: block;
  inline-size: 44px;
  block-size: 24px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.dc-consent-switch-track::after {
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  inline-size: 16px;
  block-size: 16px;
  content: '';
  background: var(--dc-consent-white);
  border-radius: 50%;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1), background-color 160ms ease;
}

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

.dc-consent-switch input:checked + .dc-consent-switch-track::after {
  background: var(--dc-consent-indigo-800);
  transform: translateX(20px);
}

.dc-consent-button:focus-visible,
.dc-consent-description a:focus-visible,
.dc-consent-switch input:focus-visible + .dc-consent-switch-track {
  outline: 3px solid var(--dc-consent-acid);
  outline-offset: 3px;
}

@keyframes dc-consent-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dc-consent-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 920px) {
  .dc-consent-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dc-consent-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .dc-consent-banner {
    inset: auto 12px 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }

  .dc-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dc-consent-button {
    min-width: 0;
    white-space: normal;
  }

  .dc-consent-category {
    gap: 14px;
  }

  .dc-consent-category-description {
    font-size: 12px;
  }

  .dc-consent-required-status {
    max-width: 92px;
    text-align: end;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-consent-banner,
  .dc-consent-button,
  .dc-consent-switch-track,
  .dc-consent-switch-track::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .dc-consent-banner,
  .dc-consent-categories,
  .dc-consent-category + .dc-consent-category {
    border-color: CanvasText;
  }

  .dc-consent-switch-track {
    forced-color-adjust: none;
  }
}

@media print {
  .dc-consent-banner {
    display: none !important;
  }
}
