.analytics-consent {
  position: fixed;
  z-index: 1500;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #dce3ed;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  color: #334155;
  font-family: Inter, system-ui, sans-serif;
}

.analytics-consent__copy {
  max-width: 650px;
}

.analytics-consent h2 {
  margin: 0 0 0.45rem;
  color: #1b2a5e;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
}

.analytics-consent p {
  margin: 0 0 0.45rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.analytics-consent a {
  color: #1b2a5e;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #1b2a5e;
  border-radius: 0.45rem;
  background: #1b2a5e;
  color: #ffffff;
  cursor: pointer;
  font: 600 0.84rem/1.2 Inter, system-ui, sans-serif;
}

.analytics-consent__actions button[data-consent="granted"] {
  border-color: #c71778;
  background: #c71778;
}

.analytics-consent__actions button:hover {
  filter: brightness(1.08);
}

.analytics-consent__actions button:focus-visible,
.analytics-cookie-settings:focus-visible {
  outline: 3px solid #00bfa5;
  outline-offset: 3px;
}

.analytics-cookie-settings {
  position: fixed;
  z-index: 1400;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  background: #1b2a5e;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  color: #ffffff;
  cursor: pointer;
  font: 500 0.75rem/1.4 Inter, system-ui, sans-serif;
}

.analytics-cookie-settings:hover {
  background: #263a7d;
}

@media (max-width: 720px) {
  .analytics-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

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

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

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