.ddcc-root,
.ddcc-root * {
  box-sizing: border-box;
}

.ddcc-root[hidden] {
  display: none;
}

.ddcc-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  font-family: Assistant, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ddcc-panel {
  position: absolute;
  pointer-events: auto;
  color: #28243a;
}

.ddcc-pos-bottom {
  right: auto;
  bottom: 12px;
  left: 50%;
  width: min(720px, calc(100vw - 24px));
  transform: translateX(-50%);
}

.ddcc-pos-center {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(27, 22, 44, 0.26);
  padding: 18px;
}

.ddcc-card {
  width: 100%;
  border: 1px solid rgba(141, 108, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(35, 28, 58, 0.14);
  padding: 8px 12px;
  position: relative;
  backdrop-filter: blur(14px);
}

.ddcc-root.is-customizing .ddcc-card {
  width: min(560px, 100%);
  max-height: min(76vh, 620px);
  overflow: auto;
  padding: 16px;
  margin-inline: auto;
}

.ddcc-root.is-info-open .ddcc-card {
  width: min(560px, 100%);
  max-height: min(76vh, 620px);
  overflow: auto;
  margin-inline: auto;
}

.ddcc-pos-center .ddcc-card {
  margin: 0;
}

.ddcc-main h2 {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.2;
  margin: 0;
  font-weight: 900;
}

.ddcc-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.ddcc-main p {
  flex: 0 1 auto;
  min-width: 0;
  color: #67627d;
  font-size: 12px;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ddcc-links {
  font-size: 12px;
}

.ddcc-links a {
  color: #7457ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ddcc-info-toggle {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: #7457ff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ddcc-info {
  border: 1px solid rgba(124, 92, 255, 0.16);
  border-radius: 12px;
  background: #fbfbff;
  margin-top: 10px;
  padding: 12px;
}

.ddcc-info h3 {
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 900;
}

.ddcc-info p,
.ddcc-info dd,
.ddcc-info li {
  color: #67627d;
  font-size: 12px;
  line-height: 1.45;
}

.ddcc-info p {
  margin: 0 0 8px;
}

.ddcc-info dl {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.ddcc-info dl > div {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 7px;
}

.ddcc-info dt {
  color: #28243a;
  font-size: 12px;
  font-weight: 900;
}

.ddcc-info dd {
  margin: 2px 0 0;
}

.ddcc-info ul {
  margin: 6px 18px 0 0;
  padding: 0;
}

.ddcc-actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

.ddcc-btn,
.ddcc-inline-settings,
.ddcc-footer-link {
  min-height: 34px;
  border-radius: 8px;
  border: 0;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ddcc-btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ffa07a 34%, #8d6cff 75%, #5eb8ff);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(116, 87, 255, 0.24);
}

.ddcc-btn-light {
  background: rgba(244, 240, 255, 0.82);
  color: #6948ee;
}

.ddcc-btn-ghost,
.ddcc-footer-link,
.ddcc-inline-settings {
  background: #fff;
  color: #28243a;
}

.ddcc-btn-ghost[data-ddcc-reject] {
  background: transparent;
  border-color: transparent;
  color: #8a849b;
  box-shadow: none;
  font-weight: 800;
  padding-inline: 8px;
}

.ddcc-actions .ddcc-btn + .ddcc-btn::before {
  content: "|";
  color: rgba(40, 36, 58, 0.25);
  display: inline-block;
  margin-inline-end: 10px;
  font-weight: 500;
}

.ddcc-actions .ddcc-btn-primary::before {
  color: rgba(40, 36, 58, 0.25);
}

.ddcc-btn-ghost[data-ddcc-reject]:hover,
.ddcc-btn-ghost[data-ddcc-reject]:focus-visible {
  color: #4c465f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ddcc-settings {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ddcc-category {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfbff;
}

.ddcc-category b {
  display: block;
  font-size: 14px;
}

.ddcc-category small {
  display: block;
  color: #716b86;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.ddcc-category input {
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
  accent-color: #7c5cff;
}

.ddcc-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f4f0ff;
  color: #28243a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ddcc-root.is-customizing .ddcc-main {
  padding-inline-end: 38px;
}

.ddcc-footer-link-wrap {
  text-align: center;
  margin: 14px 0;
}

.ddcc-policy-summary {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

@media (max-width: 680px) {
  .ddcc-pos-bottom {
    right: auto;
    bottom: 8px;
    left: 50%;
    width: calc(100vw - 14px);
    transform: translateX(-50%);
  }

  .ddcc-card {
    width: 100%;
    max-height: 88px;
    padding: 7px 8px;
    overflow: hidden;
  }

  .ddcc-root.is-customizing .ddcc-card,
  .ddcc-root.is-info-open .ddcc-card {
    width: 100%;
    max-height: min(62vh, 520px);
    padding: 13px;
    overflow: auto;
  }

  .ddcc-root:not(.is-customizing):not(.is-info-open) .ddcc-links {
    display: none;
  }

  .ddcc-root:not(.is-customizing):not(.is-info-open) .ddcc-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 5px;
  }

  .ddcc-main h2 {
    font-size: 12px;
  }

  .ddcc-main p {
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ddcc-info-toggle {
    font-size: 10.5px;
    white-space: nowrap;
  }

  .ddcc-actions {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 4px;
  }

  .ddcc-root.is-customizing .ddcc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ddcc-btn {
    min-height: 25px;
    min-width: 0;
    padding: 4px 7px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .ddcc-btn-ghost[data-ddcc-reject] {
    padding-inline: 4px;
  }

  .ddcc-actions .ddcc-btn + .ddcc-btn::before {
    margin-inline-end: 6px;
  }
}
