.analytics-consent-panel,
.analytics-consent-manage {
  --analytics-paper: #fcfbf7;
  --analytics-ink: #12283a;
  --analytics-navy: #123a5a;
  --analytics-teal: #0b806f;
  --analytics-gold: #c8a45f;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.analytics-consent-panel {
  position: fixed;
  z-index: 2147482000;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 24px;
  align-items: center;
  width: min(920px, calc(100vw - 32px));
  padding: 22px;
  overflow: hidden;
  color: var(--analytics-ink);
  background:
    linear-gradient(135deg, rgba(200, 164, 95, 0.12), transparent 42%),
    var(--analytics-paper);
  border: 1px solid rgba(18, 58, 90, 0.22);
  border-radius: 18px;
  box-shadow: 0 20px 52px rgba(9, 29, 45, 0.24);
  transform: translateX(-50%);
}

.analytics-consent-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--analytics-gold), var(--analytics-teal));
}

.analytics-consent-copy,
.analytics-consent-actions {
  position: relative;
  min-width: 0;
}

.analytics-consent-eyebrow {
  margin: 0 0 6px;
  color: var(--analytics-teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.analytics-consent-panel h2 {
  margin: 0;
  color: var(--analytics-navy);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
}

.analytics-consent-panel p:not(.analytics-consent-eyebrow) {
  margin: 9px 0 6px;
  color: #334b5d;
  font-size: 14px;
  line-height: 1.52;
}

.analytics-consent-panel a {
  color: var(--analytics-navy);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-consent-actions:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.analytics-consent-button,
.analytics-consent-manage {
  min-height: 46px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-consent-button {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--analytics-navy);
}

.analytics-consent-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--analytics-navy), #0d5367);
}

.analytics-consent-secondary {
  color: var(--analytics-navy);
  background: rgba(255, 255, 255, 0.74);
}

.analytics-consent-manage {
  position: fixed;
  z-index: 2147481999;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  padding: 9px 15px;
  color: #fff;
  background: rgba(18, 58, 90, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: 0 10px 26px rgba(9, 29, 45, 0.2);
}

.analytics-consent-manage[hidden] {
  display: none !important;
}

.analytics-consent-button:is(:hover, :focus-visible),
.analytics-consent-manage:is(:hover, :focus-visible),
.analytics-consent-panel a:focus-visible {
  outline: 3px solid rgba(200, 164, 95, 0.74);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .analytics-consent-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    width: min(100% - 20px, 560px);
    padding: 19px 17px 17px 20px;
    border-radius: 15px;
  }

  .analytics-consent-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .analytics-consent-panel h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent-panel,
  .analytics-consent-button,
  .analytics-consent-manage {
    scroll-behavior: auto;
    transition: none !important;
  }
}
