.pod-analytics[hidden],
.pod-analytics-settings[hidden] {
  display: none;
}

.pod-analytics {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  max-width: 58rem;
  max-height: 70vh;
  overflow: auto;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0.75rem 2.25rem rgb(18 42 54 / 18%);
}

.pod-analytics-copy {
  flex: 1 1 19rem;
}

.pod-analytics-copy h2,
.pod-analytics-copy p {
  margin: 0 0 0.35rem;
}

.pod-analytics-copy h2 {
  font-size: 1.05rem;
}

.pod-analytics-copy p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pod-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pod-analytics-actions button {
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--brand-action);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pod-analytics-actions button:hover {
  background: var(--cream);
}

.pod-analytics-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.pod-analytics :is(button, a):focus-visible,
.pod-analytics-settings:focus-visible {
  outline: 2px solid var(--brand-action);
  outline-offset: 2px;
}
