.analytics-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #d9dfeb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

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

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

.analytics-consent__privacy-link {
  color: #4933e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.analytics-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font: 700 15px/1.3 "Plus Jakarta Sans", sans-serif;
}

.analytics-consent__copy p {
  margin: 0;
  color: #5b6475;
  font: 400 13px/1.5 Inter, sans-serif;
}

.analytics-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.analytics-consent__button,
.analytics-consent__settings {
  border: 1px solid #cfd7e6;
  border-radius: 10px;
  font: 600 12px/1 Inter, sans-serif;
  cursor: pointer;
}

.analytics-consent__button {
  min-height: 38px;
  padding: 0 14px;
  background: #ffffff;
  color: #334155;
}

.analytics-consent__button--primary {
  border-color: #315efb;
  background: #315efb;
  color: #ffffff;
}

.analytics-consent__button:hover,
.analytics-consent__settings:hover {
  filter: brightness(0.97);
}

.analytics-consent__settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.94);
  color: #64748b;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transition: bottom 180ms ease;
}

@media (max-width: 640px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .analytics-consent__actions {
    width: 100%;
  }

  .analytics-consent__button {
    flex: 1;
  }

  html.has-mobile-result-summary .analytics-consent__settings {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
