.analytics-consent {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 10000;
  width: min(430px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 12px;
  background: #111;
  color: #f4f4f2;
  box-shadow: 0 20px 60px rgb(0 0 0 / 38%);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.analytics-consent[hidden] {
  display: none;
}

.analytics-consent-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.analytics-consent-copy {
  margin: 0;
  color: #b8b8b5;
  font-size: 14px;
  line-height: 1.5;
}

.analytics-consent-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent-status {
  margin: 14px 0 0;
  color: #f4f4f2;
  font: 500 10px/1.4 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.analytics-consent-button {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 8px;
  background: transparent;
  color: #f4f4f2;
  font: 600 11px/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.analytics-consent-button:hover {
  border-color: #f4f4f2;
  background: rgb(255 255 255 / 8%);
}

.analytics-consent-button:focus-visible,
[data-analytics-settings]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.analytics-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .analytics-consent {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }

  .analytics-consent-actions {
    display: grid;
  }

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