.jyaur-analytics-notice {
  box-sizing: border-box;
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  color: #102a26;
  background: #fffdf7;
  border: 1px solid #c7c5b9;
  border-radius: 0.75rem;
  box-shadow: 0 4px 22px #102a2633;
}

.jyaur-analytics-notice[hidden] {
  display: none;
}

.jyaur-analytics-notice h2 {
  margin: 0 0 0.3rem;
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.jyaur-analytics-notice p {
  margin: 0 0 0.75rem;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
}

.jyaur-analytics-notice a {
  color: inherit;
  text-decoration: underline;
}

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

.jyaur-analytics-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid #102a26;
  border-radius: 0.4rem;
  color: #fffdf7;
  background: #102a26;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.jyaur-analytics-actions button:hover {
  background: #21463e;
}

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

.jyaur-analytics-notice :focus-visible,
.jyaur-analytics-settings:focus-visible {
  outline: 2px solid #ac7121;
  outline-offset: 3px;
}

.jyaur-privacy-copy {
  max-width: 74ch;
}

.jyaur-privacy-copy h2 {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.jyaur-privacy-copy h2:first-child {
  margin-top: 0;
}
