:root {
  --ots-consent-ink: #17263a;
  --ots-consent-muted: #5c6f86;
  --ots-consent-blue: #0c568d;
  --ots-consent-blue-dark: #083f69;
  --ots-consent-line: #cfe0ed;
  --ots-consent-surface: #ffffff;
  --ots-consent-soft: #f3f8fc;
}
.ots-consent,
.ots-consent * {
  box-sizing: border-box;
}

.ots-consent__banner,
.ots-consent__settings {
  position: fixed;
  z-index: 2147483000;
  right: clamp(16px, 3vw, 44px);
  bottom: clamp(16px, 3vw, 36px);
  width: min(680px, calc(100vw - 32px));
  color: var(--ots-consent-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--ots-consent-line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(19, 53, 80, 0.24);
  font: 400 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ots-consent__banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  gap: 24px;
  padding: 28px;
}

.ots-consent__banner[hidden],
.ots-consent__settings[hidden],
.ots-consent[hidden] {
  display: none !important;
}

.ots-consent h2,
.ots-consent p {
  margin: 0;
}

.ots-consent h2 {
  margin-bottom: 8px;
  color: var(--ots-consent-ink);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ots-consent__eyebrow {
  margin-bottom: 7px !important;
  color: var(--ots-consent-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ots-consent__copy > p:not(.ots-consent__eyebrow) {
  color: var(--ots-consent-muted);
}

.ots-consent__privacy {
  display: inline-block;
  margin-top: 12px;
  color: var(--ots-consent-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ots-consent__actions,
.ots-consent__settings-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.ots-consent__button,
.ots-consent__close,
.ots-consent__reopen {
  appearance: none;
  border: 1px solid var(--ots-consent-blue);
  border-radius: 12px;
  cursor: pointer;
  font: 750 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ots-consent__button {
  min-height: 46px;
  padding: 11px 16px;
  color: var(--ots-consent-blue);
  background: var(--ots-consent-surface);
}

.ots-consent__button:hover,
.ots-consent__button:focus-visible {
  background: var(--ots-consent-soft);
  transform: translateY(-1px);
}

.ots-consent__button--primary {
  color: #fff;
  background: var(--ots-consent-blue);
}

.ots-consent__button--primary:hover,
.ots-consent__button--primary:focus-visible {
  color: #fff;
  background: var(--ots-consent-blue-dark);
}

.ots-consent__button--link {
  border-color: transparent;
  background: transparent;
}

.ots-consent__settings {
  padding: 26px;
}

.ots-consent__settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ots-consent__close {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  color: var(--ots-consent-blue);
  background: var(--ots-consent-soft);
  font-size: 26px;
  line-height: 1;
}

.ots-consent__choices {
  display: grid;
  gap: 9px;
}

.ots-consent__choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 15px;
  border: 1px solid var(--ots-consent-line);
  border-radius: 14px;
  background: var(--ots-consent-surface);
}

.ots-consent__choice.is-required {
  background: var(--ots-consent-soft);
}

.ots-consent__choice strong,
.ots-consent__choice small {
  display: block;
}

.ots-consent__choice strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.ots-consent__choice small {
  color: var(--ots-consent-muted);
  font-size: 13px;
  line-height: 1.35;
}

.ots-consent__choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--ots-consent-blue);
}

.ots-consent__settings-actions {
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 18px;
}

.ots-consent__reopen {
  position: fixed;
  z-index: 2147482990;
  left: 14px;
  bottom: 14px;
  padding: 9px 12px;
  color: var(--ots-consent-blue);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--ots-consent-line);
  box-shadow: 0 8px 26px rgba(19, 53, 80, 0.16);
  font-size: 12px;
}

.ots-consent__reopen:hover,
.ots-consent__reopen:focus-visible {
  color: #fff;
  background: var(--ots-consent-blue);
}

.ots-consent-is-open::before {
  content: "";
  position: fixed;
  z-index: 2147482900;
  inset: 0;
  background: rgba(8, 31, 51, 0.32);
  backdrop-filter: blur(2px);
}

@media (max-width: 700px) {
  .ots-consent__banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .ots-consent__settings {
    max-height: calc(100vh - 24px);
    overflow: auto;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .ots-consent__settings-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ots-consent__button,
  .ots-consent__close,
  .ots-consent__reopen {
    transition: none;
  }
}
