.dn-consent-banner,
.dn-consent-banner__overlay,
.dn-consent-modal,
.dn-consent-modal__overlay {
  box-sizing: border-box;
}

.dn-consent-banner *,
.dn-consent-modal * {
  box-sizing: border-box;
}

.dn-consent-banner[hidden],
.dn-consent-banner__overlay[hidden],
.dn-consent-modal[hidden],
.dn-consent-modal__overlay[hidden] {
  display: none !important;
}

/* ================================
   BANNER OVERLAY
================================ */

.dn-consent-banner__overlay {
  position: fixed;
  inset: 0;
  z-index: 999997;
  background: rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

/* ================================
   MAIN BANNER
================================ */

.dn-consent-banner {
  position: fixed;
  z-index: 999998;
  font-family: inherit;
  color: var(--dn-consent-text-color, #172033);
}

.dn-consent-banner--bottom_right {
  right: 24px;
  bottom: 24px;
  width: min(460px, calc(100vw - 32px));
}

.dn-consent-banner--bottom_bar {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.dn-consent-banner--center_modal {
  top: 50%;
  left: 50%;
  width: min(540px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
}

.dn-consent-banner__content {
  position: relative;
  background: var(--dn-consent-banner-bg, #ffffff);
  border: 1px solid var(--dn-consent-border-color, rgba(226, 232, 240, 0.9));
  border-radius: var(--dn-consent-banner-radius, 22px);
  box-shadow:
    0 16px 50px rgba(15, 23, 42, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.06);
  padding: 22px;
  overflow: hidden;
}

.dn-consent-banner--bottom_bar .dn-consent-banner__content {
  border-radius: var(--dn-consent-banner-radius, 20px) var(--dn-consent-banner-radius, 20px) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.dn-consent-banner__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--dn-consent-title-color, #0f172a);
}

.dn-consent-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dn-consent-text-color, #475569);
}

.dn-consent-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.dn-consent-link,
.dn-consent-banner__links a,
.dn-consent-modal__links a,
.dn-consent-privacy-links a {
  color: var(--dn-consent-link-color, #2563eb);
  text-decoration: none;
  font-size: 13px;
}

.dn-consent-link:hover,
.dn-consent-banner__links a:hover,
.dn-consent-modal__links a:hover,
.dn-consent-privacy-links a:hover {
  text-decoration: underline;
}

.dn-consent-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dn-consent-banner--bottom_bar .dn-consent-banner__actions {
  margin-top: 0;
  flex-shrink: 0;
  justify-content: flex-end;
}

.dn-consent-branding {
  margin: 16px 2px 0;
  padding-top: 2px;
  text-align: right;
  font-size: 11px;
  line-height: 1.4;
}

.dn-consent-banner--bottom_bar .dn-consent-branding {
  flex: 0 0 100%;
  margin: 2px 2px 0;
}

.dn-consent-branding a {
  color: var(--dn-consent-text-color, #475569);
  text-decoration: none;
  opacity: 0.78;
}

.dn-consent-branding a:hover,
.dn-consent-branding a:focus-visible {
  text-decoration: underline;
  opacity: 1;
}

.dn-consent-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

/* ================================
   BUTTONS
================================ */

.dn-consent-btn {
  appearance: none;
  border: 0;
  border-radius: var(--dn-consent-button-radius, 999px);
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dn-consent-btn--primary {
  color: var(--dn-consent-primary-text, #ffffff);
  background: var(--dn-consent-primary-bg, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.dn-consent-btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.dn-consent-btn--secondary {
  color: var(--dn-consent-secondary-text, #1e293b);
  background: var(--dn-consent-secondary-bg, #f1f5f9);
  border: 1px solid var(--dn-consent-border-color, #e2e8f0);
}

.dn-consent-btn--secondary:hover {
  background: var(--dn-consent-secondary-bg, #eaf0f8);
  filter: brightness(0.96);
}

.dn-consent-btn--link {
  color: var(--dn-consent-link-color, #2563eb);
  background: transparent;
  padding-left: 8px;
  padding-right: 8px;
}

.dn-consent-btn--link:hover {
  text-decoration: underline;
}

/* ================================
   MODAL OVERLAY
================================ */

.dn-consent-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ================================
   COMPACT COOKIE PREFERENCES MODAL
================================ */

.dn-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: inherit;
  color: #172033;
}

.dn-consent-modal__box {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dn-consent-modal__header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 13px;
  border-bottom: 1px solid #eef2f7;
}

.dn-consent-modal__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.dn-consent-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #475569;
}

.dn-consent-modal__close:hover {
  background: #e2e8f0;
}

.dn-consent-modal__body {
  padding: 15px 22px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.dn-consent-modal__body::-webkit-scrollbar {
  width: 8px;
}

.dn-consent-modal__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.dn-consent-modal__body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.dn-consent-modal__body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dn-consent-modal__intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

/* ================================
   CONSENT CATEGORIES
================================ */

.dn-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
  align-items: start;
}

.dn-consent-category__title {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.dn-consent-category__description {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: #64748b;
}

.dn-consent-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid var(--dn-consent-badge-border, #bfdbfe);
  border-radius: var(--dn-consent-badge-radius, 999px);
  background: var(--dn-consent-badge-bg, #eff6ff);
  color: var(--dn-consent-badge-text, #2563eb);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  vertical-align: middle;
}

/* ================================
   TOGGLES
================================ */

.dn-consent-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  margin-top: 1px;
}

.dn-consent-toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dn-consent-toggle__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s ease;
}

.dn-consent-toggle__slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.dn-consent-toggle__input:checked + .dn-consent-toggle__slider {
  background: #2563eb;
}

.dn-consent-toggle__input:checked + .dn-consent-toggle__slider::before {
  transform: translateX(20px);
}

.dn-consent-toggle__input:focus-visible + .dn-consent-toggle__slider {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.dn-consent-toggle--locked .dn-consent-toggle__slider,
.dn-consent-toggle--locked .dn-consent-toggle__input:checked + .dn-consent-toggle__slider {
  background: #16a34a;
  cursor: not-allowed;
}

.dn-consent-toggle--locked .dn-consent-toggle__input:checked + .dn-consent-toggle__slider::before {
  transform: translateX(20px);
}

/* ================================
   MODAL LINKS & FOOTER
================================ */

.dn-consent-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 0 2px;
}

.dn-consent-modal__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #eef2f7;
  background: #ffffff;
}

/* ================================
   COOKIE TABLE
================================ */

.dn-consent-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.dn-consent-cookie-table th,
.dn-consent-cookie-table td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.dn-consent-cookie-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.dn-consent-privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dn-consent-gpc-notice {
  margin: 8px 0 0;
  color: #8a4b08;
  font-size: 12px;
  font-weight: 600;
}

.dn-consent-revisit {
  position: fixed;
  z-index: 999996;
  bottom: 18px;
  border: 1px solid var(--dn-consent-border-color, #d6dce5);
  border-radius: var(--dn-consent-button-radius, 999px);
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dn-consent-revisit-bg, var(--dn-consent-banner-bg, #ffffff));
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.14);
  color: var(--dn-consent-revisit-color, var(--dn-consent-title-color, #0f172a));
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.dn-consent-revisit--icon_only {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.dn-consent-revisit--icon_only .dn-consent-revisit__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dn-consent-revisit__icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.dn-consent-revisit__icon--cookie {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5h.01M16 15.5h.01M12 12h.01M11 17h.01M7 14h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5h.01M16 15.5h.01M12 12h.01M11 17h.01M7 14h.01'/%3E%3C/svg%3E");
}

.dn-consent-revisit__icon--shield {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3Z'/%3E%3C/svg%3E");
}

.dn-consent-revisit__icon--settings {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.83 2.83-.06-.06a1.7 1.7 0 0 0-1.88-.34 1.7 1.7 0 0 0-1.03 1.56V21h-4v-.08A1.7 1.7 0 0 0 8.97 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.56-1.03H3v-4h.08A1.7 1.7 0 0 0 4.6 8.94a1.7 1.7 0 0 0-.34-1.88L4.2 7l2.83-2.83.06.06a1.7 1.7 0 0 0 1.88.34A1.7 1.7 0 0 0 10 3.01V3h4v.08a1.7 1.7 0 0 0 1.03 1.56 1.7 1.7 0 0 0 1.88-.34l.06-.06L19.8 7l-.06.06a1.7 1.7 0 0 0-.34 1.88 1.7 1.7 0 0 0 1.56 1.03H21v4h-.08A1.7 1.7 0 0 0 19.4 15Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.83 2.83-.06-.06a1.7 1.7 0 0 0-1.88-.34 1.7 1.7 0 0 0-1.03 1.56V21h-4v-.08A1.7 1.7 0 0 0 8.97 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.56-1.03H3v-4h.08A1.7 1.7 0 0 0 4.6 8.94a1.7 1.7 0 0 0-.34-1.88L4.2 7l2.83-2.83.06.06a1.7 1.7 0 0 0 1.88.34A1.7 1.7 0 0 0 10 3.01V3h4v.08a1.7 1.7 0 0 0 1.03 1.56 1.7 1.7 0 0 0 1.88-.34l.06-.06L19.8 7l-.06.06a1.7 1.7 0 0 0-.34 1.88 1.7 1.7 0 0 0 1.56 1.03H21v4h-.08A1.7 1.7 0 0 0 19.4 15Z'/%3E%3C/svg%3E");
}

.dn-consent-revisit__icon--custom {
  mask-image: var(--dn-consent-revisit-custom-icon);
  -webkit-mask-image: var(--dn-consent-revisit-custom-icon);
}

.dn-consent-revisit--bottom_left {
  left: 18px;
}

.dn-consent-revisit--bottom_right {
  right: 18px;
}

.dn-consent-content-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  min-height: 220px;
  max-width: 100%;
  padding: 24px;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  background: #f6f7f9;
  color: #334155;
  text-align: center;
}

.dn-consent-content-placeholder > span {
  color: #64748b;
  font-size: 13px;
}

.dn-consent-content-placeholder .dn-consent-btn {
  margin-top: 3px;
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {
  .dn-consent-banner--mobile-bottom_right {
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    width: auto;
    transform: none;
  }

  .dn-consent-banner--mobile-bottom_bar {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    transform: none;
  }

  .dn-consent-banner--mobile-center_modal {
    top: 50%;
    left: 16px;
    right: 16px;
    bottom: auto;
    width: auto;
    transform: translateY(-50%);
  }

  .dn-consent-banner--mobile-bottom_bar .dn-consent-banner__content {
    display: block;
    max-width: none;
    border-radius: var(--dn-consent-banner-radius, 20px) var(--dn-consent-banner-radius, 20px) 0 0;
  }

  .dn-consent-banner--mobile-bottom_right .dn-consent-banner__content,
  .dn-consent-banner--mobile-center_modal .dn-consent-banner__content {
    display: block;
    border-radius: var(--dn-consent-banner-radius, 22px);
  }

  .dn-consent-banner__actions,
  .dn-consent-banner--mobile-bottom_bar .dn-consent-banner__actions,
  .dn-consent-banner--mobile-bottom_right .dn-consent-banner__actions,
  .dn-consent-banner--mobile-center_modal .dn-consent-banner__actions {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 16px;
  }

  .dn-consent-btn {
    width: 100%;
  }

  .dn-consent-modal {
    padding: 14px;
    align-items: flex-end;
  }

  .dn-consent-modal__box {
    max-height: calc(100vh - 28px);
    border-radius: 22px;
  }

  .dn-consent-category {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0;
  }

  .dn-consent-modal__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ================================
   ADMIN BANNER PREVIEW
================================ */

.dn-consent-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px 18px;
  max-width: 820px;
  align-items: start;
}

.dn-consent-design-grid--compact {
  grid-template-columns: repeat(2, minmax(180px, 220px));
}

.dn-consent-device-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  gap: 16px;
}

.dn-consent-device-position-grid label,
.dn-consent-device-position-grid strong {
  display: block;
}

.dn-consent-device-position-grid select {
  width: 100%;
  margin-top: 7px;
}

.dn-consent-design-field {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: 0 !important;
  font-weight: 600;
  line-height: 1.35;
}

.dn-consent-design-field span {
  color: #1d2327;
  min-height: 36px;
}

.dn-consent-design-field input[type="color"] {
  width: 100%;
  max-width: 150px;
  height: 38px;
  padding: 3px;
}

.dn-consent-design-field input[type="number"] {
  width: 100%;
  max-width: 180px;
}

.dn-consent-preview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  max-width: 1100px;
}

.dn-consent-preview-heading h2 {
  margin-bottom: 4px;
}

.dn-consent-preview-actions,
.dn-consent-preview-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dn-consent-preview-tabs .dashicons {
  width: 16px;
  height: 16px;
  margin: 3px 3px 0 0;
  font-size: 16px;
}

.dn-consent-accessibility-check {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(380px, 1.3fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #ffffff;
}

.dn-consent-accessibility-check h2,
.dn-consent-accessibility-check p {
  margin-top: 0;
}

.dn-consent-accessibility-check ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
}

.dn-consent-accessibility-check li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #dcdcde;
  border-radius: 5px;
}

.dn-consent-accessibility-check .dn-a11y-pass strong {
  color: #006b36;
}

.dn-consent-accessibility-check .dn-a11y-fail strong {
  color: #9a3412;
}

.dn-consent-preview-stage {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #dcdcde;
  border-radius: 14px;
  margin: 12px 0 24px;
  padding: 20px;
}

.dn-consent-preview-stage--desktop {
  max-width: 1100px;
}

.dn-consent-preview-stage--mobile {
  width: min(390px, calc(100% - 24px));
  min-height: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
}

.dn-consent-preview-stage--mobile .dn-consent-preview-site {
  inset: 12px;
}

.dn-consent-preview-site {
  position: absolute;
  inset: 20px;
  z-index: 0;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

.dn-consent-preview-iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  pointer-events: none;
}

.dn-consent-preview-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dn-consent-preview-browserbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
}

.dn-consent-preview-browserbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dn-consent-preview-browserbar strong {
  margin-left: 8px;
  font-weight: 500;
}

.dn-consent-preview-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 54px;
  padding: 0 32px;
  border-bottom: 1px solid #edf2f7;
  color: #475569;
}

.dn-consent-preview-nav strong {
  margin-right: auto;
  color: #111827;
  font-size: 17px;
}

.dn-consent-preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  gap: 28px;
  padding: 34px 42px 22px;
  align-items: center;
}

.dn-consent-preview-hero div span,
.dn-consent-preview-hero div strong,
.dn-consent-preview-hero div em {
  display: block;
  border-radius: 999px;
  background: #e2e8f0;
}

.dn-consent-preview-hero div span {
  width: 120px;
  height: 12px;
  margin-bottom: 16px;
  background: #bfdbfe;
}

.dn-consent-preview-hero div strong {
  width: 82%;
  height: 32px;
  margin-bottom: 12px;
  background: #cbd5e1;
}

.dn-consent-preview-hero div em {
  width: 64%;
  height: 14px;
}

.dn-consent-preview-hero figure {
  min-height: 118px;
  margin: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12)),
    #f1f5f9;
}

.dn-consent-preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 8px 42px;
}

.dn-consent-preview-cards span {
  min-height: 92px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(#ffffff, #f8fafc);
}

.dn-consent-preview-stage .dn-consent-preview-banner {
  position: absolute !important;
  display: block !important;
  z-index: 1 !important;
  font-family: inherit;
  color: var(--dn-consent-text-color, #172033);
}

.dn-consent-preview-stage .dn-consent-banner--bottom_right {
  right: 24px !important;
  bottom: 24px !important;
  top: auto !important;
  left: auto !important;
  width: min(420px, calc(100% - 48px)) !important;
  transform: none !important;
}

.dn-consent-preview-stage .dn-consent-banner--bottom_bar {
  left: 24px !important;
  right: 24px !important;
  bottom: 24px !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
}

.dn-consent-preview-stage .dn-consent-banner--bottom_bar .dn-consent-banner__content {
  max-width: none;
  margin: 0;
  border-radius: var(--dn-consent-banner-radius, 20px);
}

.dn-consent-preview-stage .dn-consent-banner--center_modal {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(460px, calc(100% - 48px)) !important;
  transform: translate(-50%, -50%) !important;
}

.dn-consent-preview-stage .dn-consent-banner__content {
  background: var(--dn-consent-banner-bg, #ffffff);
}

.dn-consent-preview-stage--mobile .dn-consent-preview-banner.dn-consent-banner--bottom_right {
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
}

.dn-consent-preview-stage--mobile .dn-consent-preview-banner.dn-consent-banner--bottom_bar {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
}

.dn-consent-preview-stage--mobile .dn-consent-preview-banner.dn-consent-banner--center_modal {
  top: 50% !important;
  left: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  width: auto !important;
  transform: translateY(-50%) !important;
}

.dn-consent-preview-stage--mobile .dn-consent-banner__content,
.dn-consent-preview-stage--mobile .dn-consent-banner--bottom_bar .dn-consent-banner__content {
  display: block;
  padding: 18px;
}

.dn-consent-preview-stage--mobile .dn-consent-banner__actions,
.dn-consent-preview-stage--mobile .dn-consent-banner--bottom_bar .dn-consent-banner__actions {
  flex-direction: column-reverse;
  margin-top: 16px;
}

.dn-consent-preview-stage--mobile .dn-consent-btn {
  width: 100%;
}

@media (max-width: 768px) {
  .dn-consent-design-grid,
  .dn-consent-design-grid--compact {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .dn-consent-preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dn-consent-preview-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dn-consent-preview-stage {
    min-height: 420px;
  }

  .dn-consent-preview-nav {
    padding: 0 18px;
  }

  .dn-consent-preview-nav span {
    display: none;
  }

  .dn-consent-preview-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 22px 14px;
  }

  .dn-consent-preview-hero figure {
    display: none;
  }

  .dn-consent-preview-cards {
    grid-template-columns: 1fr;
    padding: 8px 22px;
  }

  .dn-consent-preview-stage .dn-consent-banner--bottom_right,
  .dn-consent-preview-stage .dn-consent-banner--center_modal {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    width: auto !important;
    transform: none !important;
  }

  .dn-consent-preview-stage .dn-consent-banner--bottom_bar {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
  }
}

@media (max-width: 520px) {
  .dn-consent-design-grid,
  .dn-consent-design-grid--compact,
  .dn-consent-device-position-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dn-consent-help-tip {
  position: relative;
  display: inline-block;
  margin-left: 3px;
  vertical-align: middle;
}

.dn-consent-help-tip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2271b1;
  cursor: help;
}

.dn-consent-help-tip__button .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.dn-consent-help-tip__button:focus {
  border-radius: 3px;
  box-shadow: 0 0 0 2px #2271b1;
  outline: 0;
}

.dn-consent-help-tip__content {
  position: absolute;
  z-index: 10000;
  top: calc(100% + 7px);
  left: 50%;
  display: none !important;
  width: 250px;
  padding: 10px 12px;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  color: #1d2327 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45;
  text-align: left;
  transform: translateX(-50%);
}

.dn-consent-help-tip:hover .dn-consent-help-tip__content,
.dn-consent-help-tip:focus-within .dn-consent-help-tip__content {
  display: block !important;
}

.dn-consent-help-tip__content a {
  white-space: nowrap;
}

.dn-consent-dashboard-metrics,
.dn-consent-insights-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: 18px 0;
}

.dn-consent-insights-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dn-consent-dashboard-metrics > div,
.dn-consent-insights-metrics > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #ffffff;
}

.dn-consent-dashboard-metrics span,
.dn-consent-dashboard-metrics strong,
.dn-consent-dashboard-metrics small,
.dn-consent-insights-metrics span,
.dn-consent-insights-metrics strong,
.dn-consent-insights-metrics small {
  display: block;
  overflow-wrap: anywhere;
}

.dn-consent-dashboard-metrics span,
.dn-consent-insights-metrics span {
  color: #50575e;
  font-size: 12px;
  font-weight: 600;
}

.dn-consent-dashboard-metrics strong,
.dn-consent-insights-metrics strong {
  margin-top: 5px;
  color: #1d2327;
  font-size: 18px;
  line-height: 1.25;
}

.dn-consent-dashboard-metrics small,
.dn-consent-insights-metrics small {
  margin-top: 4px;
  color: #646970;
  font-size: 11px;
}

.dn-consent-scan-scope {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #f6f7f7;
}

.dn-consent-scan-scope select,
.dn-consent-scan-scope textarea {
  width: 100%;
}

.dn-consent-scan-target-report {
  max-width: 1100px;
  margin: 10px 0 18px;
  padding: 12px 14px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #ffffff;
}

.dn-consent-scan-target-report summary {
  cursor: pointer;
  font-weight: 600;
}

.dn-consent-scan-target-report code {
  overflow-wrap: anywhere;
}

.dn-consent-rule-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 1100px;
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-left: 4px solid #2271b1;
  background: #f0f6fc;
}

.dn-consent-profile {
  max-width: 1100px;
  margin: 16px 0;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #ffffff;
}

.dn-consent-profile > summary {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style-position: inside;
}

.dn-consent-profile[open] > summary {
  border-bottom: 1px solid #dcdcde;
}

.dn-consent-profile > summary span {
  color: #646970;
  font-size: 12px;
  font-weight: 600;
}

.dn-consent-profile--default {
  border-left: 4px solid #2271b1;
}

.dn-consent-profile__body > p {
  margin: 0;
  padding: 16px;
}

.dn-consent-profile label,
.dn-consent-profile label span,
.dn-consent-profile label small {
  display: block;
}

.dn-consent-profile label span {
  margin-bottom: 4px;
  font-weight: 600;
}

.dn-consent-profile label small {
  margin-top: 4px;
  color: #646970;
  font-weight: 400;
}

.dn-consent-profile input[type="text"],
.dn-consent-profile input[type="number"],
.dn-consent-profile select,
.dn-consent-profile textarea {
  width: 100%;
}

.dn-consent-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 16px 16px;
}

.dn-consent-profile__section-heading {
  margin: 4px 16px 0;
  padding-top: 14px;
  border-top: 1px solid #dcdcde;
}

.dn-consent-inline-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  font-weight: 400 !important;
  margin-left: 15px;
}

.dn-consent-profile__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}

.dn-consent-profile__actions .button-link-delete {
  margin-left: auto;
}

.dn-consent-profile-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 1100px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: #ffffff;
}

.dn-consent-profile-selector select {
  min-width: 240px;
}

.dn-consent-profile-preview {
  max-width: 720px;
  margin: 18px 0;
  padding: 22px;
  border: 1px solid;
}

.dn-consent-profile-preview h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dn-consent-profile-preview p {
  margin: 0 0 18px;
}

.dn-consent-profile-preview > div {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.dn-consent-profile-preview button {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.dn-consent-integration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1000px;
  margin: 10px 0 18px;
  padding: 14px 16px;
  border-left: 4px solid #2271b1;
  background: #ffffff;
}

.dn-consent-integration-summary strong,
.dn-consent-integration-summary span {
  display: block;
}

.dn-consent-integration-summary span {
  margin-top: 4px;
  color: #646970;
}

.dn-consent-integration-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dn-consent-profile__grid--content label:nth-child(2),
.dn-consent-profile__grid--content label:nth-child(3) {
  grid-column: span 2;
}

.dn-consent-profile__colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px 14px;
  padding: 0 16px 16px;
}

.dn-consent-profile__colors label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
}

.dn-consent-profile__colors input[type="color"] {
  width: 46px;
  height: 34px;
  padding: 2px;
}

.dn-consent-insights-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
}

.dn-consent-insights-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 10px 12px;
  max-width: 1200px;
  margin: 18px 0 10px;
  padding: 14px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
}

.dn-consent-insights-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-weight: 600;
}

.dn-consent-insights-filters select {
  width: 100%;
  max-width: none;
}

.dn-consent-insights-filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dn-consent-insights-filter-note {
  max-width: 1200px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 4px solid #72aee6;
  background: #f0f6fc;
}

.dn-consent-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 18px 0;
}

.dn-consent-insights-breakdown h2 {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
}

.dn-consent-insights-breakdown table th:last-child,
.dn-consent-insights-breakdown table td:last-child {
  width: 110px;
  text-align: right;
}

@media (max-width: 1200px) {
  .dn-consent-insights-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dn-consent-insights-filter-actions {
    grid-column: 1 / -1;
  }

  .dn-consent-dashboard-metrics,
  .dn-consent-insights-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .dn-consent-insights-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-consent-insights-filter-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .dn-consent-dashboard-metrics,
  .dn-consent-insights-metrics,
  .dn-consent-insights-grid,
  .dn-consent-profile__grid,
  .dn-consent-profile__colors,
  .dn-consent-profile > summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-consent-profile__grid--content label:nth-child(2),
  .dn-consent-profile__grid--content label:nth-child(3) {
    grid-column: auto;
  }

  .dn-consent-integration-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ================================
   ADMIN NAVIGATION AND BRANDING
================================ */

.dn-consent-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  max-width: 1200px;
  margin: 18px 0 14px;
  padding-top: 0;
}

.dn-consent-admin-nav .nav-tab {
  margin-left: 0;
  margin-right: 4px;
  white-space: nowrap;
}

.dn-consent-extension-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1060px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #b8d7f0;
  border-left: 4px solid #2271b1;
  border-radius: 6px;
  background: #f0f6fc;
}

.dn-consent-extension-callout strong {
  color: #1d2327;
  font-size: 15px;
}

.dn-consent-extension-callout p {
  margin: 4px 0 0;
  color: #50575e;
}

.dn-consent-extension-link {
  margin: 12px 0 0 !important;
}

@media (max-width: 782px) {
  .dn-consent-admin-nav {
    border-bottom: 0;
  }

  .dn-consent-admin-nav .nav-tab {
    flex: 1 0 auto;
    margin-bottom: 0;
    text-align: center;
  }

  .dn-consent-extension-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ================================
   ADMIN COOKIE SCANNER
================================ */

.dn-consent-scan-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #ffffff;
}

.dn-consent-scan-intro h2,
.dn-consent-scan-intro p {
  margin-top: 0;
}

.dn-consent-scan-import-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dn-consent-sample-downloads {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dn-consent-sample-downloads span {
  color: #50575e;
  font-weight: 600;
}

.dn-consent-sample-downloads form {
  margin: 0;
}

.dn-consent-quick-scan {
  order: -1;
  padding: 16px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #f6f7f7;
}

.dn-consent-quick-scan .description {
  margin: 12px 0 0;
}

.dn-consent-privacy-note {
  padding: 14px 16px;
  border-left: 4px solid #2271b1;
  background: #f0f6fc;
}

.dn-consent-privacy-note p {
  margin: 6px 0 0;
  color: #50575e;
}

.dn-consent-privacy-note--scanner {
  max-width: 1064px;
  margin: -8px 0 20px;
}

.dn-consent-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dn-consent-category-options label {
  position: relative;
  margin: 0;
}

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

.dn-consent-category-options span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #c3c4c7;
  border-radius: 5px;
  background: #ffffff;
  color: #3c434a;
  cursor: pointer;
  font-size: 12px;
}

.dn-consent-category-options input:checked + span {
  border-color: #2271b1;
  background: #2586db;
  color: #ffffff;
  font-weight: 600;
}

.dn-consent-category-options input:focus-visible + span {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.dn-consent-registry-table {
  table-layout: fixed;
  min-width: 1080px;
}

.dn-consent-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.dn-consent-registry-table .dn-col-cookie {
  width: 13%;
}

.dn-consent-registry-table .dn-col-provider {
  width: 14%;
}

.dn-consent-registry-table .dn-col-categories {
  width: 20%;
}

.dn-consent-registry-table .dn-col-duration {
  width: 9%;
}

.dn-consent-registry-table .dn-col-description {
  width: 38%;
}

.dn-consent-registry-table .dn-col-action {
  width: 6%;
}

.dn-consent-registry-table input[type="text"],
.dn-consent-registry-table select,
.dn-consent-registry-table textarea {
  width: 100%;
  min-width: 0;
}

.dn-consent-registry-table textarea {
  resize: vertical;
}

.dn-consent-services-table,
.dn-consent-rules-table {
  max-width: 1200px;
  margin: 10px 0 20px;
}

.dn-consent-blocker-tools,
.dn-consent-policy-generator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #ffffff;
}

.dn-consent-blocker-tools form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.dn-consent-policy-generator {
  justify-content: space-between;
}

.dn-consent-policy-generator h2,
.dn-consent-policy-generator p {
  margin: 0 0 5px;
}

.dn-consent-revisit-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 210px));
  gap: 12px;
  margin: 14px 0 10px;
}

.dn-consent-revisit-settings label,
.dn-consent-revisit-settings span {
  display: block;
}

.dn-consent-revisit-settings span {
  margin-bottom: 5px;
  font-weight: 600;
}

.dn-consent-revisit-settings input:not([type="color"]),
.dn-consent-revisit-settings select {
  width: 100%;
}

.dn-consent-revisit-settings input[type="color"] {
  width: 70px;
  height: 34px;
}

.dn-consent-custom-icon-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dn-consent-health-check {
  max-width: 1100px;
  margin: 22px 0;
}

.dn-consent-health-check__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dn-consent-health-check__heading strong {
  color: #50575e;
}

.dn-consent-health-check table th {
  width: 210px;
}

.dn-consent-health-check table td:nth-child(2) {
  width: 90px;
}

.dn-consent-health-status {
  display: inline-block;
  min-width: 58px;
  padding: 3px 7px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.dn-consent-health-status--pass {
  background: #e7f7ed;
  color: #006b36;
}

.dn-consent-health-status--review {
  background: #fff4ce;
  color: #755200;
}

.dn-consent-services-table td,
.dn-consent-services-table th,
.dn-consent-rules-table td,
.dn-consent-rules-table th {
  vertical-align: top;
}

.dn-consent-services-table code {
  white-space: normal;
  word-break: break-word;
}

.dn-consent-rules-table input[type="text"],
.dn-consent-rules-table select {
  width: 100%;
}

.dn-consent-scan-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 18px 0;
}

.dn-consent-scan-summary > div {
  padding: 14px 16px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #ffffff;
}

.dn-consent-scan-summary span,
.dn-consent-scan-summary strong {
  display: block;
}

.dn-consent-scan-summary span {
  color: #646970;
  font-size: 12px;
}

.dn-consent-scan-summary strong {
  margin-top: 4px;
  color: #1d2327;
  font-size: 22px;
}

.dn-consent-scan-meta,
.dn-consent-scan-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 1200px;
}

.dn-consent-scan-meta p {
  margin: 0;
}

.dn-consent-scan-meta form {
  margin-left: auto;
}

.dn-consent-scan-toolbar {
  margin: 18px 0 10px;
}

.dn-consent-scan-toolbar input[type="search"] {
  width: min(360px, 70vw);
}

#dn-scan-selection-count {
  margin-left: auto;
  color: #50575e;
  font-weight: 600;
}

.dn-consent-scan-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #c3c4c7;
  background: #ffffff;
}

.dn-consent-scan-table {
  min-width: 1360px;
  border: 0;
}

.dn-consent-scan-table td,
.dn-consent-scan-table th {
  vertical-align: top;
}

.dn-consent-scan-table td:nth-child(3) strong,
.dn-consent-scan-table td:nth-child(3) small,
.dn-consent-scan-table td:nth-child(4) strong,
.dn-consent-scan-table td:nth-child(4) span,
.dn-consent-scan-table td:nth-child(4) small,
.dn-consent-scan-table td:nth-child(6) small,
.dn-consent-scan-table td:nth-child(9) span {
  display: block;
}

.dn-consent-scan-table td:nth-child(3) small,
.dn-consent-scan-table td:nth-child(4) span,
.dn-consent-scan-table td:nth-child(4) small,
.dn-consent-scan-table td:nth-child(6) small,
.dn-consent-scan-table td:nth-child(9) span {
  margin-top: 4px;
  color: #646970;
}

.dn-consent-scan-table [data-dn-scan-quick-add] {
  margin-top: 8px;
}

.dn-consent-geo-health {
  max-width: 1050px;
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid #2271b1;
  background: #ffffff;
}

.dn-consent-geo-health h2,
.dn-consent-geo-health p {
  margin-top: 0;
}

.dn-consent-worker-code {
  max-width: 1000px;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: #1d2327;
  color: #f0f0f1;
}

.dn-consent-scan-table input[type="text"],
.dn-consent-scan-table select,
.dn-consent-scan-table textarea {
  width: 100%;
}

.dn-consent-scan-table textarea {
  min-width: 210px;
}

.dn-scan-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f0f1;
  color: #3c434a;
  font-size: 11px;
  font-weight: 700;
}

.dn-scan-status--new {
  background: #e7f5ed;
  color: #006b36;
}

.dn-scan-status--changed {
  background: #fcf0d3;
  color: #755200;
}

.dn-scan-status--matched {
  background: #e8f1fa;
  color: #135e96;
}

.dn-scan-status--approved {
  background: #f0f0f1;
  color: #646970;
}

.dn-scan-row-approved {
  opacity: 0.7;
}

.dn-consent-scan-empty,
.dn-consent-scan-missing,
.dn-consent-scan-contract {
  max-width: 1100px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #ffffff;
}

.dn-consent-scan-missing summary,
.dn-consent-scan-contract summary {
  cursor: pointer;
  font-weight: 600;
}

.dn-consent-scan-contract pre {
  overflow-x: auto;
  padding: 14px;
  background: #f6f7f7;
}

.dn-consent-scan-history {
  max-width: 1100px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .dn-consent-accessibility-check {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-consent-revisit-settings {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .dn-consent-scan-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-consent-scan-summary {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .dn-consent-scan-meta form,
  #dn-scan-selection-count {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .dn-consent-accessibility-check ul,
  .dn-consent-revisit-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .dn-consent-scan-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Profile guidance and compact scanner refinements. */
.dn-consent-recommended-baseline {
  max-width: 1060px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #b8d7f0;
  border-left: 4px solid #2271b1;
  border-radius: 6px;
  background: #f0f6fc;
}

.dn-consent-recommended-baseline strong,
.dn-consent-recommended-baseline p {
  display: block;
}

.dn-consent-recommended-baseline p {
  margin: 4px 0 0;
  color: #3c434a;
}

.dn-consent-scan-table {
  min-width: 1120px;
  table-layout: fixed;
}

.dn-consent-scan-table th:nth-child(1),
.dn-consent-scan-table td:nth-child(1) { width: 36px; }
.dn-consent-scan-table th:nth-child(2),
.dn-consent-scan-table td:nth-child(2) { width: 84px; }
.dn-consent-scan-table th:nth-child(3),
.dn-consent-scan-table td:nth-child(3) { width: 112px; }
.dn-consent-scan-table th:nth-child(4),
.dn-consent-scan-table td:nth-child(4) { width: 190px; }
.dn-consent-scan-table th:nth-child(5),
.dn-consent-scan-table td:nth-child(5) { width: 135px; }
.dn-consent-scan-table th:nth-child(6),
.dn-consent-scan-table td:nth-child(6) { width: 125px; }
.dn-consent-scan-table th:nth-child(7),
.dn-consent-scan-table td:nth-child(7) { width: 112px; }

.dn-consent-scan-technical {
  margin-top: 8px;
  font-size: 11px;
}

.dn-consent-scan-technical summary {
  color: #2271b1;
  cursor: pointer;
  font-weight: 600;
}

.dn-consent-scan-technical span {
  display: block;
  margin-top: 3px;
  color: #646970;
  overflow-wrap: anywhere;
}

.dn-consent-dashboard-metrics > div > span,
.dn-consent-insights-metrics > div > span {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: visible;
}

.dn-consent-dashboard-metrics .dn-consent-help-tip,
.dn-consent-insights-metrics .dn-consent-help-tip {
  display: inline-flex;
  flex: 0 0 22px;
  margin-left: 0;
  overflow: visible;
  vertical-align: middle;
}

.dn-consent-dashboard-metrics .dn-consent-help-tip__button,
.dn-consent-insights-metrics .dn-consent-help-tip__button {
  margin: -2px 0;
}
