:root {
  --aeronest-consent-bg: #0b0d10;
  --aeronest-consent-surface: #171a1f;
  --aeronest-consent-ink: #ffffff;
  --aeronest-consent-muted: #c6ccd5;
  --aeronest-consent-line: rgba(255, 255, 255, .18);
  --aeronest-consent-brand: #2563eb;
  --aeronest-consent-brand-hover: #1d4ed8;
  --aeronest-consent-ease: cubic-bezier(.16, 1, .3, 1);
}

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

.aeronest-consent[hidden],
.aeronest-consent-manage[hidden],
.aeronest-consent-preferences[hidden] {
  display: none !important;
}

.aeronest-consent .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.aeronest-consent {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  color: var(--aeronest-consent-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  pointer-events: none;
}

.aeronest-consent-panel {
  width: min(100%, 1120px);
  max-height: calc(100dvh - 32px);
  padding: 22px;
  overflow: auto;
  background: var(--aeronest-consent-bg);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .24);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(16px);
  transition: opacity 180ms var(--aeronest-consent-ease), transform 180ms var(--aeronest-consent-ease);
}

.aeronest-consent.is-visible .aeronest-consent-panel {
  opacity: 1;
  transform: translateY(0);
}

.aeronest-consent-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
}

.aeronest-consent-copy {
  max-width: 68ch;
}

.aeronest-consent-title {
  margin: 0 0 7px;
  color: var(--aeronest-consent-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.aeronest-consent-description,
.aeronest-consent-note {
  margin: 0;
  color: var(--aeronest-consent-muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.aeronest-consent-description a,
.aeronest-consent-note a {
  color: var(--aeronest-consent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.aeronest-consent-actions,
.aeronest-consent-preference-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.aeronest-consent-button,
.aeronest-consent-manage {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--aeronest-consent-ease);
}

.aeronest-consent-button:hover,
.aeronest-consent-manage:hover {
  transform: translateY(-1px);
}

.aeronest-consent-button--primary {
  color: #ffffff;
  background: var(--aeronest-consent-brand);
}

.aeronest-consent-button--primary:hover {
  background: var(--aeronest-consent-brand-hover);
}

.aeronest-consent-button--secondary {
  color: #111318;
  background: #ffffff;
}

.aeronest-consent-button--secondary:hover {
  background: #e8edf4;
}

.aeronest-consent-button--text {
  color: var(--aeronest-consent-ink);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.aeronest-consent-button--text:hover {
  background: rgba(255, 255, 255, .08);
}

.aeronest-consent-button:focus-visible,
.aeronest-consent-manage:focus-visible,
.aeronest-consent-toggle input:focus-visible + .aeronest-consent-switch {
  outline: 3px solid #8db3ff;
  outline-offset: 3px;
}

.aeronest-consent-preferences {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--aeronest-consent-line);
}

.aeronest-consent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  background: var(--aeronest-consent-surface);
  border-radius: 8px;
}

.aeronest-consent-option {
  min-width: 0;
  padding: 16px;
}

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

.aeronest-consent-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.aeronest-consent-option h3 {
  margin: 0;
  color: var(--aeronest-consent-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.aeronest-consent-option p {
  margin: 0;
  color: var(--aeronest-consent-muted);
  font-size: 12px;
  line-height: 1.5;
}

.aeronest-consent-required {
  color: #b7c9ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.aeronest-consent-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  cursor: pointer;
}

.aeronest-consent-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.aeronest-consent-switch {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #5b6470;
  transition: background-color 160ms ease;
}

.aeronest-consent-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transition: transform 180ms var(--aeronest-consent-ease);
}

.aeronest-consent-toggle input:checked + .aeronest-consent-switch {
  background: var(--aeronest-consent-brand);
}

.aeronest-consent-toggle input:checked + .aeronest-consent-switch::after {
  transform: translateX(20px);
}

.aeronest-consent-preference-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.aeronest-consent-note {
  max-width: 68ch;
  font-size: 12px;
}

.aeronest-consent-manage {
  position: fixed;
  z-index: 70;
  bottom: 14px;
  left: 14px;
  min-height: 38px;
  padding: 8px 12px;
  color: #ffffff;
  background: #171a1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

@media (max-width: 860px) {
  .aeronest-consent-summary,
  .aeronest-consent-preference-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .aeronest-consent-actions,
  .aeronest-consent-preference-actions {
    justify-content: flex-start;
  }

  .aeronest-consent-options {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .aeronest-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .aeronest-consent-panel {
    max-height: calc(100dvh - 16px);
    padding: 18px;
    border-radius: 8px;
  }

  .aeronest-consent-actions,
  .aeronest-consent-preference-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .aeronest-consent-button {
    width: 100%;
    height: 52px;
  }

  .aeronest-consent-button--text {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aeronest-consent-panel,
  .aeronest-consent-button,
  .aeronest-consent-manage,
  .aeronest-consent-switch,
  .aeronest-consent-switch::after {
    transition: none;
  }
}
