.dr-consent-banner,
.dr-consent-settings {
  position: fixed;
  z-index: 1200;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.dr-consent-banner[hidden],
.dr-consent-settings[hidden],
.dr-consent-custom[hidden],
.dr-consent-close[hidden] {
  display: none !important;
}

.dr-consent-banner {
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  padding: 18px;
  color: #f8fafc;
  background: #05080b;
  border: 1px solid rgba(168, 224, 0, 0.5);
  border-radius: 6px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.58);
}

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

.dr-consent-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 1rem;
}

.dr-consent-copy p {
  max-width: 600px;
  margin: 0;
  color: #c4ced8;
  font-size: 0.85rem;
  line-height: 1.45;
}

.dr-consent-copy a {
  display: inline-block;
  margin-top: 7px;
  color: #38bdf8;
  font-size: 0.78rem;
}

.dr-consent-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dr-consent-actions button,
.dr-consent-custom-actions button,
.dr-consent-settings {
  min-height: 42px;
  padding: 9px 14px;
  color: #f8fafc;
  background: #0b1118;
  border: 1px solid #4b5968;
  border-radius: 4px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.dr-consent-actions .dr-consent-accept,
.dr-consent-actions .dr-consent-refuse,
.dr-consent-custom-actions .dr-consent-save {
  min-width: 124px;
}

.dr-consent-actions .dr-consent-accept,
.dr-consent-custom-actions .dr-consent-save {
  color: #071000;
  background: #a8e000;
  border-color: #a8e000;
}

.dr-consent-actions .dr-consent-refuse {
  color: #ffffff;
  background: #101820;
  border-color: #f8fafc;
}

.dr-consent-actions .dr-consent-close {
  border-color: transparent;
  color: #aeb9c6;
  background: transparent;
}

.dr-consent-actions button:focus-visible,
.dr-consent-custom-actions button:focus-visible,
.dr-consent-settings:focus-visible,
.dr-consent-copy a:focus-visible,
.dr-consent-switch input:focus-visible + span {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.dr-consent-custom {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.dr-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #0a1016;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 4px;
}

.dr-consent-option strong {
  color: #ffffff;
  font-size: 0.88rem;
}

.dr-consent-option p {
  margin: 3px 0 0;
  color: #aeb9c6;
  font-size: 0.78rem;
  line-height: 1.4;
}

.dr-consent-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

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

.dr-consent-switch > span:first-of-type {
  position: relative;
  width: 48px;
  height: 28px;
  pointer-events: none;
  background: #27313c;
  border: 1px solid #52606e;
  border-radius: 999px;
  transition: background 140ms ease, border-color 140ms ease;
}

.dr-consent-switch > span:first-of-type::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #f8fafc;
  border-radius: 50%;
  transition: transform 140ms ease;
}

.dr-consent-switch input:checked + span {
  background: #87b900;
  border-color: #a8e000;
}

.dr-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

.dr-consent-custom-actions {
  display: flex;
  justify-content: flex-end;
}

.dr-consent-switch .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dr-consent-settings {
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  min-height: 38px;
  padding: 7px 10px;
  color: #cbd5e1;
  background: rgba(5, 8, 11, 0.96);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.dr-consent-settings.dr-consent-settings--inline {
  position: static;
  min-height: 34px;
  margin: 0;
  padding: 5px 8px;
  color: #aeb9c6;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: none;
}

html.has-mobile-sticky .dr-consent-banner,
html.has-mobile-sticky .dr-consent-settings {
  bottom: calc(92px + env(safe-area-inset-bottom));
}

html.has-mobile-sticky .dr-consent-settings--inline {
  bottom: auto;
}

@media (max-width: 820px) {
  .dr-consent-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    max-height: min(720px, calc(100vh - 116px - env(safe-area-inset-bottom)));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
  }

  .dr-consent-copy p {
    font-size: 0.82rem;
  }

  .dr-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dr-consent-actions .dr-consent-customize,
  .dr-consent-actions .dr-consent-close {
    grid-column: 1 / -1;
  }

  .dr-consent-actions .dr-consent-accept,
  .dr-consent-actions .dr-consent-refuse {
    width: 100%;
    min-width: 0;
  }

  .dr-consent-custom {
    grid-column: 1;
  }

  .dr-consent-custom-actions button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .dr-consent-banner {
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .dr-consent-option {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-consent-switch > span:first-of-type,
  .dr-consent-switch > span:first-of-type::after {
    transition: none;
  }
}
