.tnva-analytics {
  position: fixed;
  z-index: 10000;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 16px;
  color: #202820;
  font: 400 12px/1.5 "Public Sans", sans-serif;
}

.tnva-analytics * {
  box-sizing: border-box;
}

.tnva-analytics [hidden] {
  display: none !important;
}

.tnva-analytics button {
  cursor: pointer;
  font: inherit;
}

.tnva-analytics-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  padding: 0 16px 20px;
  background: #f8f7f1;
  color: #536359;
  text-align: center;
  font: 400 12px/1.5 "Public Sans", sans-serif;
}

.tnva-analytics-preferences,
.tnva-footer-link {
  color: inherit;
  text-decoration: none;
}

.tnva-analytics-preferences:hover,
.tnva-footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tnva-analytics-preferences:focus-visible,
.tnva-footer-link:focus-visible {
  outline: 2px solid #203e31;
  outline-offset: 3px;
}

.tnva-analytics-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #d7ded3;
  border-radius: 6px;
  background: #fffefa;
}

.tnva-analytics-panel h2 {
  margin: 0 24px 8px 0;
  font: 600 15px/1.4 "Public Sans", sans-serif;
}

.tnva-analytics-panel p {
  margin: 0 0 8px;
}

.tnva-analytics-panel a {
  color: #203e31;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#tnva-analytics-status {
  margin-top: 12px;
  color: #536359;
  font-size: 12px;
}

#tnva-analytics-status:empty {
  display: none;
}

.tnva-analytics-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #536359;
  font-size: 22px !important;
}

.tnva-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tnva-analytics-actions button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7ded3;
  border-radius: 5px;
  background: #f8f7f1;
  color: #203e31;
}

.tnva-analytics-actions button:hover:not(:disabled) {
  background: #e3eae0;
}

.tnva-analytics button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tnva-analytics :is(button, a):focus-visible {
  outline: 2px solid #203e31;
  outline-offset: 3px;
}

.analytics-privacy {
  width: min(760px, 100%);
  margin: 32px auto 72px;
  padding: 0 28px;
  font-size: 16px;
  line-height: 1.7;
}

.analytics-privacy h1 {
  margin: 0 0 24px;
  font: 400 clamp(36px, 6vw, 54px)/1.1 "Erode", Georgia, serif;
}

.analytics-privacy h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}

.analytics-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
