.ks-static-consent,
.ks-static-cookie-preferences {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ks-static-consent {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #151326;
  background: rgba(250, 250, 255, 0.97);
  border: 1px solid rgba(113, 77, 212, 0.18);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(31, 24, 63, 0.22);
  backdrop-filter: blur(18px);
}

.ks-static-consent-copy {
  max-width: 690px;
}

.ks-static-consent strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.ks-static-consent p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555166;
}

.ks-static-consent a {
  color: #6540c7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ks-static-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.ks-static-consent-actions button,
.ks-static-cookie-preferences {
  appearance: none;
  border: 1px solid rgba(101, 64, 199, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  color: #312255;
  background: #f1edff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.ks-static-consent-actions button:last-child {
  color: #171126;
  background: #caff69;
  border-color: #a8df45;
}

.ks-static-cookie-preferences {
  position: fixed;
  z-index: 2147482000;
  bottom: 12px;
  left: 12px;
  padding: 7px 11px;
  color: #554b6d;
  background: rgba(250, 250, 255, 0.9);
  border-color: rgba(85, 75, 109, 0.16);
  font-size: 11px;
  font-weight: 650;
  box-shadow: 0 6px 22px rgba(31, 24, 63, 0.12);
  backdrop-filter: blur(12px);
}

.ks-static-consent-actions button:focus-visible,
.ks-static-cookie-preferences:focus-visible {
  outline: 3px solid rgba(101, 64, 199, 0.32);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .ks-static-consent {
    right: 10px;
    bottom: 74px;
    left: 10px;
    display: block;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .ks-static-consent strong {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .ks-static-consent p {
    font-size: 12px;
    line-height: 1.4;
  }

  .ks-static-consent-actions {
    margin-top: 10px;
  }

  .ks-static-consent-actions button {
    flex: 1;
    padding: 9px 12px;
  }

  .ks-static-cookie-preferences {
    bottom: 70px;
  }
}

/* phone-home cookie clearance */
@media (max-width: 760px) {
  body:has(.phone-stage) .ks-static-cookie-preferences {
    bottom: 18px;
    left: 8px;
    max-width: 108px;
    padding: 6px 8px;
    font-size: 9px;
  }
}

/* Granular, equally prominent choices; keep the existing site palette. */
.ks-static-consent {
  display: block;
  max-height: min(80dvh, 700px);
  overflow-y: auto;
  padding-right: 44px;
}
.ks-static-consent .ks-static-consent-copy { max-width: none; }
.ks-static-consent .ks-consent-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 25px;
}
.ks-consent-vendors { margin: 12px 0; padding: 0; border: 0; }
.ks-consent-vendors legend { margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.ks-consent-vendors label { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-size: 13px; line-height: 1.45; cursor: pointer; }
.ks-consent-vendors input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; }
.ks-static-consent .ks-consent-withdrawal { font-size: 12px; }
.ks-static-consent .ks-consent-gpc { margin-top: 8px; font-weight: 700; }
.ks-static-consent .ks-static-consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.ks-static-consent .ks-static-consent-actions button[data-consent],
.premium-site .ks-static-consent .ks-static-consent-actions button[data-consent] {
  flex: 1 1 130px;
  min-height: 44px;
  color: var(--premium-ink, #312255);
  background: var(--premium-paper, #f1edff);
  border: 1px solid var(--premium-line, rgba(101, 64, 199, 0.28));
}
.ks-static-consent button:disabled { cursor: not-allowed; opacity: 0.55; }
.ks-consent-vendors input:focus-visible,
.ks-static-consent .ks-consent-close:focus-visible { outline: 3px solid #6540c7; outline-offset: 2px; }
@media (max-width: 700px) {
  .ks-static-consent { max-height: 70dvh; padding-right: 40px; }
  .ks-consent-vendors label { font-size: 12px; }
  .ks-static-consent .ks-static-consent-actions { grid-template-columns: 1fr; }
}
