.analytics-consent {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dfd9;
  border-radius: 8px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 18px 48px rgba(13, 22, 20, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: 760px;
  padding: 18px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  z-index: 70;
}

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

.analytics-consent-copy strong {
  color: #101716;
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 5px;
}

.analytics-consent-copy p {
  color: #53605c;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.analytics-consent-actions {
  display: flex;
  gap: 8px;
}

.analytics-consent-actions button,
.analytics-settings-link {
  border: 1px solid #c8d1ca;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
}

.analytics-consent-actions button {
  min-height: 44px;
  padding: 10px 14px;
  white-space: nowrap;
}

.analytics-consent-accept {
  background: #c23828;
  border-color: #c23828 !important;
  color: #fff;
}

.analytics-consent-reject {
  background: #fff;
  color: #101716;
}

.analytics-consent-actions button:focus-visible,
.analytics-settings-link:focus-visible {
  outline: 3px solid rgba(194, 56, 40, 0.3);
  outline-offset: 2px;
}

.analytics-settings-link {
  background: transparent;
  color: inherit;
  min-height: 36px;
  padding: 6px 10px;
}

body.analytics-consent-open .sticky-cta {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 680px) {
  .analytics-consent {
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 15px;
    width: calc(100% - 20px);
  }

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

  .analytics-consent-actions button {
    min-width: 0;
    padding-inline: 9px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .sticky-cta {
    transition: none;
  }
}
