
:root {
  --dp-consent-text: #f7f3fb;
  --dp-consent-muted: rgba(239, 233, 246, .66);
  --dp-consent-border: rgba(222, 211, 233, .15);
  --dp-consent-lilac: #c9b5ff;
  --dp-consent-orange: #d28a58;
  --dp-consent-bg: rgba(12, 10, 18, .96);
}

.dp-consent,
.dp-consent * {
  box-sizing: border-box !important;
}

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

.dp-consent {
  position: relative;
  z-index: 2147483000;
  font-family: inherit;
}

.dp-consent__backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(2, 2, 5, .66);
  backdrop-filter: blur(8px);
}

.dp-consent__backdrop[hidden] {
  display: none !important;
}

.dp-consent__banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2147483002;
  width: calc(100% - 36px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--dp-consent-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(126, 91, 255, .15), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(199, 124, 73, .12), transparent 38%),
    var(--dp-consent-bg);
  color: var(--dp-consent-text);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.dp-consent__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--dp-consent-lilac);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.dp-consent__pulse {
  width: 33px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7f61d6, var(--dp-consent-orange));
  box-shadow: 0 0 16px rgba(144, 102, 219, .42);
}

.dp-consent__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.dp-consent__copy {
  min-width: 0;
}

.dp-consent__copy h2,
.dp-consent__modal h2 {
  margin: 0;
  color: var(--dp-consent-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.dp-consent__copy p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--dp-consent-muted);
  font-size: 13px;
  line-height: 1.58;
}

.dp-consent a {
  color: var(--dp-consent-lilac) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(201, 181, 255, .35) !important;
  text-underline-offset: 3px;
}

.dp-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.dp-consent__button,
.dp-consent__close,
.dp-consent__reopen {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
  cursor: pointer !important;
}

.dp-consent__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease !important;
}

.dp-consent__button:hover {
  transform: translateY(-1px) !important;
}

.dp-consent__button--primary {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: linear-gradient(90deg, #7858c8 0%, #a5729d 52%, #c5865d 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22) !important;
}

.dp-consent__button--secondary {
  border: 1px solid rgba(201, 181, 255, .22) !important;
  background: rgba(126, 91, 255, .09) !important;
  color: #ded2f5 !important;
}

.dp-consent__button--ghost {
  border: 1px solid rgba(247, 243, 251, .12) !important;
  background: rgba(255, 255, 255, .025) !important;
  color: rgba(247, 243, 251, .73) !important;
}

.dp-consent__modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2147483003;
  width: min(680px, calc(100% - 30px));
  max-height: min(760px, calc(100dvh - 30px));
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--dp-consent-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(126, 91, 255, .14), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(199, 124, 73, .10), transparent 40%),
    #0d0b14;
  color: var(--dp-consent-text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
  transform: translate(-50%, -50%);
}

.dp-consent__modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.dp-consent__kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--dp-consent-lilac);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}

.dp-consent__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(247, 243, 251, .12) !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .035) !important;
  color: rgba(247, 243, 251, .72) !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.dp-consent__modal-intro {
  margin: 16px 0 18px;
  color: var(--dp-consent-muted);
  font-size: 13px;
  line-height: 1.6;
}

.dp-consent__categories {
  display: grid;
  gap: 10px;
}

.dp-consent__category {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(222, 211, 233, .12);
  border-radius: 15px;
  background: linear-gradient(105deg, rgba(69, 49, 98, .15), rgba(94, 54, 36, .08));
  color: var(--dp-consent-text);
}

.dp-consent__category > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dp-consent__category strong {
  color: #f6f1fa;
  font-size: 14px;
}

.dp-consent__category span {
  color: rgba(239, 233, 246, .57);
  font-size: 11px;
  line-height: 1.45;
}

.dp-consent__always {
  color: #c9b5ff !important;
  font-size: 10px !important;
  font-weight: 750;
  white-space: nowrap;
}

.dp-consent__category input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.dp-consent__switch {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid rgba(222, 211, 233, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  transition: background .18s ease, border-color .18s ease;
}

.dp-consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d8d0df;
  transition: transform .18s ease, background .18s ease;
}

.dp-consent__category input:checked + .dp-consent__switch {
  border-color: rgba(201, 181, 255, .44);
  background: linear-gradient(90deg, #7457c3, #a66f94);
}

.dp-consent__category input:checked + .dp-consent__switch::after {
  background: #fff;
  transform: translateX(20px);
}

.dp-consent__category input:focus-visible + .dp-consent__switch {
  box-shadow: 0 0 0 3px rgba(201, 181, 255, .16);
}

.dp-consent__modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.dp-consent__modal-footer a {
  font-size: 11px;
}

.dp-consent__reopen {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 2147482999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid rgba(201, 181, 255, .18) !important;
  border-radius: 999px !important;
  background: rgba(13, 11, 20, .92) !important;
  color: rgba(239, 233, 246, .74) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30) !important;
  backdrop-filter: blur(10px);
}

.dp-consent__reopen span:first-child {
  color: var(--dp-consent-lilac);
  font-size: 19px;
}

.dp-consent__toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 2147483005;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 11px 15px;
  border: 1px solid rgba(201, 181, 255, .17);
  border-radius: 12px;
  background: #15111d;
  color: #eee7f4;
  font-size: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
  transform: translateX(-50%);
}

html.dp-consent-visible {
  overflow: hidden;
}

@media (max-width: 900px) {
  .dp-consent__content {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 17px;
  }

  .dp-consent__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .dp-consent__banner {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    margin: 0;
    padding: 18px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .dp-consent__brand {
    margin-bottom: 11px;
  }

  .dp-consent__copy h2 {
    font-size: 22px;
  }

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

  .dp-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dp-consent__button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  .dp-consent__button--primary {
    grid-column: 1 / -1;
    order: -1;
  }

  .dp-consent__modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 10px);
    padding: 19px 14px calc(14px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    transform: none;
  }

  .dp-consent__modal h2 {
    font-size: 22px;
  }

  .dp-consent__category {
    padding: 13px;
  }

  .dp-consent__modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dp-consent__modal-footer a {
    text-align: center;
  }

  .dp-consent__reopen {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 390px) {
  .dp-consent__actions {
    grid-template-columns: 1fr;
  }

  .dp-consent__button--primary {
    grid-column: auto;
  }

  .dp-consent__category {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .dp-consent__always {
    max-width: 82px;
    white-space: normal;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-consent *,
  .dp-consent *::before,
  .dp-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* v1.1.0: opt-out banner is informational and does not block the website. */
.dp-consent__banner {
  pointer-events: auto;
}

.dp-consent__backdrop[hidden] {
  pointer-events: none !important;
}

body:has(#dp-consent-banner:not([hidden])) {
  overflow: auto !important;
}
