.analytics-consent,
.analytics-settings {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem 1.1rem;
  color: #eaf2ff;
  background: rgba(7, 20, 38, .97);
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 1rem;
  box-shadow: 0 22px 55px rgba(2, 8, 23, .35);
  backdrop-filter: blur(14px);
}

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

.analytics-settings[hidden] {
  display: none;
}

.analytics-consent__copy strong {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.analytics-consent__copy p {
  max-width: 48rem;
  margin: 0;
  color: #cbd5e1;
  font-size: .9rem;
  line-height: 1.55;
}

.analytics-consent__copy a {
  color: #a7f3d0;
  text-underline-offset: .16em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.analytics-consent button,
.analytics-settings {
  min-height: 2.75rem;
  padding: .72rem 1rem;
  color: #f8fafc;
  background: #17243a;
  border: 1px solid #52647e;
  border-radius: .7rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.analytics-consent button:hover,
.analytics-settings:hover {
  background: #22314a;
}

.analytics-consent button:focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 3px;
}

.analytics-consent .analytics-consent__accept {
  color: #052e2b;
  background: #5eead4;
  border-color: #5eead4;
}

.analytics-consent .analytics-consent__accept:hover {
  background: #99f6e4;
}

.analytics-settings {
  position: fixed;
  z-index: 1190;
  bottom: .75rem;
  left: .75rem;
  min-height: 2.35rem;
  padding: .58rem .8rem;
  color: #dbeafe;
  background: rgba(7, 20, 38, .94);
  border-color: rgba(148, 163, 184, .48);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, .22);
  font-size: .78rem;
}

@media (max-width: 760px) {
  .analytics-consent {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding: 1rem;
  }

  .analytics-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 420px) {
  .analytics-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-settings {
    scroll-behavior: auto;
  }
}
