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

.dpc-consent {
  --dpc-ink: #202630;
  --dpc-muted: #5e6672;
  --dpc-accent: #b94722;
  --dpc-border: #e3e5e8;
  color: var(--dpc-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

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

.dpc-consent__banner {
  position: fixed;
  z-index: 999999;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  max-height: min(80vh, 560px);
  max-height: min(80dvh, 560px);
  overflow: auto;
  padding: 22px max(24px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border-top: 3px solid var(--dpc-accent);
  background: #fff;
  box-shadow: 0 -8px 36px rgb(21 29 40 / 16%);
}

.dpc-consent__copy {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

.dpc-consent__copy h2 {
  margin: 0 0 7px;
  color: var(--dpc-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.dpc-consent__copy p {
  margin: 0;
  color: var(--dpc-muted);
}

.dpc-consent__copy a {
  color: var(--dpc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dpc-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  min-width: 270px;
}

.dpc-consent__button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--dpc-accent);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dpc-consent__button--primary {
  background: var(--dpc-accent);
  color: #fff;
}

.dpc-consent__button--primary:hover {
  background: #9d391b;
  color: #fff;
}

.dpc-consent__button--secondary {
  background: #fff;
  color: var(--dpc-ink);
}

.dpc-consent__button--secondary:hover {
  background: #f5f5f6;
}

.dpc-consent__button:disabled {
  cursor: wait;
  opacity: .65;
}

.dpc-consent__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--dpc-muted);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.dpc-consent__status {
  margin-top: 8px !important;
  color: #842c18 !important;
  font-size: 13px;
}

.dpc-consent__notice {
  position: fixed;
  z-index: 999998;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(64px + env(safe-area-inset-bottom));
  max-width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--dpc-border);
  border-radius: 6px;
  background: #fff;
  color: var(--dpc-ink);
  box-shadow: 0 4px 18px rgb(21 29 40 / 12%);
  font-size: 12px;
  line-height: 1.35;
}

.dpc-consent__footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dpc-consent__footer-link:hover {
  color: #b94722;
}

.dsp-footer-contact-info .dpc-consent__footer-link {
  align-self: flex-start;
  margin: 0;
}

.dpc-consent :is(button, a):focus-visible {
  outline: 3px solid #1b66d1;
  outline-offset: 3px;
}

.dsp-footer-contact-info .dpc-consent__footer-link:focus-visible {
  outline: 3px solid #1b66d1;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .dpc-consent__banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .dpc-consent__copy h2 {
    padding-right: 24px;
    font-size: 16px;
  }

  .dpc-consent__copy p {
    font-size: 13px;
  }

  .dpc-consent__actions {
    width: 100%;
    min-width: 0;
  }

  .dpc-consent__button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .dpc-consent__notice {
    left: max(12px, env(safe-area-inset-left));
    bottom: calc(60px + env(safe-area-inset-bottom));
    max-width: min(260px, calc(100vw - 24px));
  }
}

@media (max-height: 480px) and (min-width: 761px) {
  .dpc-consent__banner {
    gap: 12px 20px;
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .dpc-consent__copy h2 {
    font-size: 16px;
  }

  .dpc-consent__copy p {
    font-size: 12px;
  }
}
