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

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  width: min(760px, calc(100% - 36px));
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  border: 1px solid rgba(42, 36, 33, .24);
  border-radius: 14px;
  background: rgb(250, 250, 248);
  box-shadow: 0 18px 60px rgba(42, 36, 33, .2);
  color: rgb(42, 36, 33);
  padding: 22px;
  font-family: inherit;
}

.analytics-consent strong {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.analytics-consent p {
  max-width: 52ch;
  margin: 0;
  color: inherit;
  font-size: .83rem;
  line-height: 1.5;
}

.analytics-consent-details {
  display: inline-block;
  margin-top: 9px;
  color: inherit;
  font-size: .75rem;
  font-weight: 600;
  text-underline-offset: .2em;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 9px;
}

.analytics-consent-actions button {
  flex: 1 1 180px;
  min-height: 42px;
  border: 1px solid rgb(244, 70, 44);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.analytics-consent-accept {
  background: rgb(244, 70, 44);
  color: rgb(250, 250, 248);
}

.analytics-consent-decline {
  background: transparent;
  color: rgb(42, 36, 33);
}

.analytics-consent-actions button:hover,
.analytics-consent-actions button:focus-visible,
.analytics-consent-details:hover,
.analytics-consent-details:focus-visible,
.analytics-preferences-link:hover,
.analytics-preferences-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.analytics-consent-actions button:focus-visible,
.analytics-consent-details:focus-visible,
.analytics-preferences-link:focus-visible {
  outline: 2px solid rgb(244, 70, 44);
  outline-offset: 3px;
}

.analytics-preferences-link {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

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

  .analytics-consent-actions button { flex: 1 1 150px; }
}
