:root {
  --dpc-blue: #063a78;
  --dpc-blue-dark: #032d61;
  --dpc-sky: #21a8df;
  --dpc-text: #102d52;
  --dpc-line: #d7e2ef;
  --dpc-soft: #f3f8fd;
  --dpc-white: #fff;
}

.dpc-banner[hidden],
.dpc-modal-backdrop[hidden],
.dpc-media-placeholder[hidden] {
  display: none !important;
}

.dpc-banner {
  position: fixed;
  z-index: 100000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(3, 45, 97, 0.98);
  color: var(--dpc-white);
  box-shadow: 0 -12px 36px rgba(3, 45, 97, 0.24);
  backdrop-filter: blur(10px);
}

.dpc-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.dpc-banner-copy h2,
.dpc-modal h2,
.dpc-category h3 {
  letter-spacing: 0;
}

.dpc-banner-copy h2 {
  margin: 0 0 6px;
  color: var(--dpc-white);
  font-size: 20px;
  line-height: 1.3;
}

.dpc-banner-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.55;
}

.dpc-banner-copy a {
  color: var(--dpc-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dpc-banner-actions,
.dpc-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dpc-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.dpc-button:focus-visible,
.dpc-settings-trigger:focus-visible,
.dpc-modal-close:focus-visible,
.dpc-switch input:focus-visible + span {
  outline: 3px solid var(--dpc-sky);
  outline-offset: 3px;
}

.dpc-button-primary {
  border-color: var(--dpc-sky);
  background: var(--dpc-sky);
  color: var(--dpc-blue-dark);
}

.dpc-button-outline {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--dpc-white);
}

.dpc-button-text {
  border-color: transparent;
  background: transparent;
  color: var(--dpc-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dpc-settings-trigger {
  position: fixed;
  z-index: 99990;
  bottom: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  align-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--dpc-line);
  border-radius: 50%;
  background: var(--dpc-white);
  color: var(--dpc-blue);
  box-shadow: 0 8px 24px rgba(3, 45, 97, 0.14);
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dpc-settings-trigger:hover {
  background: var(--dpc-blue);
  color: var(--dpc-white);
  transform: translateY(-2px);
}

.dpc-settings-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dpc-banner:not([hidden]) ~ .dpc-settings-trigger {
  display: none;
}

.dpc-modal-backdrop {
  position: fixed;
  z-index: 100010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 26, 55, 0.64);
}

.dpc-modal {
  position: relative;
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 34px;
  border-radius: 6px;
  background: var(--dpc-white);
  color: var(--dpc-text);
  box-shadow: 0 24px 70px rgba(0, 21, 48, 0.3);
}

.dpc-modal h2 {
  margin: 0 0 12px;
  color: var(--dpc-blue-dark);
  font-size: 30px;
}

.dpc-modal > p:not(.dpc-eyebrow) {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
}

.dpc-eyebrow {
  margin: 0 0 8px;
  color: var(--dpc-sky);
  font-size: 12px;
  font-weight: 800;
}

.dpc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dpc-blue);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

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

.dpc-category h3 {
  margin: 0 0 6px;
  color: var(--dpc-blue);
  font-size: 17px;
}

.dpc-category p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.dpc-switch {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 108px;
  cursor: pointer;
}

.dpc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dpc-switch span {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: #b9c7d7;
  transition: background 160ms ease;
}

.dpc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dpc-white);
  box-shadow: 0 2px 6px rgba(3, 45, 97, 0.24);
  transition: transform 160ms ease;
}

.dpc-switch input:checked + span {
  background: var(--dpc-sky);
}

.dpc-switch input:checked + span::after {
  transform: translateX(22px);
}

.dpc-switch b {
  font-size: 11px;
  white-space: nowrap;
}

.dpc-modal-actions {
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--dpc-line);
}

.dpc-modal-actions a {
  color: var(--dpc-blue);
  font-size: 13px;
  font-weight: 700;
}

.dpc-modal-open {
  overflow: hidden;
}

.dpc-media-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 36px;
  border: 1px solid var(--dpc-line);
  border-radius: 6px;
  background: var(--dpc-soft);
  color: var(--dpc-text);
  text-align: center;
}

.dpc-media-placeholder strong {
  color: var(--dpc-blue-dark);
  font-size: 22px;
}

.dpc-media-placeholder p {
  max-width: 460px;
  margin: 8px 0 20px;
}

.dpc-media-icon {
  color: var(--dpc-sky);
  font-size: 48px;
  line-height: 1;
}

.dpc-consent-iframe {
  display: none !important;
}

.dpc-consent-iframe.is-loaded {
  display: block !important;
}

@media (max-width: 760px) {
  .dpc-settings-trigger {
    bottom: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
  }

  .dpc-banner {
    padding: 18px 16px;
  }

  .dpc-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dpc-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dpc-banner-actions .dpc-button-text {
    grid-column: 1 / -1;
  }

  .dpc-modal-backdrop {
    padding: 12px;
  }

  .dpc-modal {
    max-height: calc(100vh - 24px);
    padding: 28px 20px 22px;
  }

  .dpc-category {
    grid-template-columns: 1fr;
  }

  .dpc-switch {
    justify-items: start;
  }

  .dpc-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dpc-modal-actions .dpc-button {
    width: 100%;
  }

  .dpc-media-placeholder {
    min-height: 340px;
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dpc-button,
  .dpc-switch span,
  .dpc-switch span::after {
    transition: none;
  }
}
