.analytics-consent {
  box-sizing: border-box;
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  padding: 14px;
  color: #173b30;
  background: #f6f0e2;
  border: 1px solid #b8ac8b;
  border-radius: 12px;
  box-shadow: 0 6px 24px #06181030;
  font: 13px/1.45 system-ui, sans-serif;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.analytics-consent h2 {
  font: 600 13px/1.35 system-ui, sans-serif;
  margin: 0;
  min-width: 0;
}
.analytics-consent p {
  margin: 0 0 11px;
  font: inherit;
  color: #375348;
}
.analytics-consent-header a {
  flex-shrink: 0;
  max-width: 48%;
  color: #173b30;
  font: 11px/1.35 system-ui, sans-serif;
  text-align: right;
  text-underline-offset: 3px;
}
.analytics-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.analytics-consent-actions button {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #173b30;
  border-radius: 7px;
  padding: 8px 9px;
  font: 600 12px/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.analytics-accept { background: #173b30; color: #fff5de; }
.analytics-decline { background: transparent; color: #173b30; }
.analytics-consent :focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid #a17c28;
  outline-offset: 3px;
}
.analytics-settings-container .analytics-settings {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 5px 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.analytics-settings-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  max-width: 100%;
}
.analytics-settings:hover { text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .analytics-consent {
    left: 10px;
    right: 10px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 12px;
    max-height: calc(100dvh - 110px);
    overflow: auto;
  }
  body:has(.mobile-bottom-nav) .analytics-consent {
    bottom: calc(var(--mobile-dock-height, 70px) + 16px + env(safe-area-inset-bottom, 0px));
  }
}
