.dkp-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 1200;
  display: none;
  pointer-events: none;
}

.dkp-consent[data-open="true"] {
  display: block;
}

.dkp-consent-card {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  color: #102e46;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(16, 46, 70, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(16, 46, 70, 0.2);
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.dkp-consent-copy {
  min-width: 0;
}

.dkp-consent-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: #2f8f6b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dkp-consent h2 {
  margin: 0;
  color: #102e46;
  font-size: 20px;
  line-height: 1.16;
}

.dkp-consent p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #37566d;
  font-size: 14px;
  line-height: 1.45;
}

.dkp-consent-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  min-width: 190px;
}

.dkp-consent-btn,
.dkp-consent-link {
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dkp-consent-btn {
  border: 1px solid rgba(16, 46, 70, 0.16);
  background: #ffffff;
  color: #102e46;
  padding: 10px 14px;
}

.dkp-consent-btn.is-primary {
  border-color: #fd3612;
  background: #fd3612;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(253, 54, 18, 0.18);
}

.dkp-consent-link {
  border: 0;
  background: transparent;
  color: #102e46;
  padding: 8px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dkp-consent-btn:focus-visible,
.dkp-consent-link:focus-visible,
.dkp-consent-category input:focus-visible + i,
.footer-link-button:focus-visible {
  outline: 3px solid rgba(126, 208, 245, 0.7);
  outline-offset: 2px;
}

.dkp-consent-details {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.dkp-consent-details[hidden] {
  display: none;
}

.dkp-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(16, 46, 70, 0.12);
  border-radius: 8px;
  background: #f7fafc;
}

.dkp-consent-category strong,
.dkp-consent-category small {
  display: block;
}

.dkp-consent-category strong {
  color: #102e46;
  font-size: 14px;
}

.dkp-consent-category small {
  margin-top: 3px;
  color: #506b7d;
  font-size: 13px;
  line-height: 1.35;
}

.dkp-consent-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dkp-consent-category i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd7df;
  transition: background 0.18s ease;
}

.dkp-consent-category i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(16, 46, 70, 0.22);
  transition: transform 0.18s ease;
}

.dkp-consent-category input:checked + i {
  background: #2f8f6b;
}

.dkp-consent-category input:checked + i::after {
  transform: translateX(20px);
}

.dkp-consent-category input:disabled + i {
  background: #102e46;
}

.dkp-consent-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.dkp-consent-detail-actions a {
  color: #102e46;
  font-size: 14px;
  font-weight: 700;
}

.footer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.footer-link-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .dkp-consent {
    inset: auto 0 0 0;
  }

  .dkp-consent-card {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -18px 60px rgba(16, 46, 70, 0.22);
  }

  .dkp-consent h2 {
    font-size: 18px;
  }

  .dkp-consent p {
    margin-top: 6px;
    font-size: 13px;
  }

  .dkp-consent-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .dkp-consent-actions .is-primary {
    grid-column: auto;
  }

  .dkp-consent-link {
    grid-column: 1 / -1;
    min-height: 34px;
  }

  .dkp-consent-category {
    padding: 10px;
  }
}
