.analytics-settings {
  padding: 12px 24px;
  text-align: center;
}

#analytics-settings {
  background: transparent;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
}

#analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 8px 8px;
  width: min(100% - 16px, 960px);
  max-height: 50dvh;
  margin-inline: auto;
  padding: 12px 16px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px #0002;
}

#analytics-consent.is-editing {
  width: min(100% - 16px, 520px);
  max-height: 72dvh;
}

#analytics-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

#analytics-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

#analytics-consent h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

#analytics-consent a {
  text-decoration: underline;
}

#analytics-consent .consent-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

#analytics-consent .consent-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

#analytics-consent .consent-options p {
  margin: 2px 0 10px 26px;
  font-size: 14px;
  line-height: 1.45;
}

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

#analytics-consent .consent-actions .button {
  min-height: 44px;
  padding: 5px 12px;
  line-height: 1.25;
  white-space: normal;
}

#analytics-accept {
  border-color: #8b9a89;
  background: #d9ead5;
  color: #243728;
}

#analytics-accept:hover {
  background: #cfe3ca;
}

@media (max-width: 680px) {
  #analytics-consent {
    padding: 10px;
  }

  #analytics-summary {
    display: grid;
    gap: 8px;
  }

  #analytics-summary .consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #analytics-consent .consent-actions .button {
    padding-inline: 5px;
  }
}
