.cs-consent,
.cs-consent * {
  box-sizing: border-box;
}

.cs-consent {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 2147483000;
  width: min(680px, calc(100% - 32px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #b8d8df;
  border-radius: 16px;
  background: #fff;
  color: #164e63;
  box-shadow: 0 16px 48px rgba(9, 48, 59, 0.2);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-consent[hidden] {
  display: none;
}

.cs-consent__eyebrow {
  margin: 0 0 6px;
  color: #087d98;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-consent h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.25;
}

.cs-consent p {
  margin: 0;
}

.cs-consent__detail {
  margin-top: 10px !important;
  color: #526b73;
  font-size: 0.9rem;
}

.cs-consent__signal {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-left: 4px solid #047857;
  background: #ecfdf5;
  color: #14532d;
}

.cs-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.cs-consent__button {
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid #087d98;
  border-radius: 10px;
  background: #fff;
  color: #07566a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cs-consent__button:hover {
  background: #e6f7fa;
  border-color: #07566a;
}

.cs-consent__button:focus-visible,
.cs-consent-settings:focus-visible {
  outline: 3px solid #0e7490;
  outline-offset: 3px;
}

.cs-consent__button:disabled {
  border-color: #a8b7bb;
  background: #e9eff1;
  color: #5d6b70;
  cursor: not-allowed;
}

.cs-consent-settings {
  position: fixed;
  inset: auto auto 8px 8px;
  z-index: 2147482000;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #b8d8df;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: #164e63;
  font: 700 0.78rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

@media (max-width: 520px) {
  .cs-consent {
    inset: auto 10px 10px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 16px;
  }

  .cs-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-consent,
  .cs-consent-settings {
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  .cs-consent {
    border-color: #315c66;
    background: #10272d;
    color: #e7f8fb;
  }

  .cs-consent__detail {
    color: #bdd2d7;
  }

  .cs-consent__signal {
    background: #12372d;
    color: #d1fae5;
  }

  .cs-consent__button {
    background: #10272d;
    color: #e7f8fb;
  }

  .cs-consent-settings {
    border-color: #315c66;
    background: rgba(16, 39, 45, 0.96);
    color: #e7f8fb;
  }
}
