.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: block;
  width: min(440px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid rgba(216, 189, 125, 0.35);
  border-radius: 10px;
  background: #232321;
  color: #f0ede6;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  font-family: "Onest", Arial, sans-serif;
  text-align: left;
}

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

.analytics-consent__copy h2,
.analytics-consent__copy .analytics-consent__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.analytics-consent__copy p {
  margin: 0;
  color: #e0dcd3;
  font-size: 13px;
  line-height: 1.55;
}

.analytics-consent__copy a {
  color: #e0c78e;
  font-size: inherit;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.analytics-consent__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.analytics-consent__button {
  display: inline-flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #d8bd7d;
  border-radius: 7px;
  background: transparent;
  color: #f0ede6;
  font: 500 12px/1.4 "Onest", Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.analytics-consent__button:hover {
  border-color: #eed9a8;
  background: #35342e;
}

.analytics-consent__button--allow {
  background: #d8bd7d;
  color: #1b1a16;
}

.analytics-consent__button--allow:hover {
  background: #e3ca91;
}

.analytics-consent a:focus-visible,
.analytics-consent button:focus-visible {
  outline: 2px solid #f3dda9;
  outline-offset: 4px;
}

[data-analytics-settings] {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .analytics-consent {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: 440px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 16px;
  }

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

  .analytics-consent__button {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent__button {
    transition: none;
  }
}
