.dwp-consent {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 44rem;
  margin: 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 36px rgb(15 23 42 / 0.22);
  font: 400 1rem/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dwp-consent[hidden],
.dwp-consent__view[hidden] {
  display: none;
}

.dwp-consent__dialog {
  padding: 1.25rem;
}

.dwp-consent h2 {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.dwp-consent p {
  margin: 0;
}

.dwp-consent a,
.dwp-consent__text-button {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dwp-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 1rem;
}

.dwp-consent button {
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.dwp-consent__choice {
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  padding: 0.625rem 0.875rem;
}

.dwp-consent__secondary,
.dwp-consent__text-button {
  border: 1px solid #94a3b8;
  background: #fff;
  color: #0f172a;
  padding: 0.625rem 0.875rem;
}

.dwp-consent__secondary {
  grid-column: 1 / -1;
}

.dwp-consent__text-button {
  border: 0;
  padding: 0;
}

.dwp-consent__preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.dwp-consent__preference small {
  display: block;
  color: #475569;
}

.dwp-consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #1d4ed8;
}

.dwp-consent button:focus-visible,
.dwp-consent a:focus-visible,
.seo-footer__link-button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.dwp-consent__gpc {
  margin-top: 0.75rem !important;
  color: #475569;
  font-size: 0.875rem;
}

.seo-footer__link-button {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .dwp-consent {
    right: 0;
    bottom: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .dwp-consent__actions {
    grid-template-columns: 1fr;
  }

  .dwp-consent__secondary {
    grid-column: auto;
  }
}
