.analytics-consent {
  position: fixed;
  z-index: 90;
  bottom: 16px;
  left: 50%;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #cfd9e2;
  border-radius: 8px;
  color: #243447;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(19, 36, 58, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.has-mobile-bottom-nav .analytics-consent {
  bottom: 78px;
}

.analytics-consent strong {
  display: block;
  color: #15324f;
  font-size: 17px;
}

.analytics-consent p {
  margin: 7px 0 0;
  color: #536579;
  font-size: 14px;
  line-height: 1.5;
}

.analytics-consent a {
  color: #147c75;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.analytics-consent button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #c4d0da;
  border-radius: 6px;
  color: #15324f;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-consent button[data-analytics-choice="granted"] {
  border-color: #147c75;
  color: #ffffff;
  background: #147c75;
}

.analytics-consent button:hover {
  border-color: #147c75;
}

[data-analytics-preferences] {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .analytics-consent {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 15px;
  }

  body.has-mobile-bottom-nav .analytics-consent {
    bottom: 74px;
  }

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

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