.kw-consent,
.kw-consent__launcher {
  --kw-consent-ink: #10233f;
  --kw-consent-muted: #42526b;
  --kw-consent-border: #9ab0cb;
  --kw-consent-surface: #f7fbff;
  --kw-consent-accent: #0b5ea8;
  --kw-consent-focus: #ffbf47;
  box-sizing: border-box;
  color: var(--kw-consent-ink);
  font: 400 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kw-consent *,
.kw-consent *::before,
.kw-consent *::after,
.kw-consent__launcher {
  box-sizing: border-box;
}

.kw-consent {
  position: relative;
  z-index: 1000;
  width: 100%;
  padding: 0.75rem;
  background: #eaf3fb;
}

.kw-consent:has(> [hidden]:first-child):has(> [hidden]:last-child) {
  display: none;
}

.kw-consent__panel {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 2px solid var(--kw-consent-border);
  border-radius: 0.9rem;
  background: var(--kw-consent-surface);
  box-shadow: 0 0.35rem 1rem rgba(16, 35, 63, 0.12);
}

.kw-consent__panel[hidden],
.kw-consent__signal[hidden],
.kw-consent__error[hidden],
.kw-consent__launcher[hidden],
.kw-consent__choice[hidden] {
  display: none !important;
}

.kw-consent__panel h2,
.kw-consent__panel p {
  margin-top: 0;
}

.kw-consent__panel h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
}

.kw-consent__panel p {
  margin-bottom: 0.75rem;
}

.kw-consent__signal,
.kw-consent__error,
.kw-consent__status {
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  font-weight: 650;
}

.kw-consent__signal,
.kw-consent__status {
  border: 1px solid #6d89aa;
  background: #eef6ff;
}

.kw-consent__error {
  border: 1px solid #9c2f2f;
  background: #fff2f2;
  color: #761f1f;
}

.kw-consent__links,
.kw-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.kw-consent__links a,
.kw-consent__button-link {
  color: #074f91;
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.kw-consent__actions {
  margin-top: 1rem;
}

.kw-consent__choice,
.kw-consent__button-link,
.kw-consent__close,
.kw-consent__launcher {
  min-height: 2.75rem;
  border: 2px solid var(--kw-consent-accent);
  border-radius: 0.65rem;
  background: #fff;
  color: #063f73;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.kw-consent__choice,
.kw-consent__button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 10rem;
  padding: 0.7rem 1rem;
}

.kw-consent__choice:hover,
.kw-consent__button-link:hover,
.kw-consent__close:hover,
.kw-consent__launcher:hover {
  background: #e6f2fd;
}

.kw-consent__choice:disabled {
  border-color: #77869a;
  background: #e8edf3;
  color: #455366;
  cursor: not-allowed;
}

.kw-consent__choice:focus-visible,
.kw-consent__button-link:focus-visible,
.kw-consent__close:focus-visible,
.kw-consent__launcher:focus-visible,
.kw-consent__links a:focus-visible {
  outline: 4px solid var(--kw-consent-focus);
  outline-offset: 3px;
}

.kw-consent__settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.kw-consent__close {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
}

.kw-consent__launcher {
  position: static;
  display: block;
  margin: 0 0 0 auto;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 0.9rem;
  box-shadow: 0 0.25rem 0.9rem rgba(16, 35, 63, 0.2);
}

body.kw-consent-launcher-visible {
  padding-bottom: 0 !important;
}

@media (max-width: 32rem) {
  .kw-consent {
    padding: 0.5rem;
  }

  .kw-consent__panel {
    padding: 1rem;
  }

  .kw-consent__actions,
  .kw-consent__links,
  .kw-consent__settings-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .kw-consent__choice,
  .kw-consent__button-link,
  .kw-consent__close {
    width: 100%;
    flex-basis: auto;
  }
}

@media print {
  .kw-consent,
  .kw-consent__launcher {
    display: none !important;
  }

  body.kw-consent-launcher-visible {
    padding-bottom: 0 !important;
  }
}
