.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  display: flex;
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #044d2a;
  background: #ffd93d;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(2, 53, 28, .35);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

.analytics-consent__copy {
  min-width: 0;
}

.analytics-consent__copy h2 {
  margin: 0 0 3px;
  color: #044d2a;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.analytics-consent__copy p {
  margin: 0;
  color: #076736;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.analytics-consent__copy a {
  color: inherit;
  font-weight: 900;
  text-underline-offset: 2px;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.analytics-consent__button,
.analytics-settings {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.analytics-consent__button {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.analytics-consent__button--accept {
  color: #fff;
  background: #118a47;
}

.analytics-consent__button--reject {
  color: #044d2a;
  background: rgba(255, 255, 255, .72);
}

.analytics-consent__button:focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.analytics-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  font-weight: 900;
}

@media (max-width: 560px) {
  .analytics-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .analytics-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
