.dq-consent-modal-open {
  overflow: hidden;
}

.dq-consent-banner,
.dq-consent-preferences {
  color: #211938;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dq-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(103, 61, 230, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 70px rgba(36, 24, 67, 0.25);
  backdrop-filter: blur(18px);
}

.dq-consent-banner__copy {
  max-width: 740px;
}

.dq-consent-kicker {
  display: block;
  margin-bottom: 5px;
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dq-consent-banner h2,
.dq-consent-preferences h2 {
  margin: 0;
  color: #211938;
  font-family: Sora, Manrope, system-ui, sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.dq-consent-banner p,
.dq-consent-preferences p {
  margin: 8px 0 0;
  color: #625a76;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dq-consent-banner a,
.dq-consent-preferences a {
  color: #5631ca;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dq-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dq-consent-button,
.dq-consent-icon-button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.dq-consent-button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.dq-consent-button:focus-visible,
.dq-consent-icon-button:focus-visible,
[data-dq-cookie-settings]:focus-visible {
  outline: 3px solid rgba(103, 61, 230, 0.35);
  outline-offset: 3px;
}

.dq-consent-button--primary {
  background: #673de6;
  color: #fff;
  box-shadow: 0 8px 20px rgba(103, 61, 230, 0.25);
}

.dq-consent-button--secondary {
  border-color: #dcd3f4;
  background: #fff;
  color: #3b2a70;
}

.dq-consent-button--ghost {
  background: #f1edff;
  color: #5030b6;
}

.dq-consent-button:hover {
  transform: translateY(-1px);
}

.dq-consent-overlay {
  position: fixed;
  z-index: 2147483640;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 17, 43, 0.58);
  backdrop-filter: blur(8px);
}

.dq-consent-preferences {
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 14, 37, 0.38);
}

.dq-consent-preferences__head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.dq-consent-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f2eefb;
  color: #40335e;
  font-size: 1.7rem;
  line-height: 1;
}

.dq-consent-option {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #e5dff1;
  border-radius: 16px;
  background: #fcfbff;
}

.dq-consent-option strong,
.dq-consent-option span {
  display: block;
}

.dq-consent-option strong {
  color: #2d2146;
  font-size: 0.95rem;
}

.dq-consent-option div span {
  margin-top: 4px;
  color: #6c647b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.dq-consent-option input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: #673de6;
}

.dq-consent-always {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e9f9ef;
  color: #177443;
  font-size: 0.72rem;
  font-weight: 900;
}

.dq-consent-detail {
  font-size: 0.8rem !important;
}

.dq-consent-actions--preferences {
  margin-top: 22px;
}

[data-dq-cookie-settings] {
  cursor: pointer;
}

@media (max-width: 820px) {
  .dq-consent-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .dq-consent-actions {
    justify-content: stretch;
  }

  .dq-consent-actions .dq-consent-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 520px) {
  .dq-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    border-radius: 18px;
  }

  .dq-consent-preferences {
    padding: 20px;
    border-radius: 20px;
  }

  .dq-consent-option {
    padding: 14px;
  }

  .dq-consent-actions--preferences .dq-consent-button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dq-consent-button {
    transition: none;
  }
}
