:root {
  --indra-consent-navy: #071a2d;
  --indra-consent-navy-soft: #12324a;
  --indra-consent-gold: #e9b949;
  --indra-consent-gold-dark: #b77b05;
  --indra-consent-ink: #102a3a;
  --indra-consent-muted: #526574;
  --indra-consent-line: #d8e0e5;
  --indra-consent-surface: #ffffff;
  --indra-consent-focus: #2f80ed;
}

.indra-consent-banner,
.indra-consent-dialog,
.indra-consent-fallback {
  font-family: inherit;
}

.indra-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(1120px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 24px;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(64, 146, 174, 0.28), transparent 34%),
    var(--indra-consent-navy);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(3, 18, 30, 0.34);
}

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

.indra-consent-banner__copy {
  max-width: 720px;
}

.indra-consent-eyebrow {
  margin: 0 0 6px;
  color: var(--indra-consent-gold);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.indra-consent-banner h2,
.indra-consent-dialog h2,
.indra-consent-dialog h3 {
  font-family: inherit;
  text-transform: none;
}

.indra-consent-banner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.indra-consent-banner__copy > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  line-height: 1.58;
}

.indra-consent-banner a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 3px;
}

.indra-consent-banner__actions {
  display: flex;
  min-width: 360px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.indra-consent-banner__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.indra-consent-button,
.indra-consent-secondary,
.indra-consent-close,
.indra-consent-manage,
.indra-consent-footer-link,
.indra-consent-fallback {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.indra-consent-button {
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
}

.indra-consent-button--accept {
  color: #17202a;
  background: var(--indra-consent-gold);
  border-color: var(--indra-consent-gold);
}

.indra-consent-button--reject {
  color: var(--indra-consent-navy);
  background: #fff;
  border-color: #fff;
}

.indra-consent-button:hover {
  filter: brightness(0.96);
}

.indra-consent-manage {
  align-self: center;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  font-size: 0.86rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.44);
  text-underline-offset: 3px;
}

.indra-consent-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  color: var(--indra-consent-ink);
  background: var(--indra-consent-surface);
  border: 1px solid var(--indra-consent-line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(3, 18, 30, 0.32);
}

.indra-consent-dialog::backdrop {
  background: rgba(3, 18, 30, 0.62);
  backdrop-filter: blur(3px);
}

.indra-consent-dialog--fallback {
  position: fixed;
  z-index: 2147483001;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.indra-consent-dialog__panel {
  max-height: min(780px, calc(100vh - 32px));
  margin: 0;
  padding: 28px;
  overflow-y: auto;
}

.indra-consent-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.indra-consent-dialog h2 {
  margin: 0;
  color: var(--indra-consent-navy);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.indra-consent-dialog__intro {
  margin: 14px 0 22px;
  color: var(--indra-consent-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.indra-consent-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--indra-consent-navy);
  background: #eef3f5;
  border: 0;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}

.indra-consent-options {
  overflow: hidden;
  border: 1px solid var(--indra-consent-line);
  border-radius: 14px;
}

.indra-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px;
  background: #fff;
}

.indra-consent-option + .indra-consent-option {
  border-top: 1px solid var(--indra-consent-line);
}

.indra-consent-option--toggle {
  cursor: pointer;
}

.indra-consent-option h3 {
  margin: 0 0 5px;
  color: var(--indra-consent-navy);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.3;
}

.indra-consent-option p {
  margin: 0;
  color: var(--indra-consent-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.indra-consent-status {
  padding: 6px 10px;
  color: #166534;
  background: #edf8ef;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.indra-consent-status--off {
  color: #485b68;
  background: #edf1f3;
}

.indra-consent-switch {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.indra-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.indra-consent-switch__track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  background: #81909a;
  border-radius: 999px;
  transition: background 160ms ease;
}

.indra-consent-switch__track::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(3, 18, 30, 0.25);
  transition: transform 160ms ease;
}

.indra-consent-switch input:checked + .indra-consent-switch__track {
  background: #177047;
}

.indra-consent-switch input:checked + .indra-consent-switch__track::after {
  transform: translateX(22px);
}

.indra-consent-switch input:focus-visible + .indra-consent-switch__track {
  outline: 3px solid var(--indra-consent-focus);
  outline-offset: 3px;
}

.indra-consent-switch__label {
  color: var(--indra-consent-muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.indra-consent-dialog__privacy {
  margin: 15px 0 0;
  font-size: 0.88rem;
}

.indra-consent-dialog__privacy a {
  color: var(--indra-consent-navy-soft);
  font-weight: 680;
  text-underline-offset: 3px;
}

.indra-consent-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.indra-consent-secondary {
  min-height: 46px;
  padding: 10px 18px;
  color: var(--indra-consent-navy);
  background: #fff;
  border: 1px solid var(--indra-consent-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.indra-consent-button--save {
  color: #fff;
  background: var(--indra-consent-navy);
  border-color: var(--indra-consent-navy);
}

.indra-consent-footer-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: inherit;
  text-decoration: none;
}

.indra-consent-footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.indra-consent-fallback {
  position: fixed;
  z-index: 2147482999;
  right: 16px;
  bottom: 16px;
  min-height: 40px;
  padding: 8px 14px;
  color: #fff;
  background: var(--indra-consent-navy);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(3, 18, 30, 0.24);
  font-size: 0.78rem;
  font-weight: 700;
}

.indra-consent-banner-visible .indra-consent-fallback {
  display: none;
}

.indra-consent-button:focus-visible,
.indra-consent-secondary:focus-visible,
.indra-consent-close:focus-visible,
.indra-consent-manage:focus-visible,
.indra-consent-footer-link:focus-visible,
.indra-consent-fallback:focus-visible,
.indra-consent-banner a:focus-visible,
.indra-consent-dialog a:focus-visible {
  outline: 3px solid var(--indra-consent-focus);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .indra-consent-banner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .indra-consent-banner__actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .indra-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 19px;
    border-radius: 14px;
  }

  .indra-consent-banner__choices {
    grid-template-columns: 1fr;
  }

  .indra-consent-button {
    width: 100%;
  }

  .indra-consent-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .indra-consent-dialog__panel {
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
  }

  .indra-consent-option {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .indra-consent-option .indra-consent-status,
  .indra-consent-option .indra-consent-switch {
    justify-self: start;
  }

  .indra-consent-switch {
    grid-template-columns: auto auto;
    align-items: center;
  }

  .indra-consent-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .indra-consent-switch__track,
  .indra-consent-switch__track::after {
    transition: none;
  }
}
