.analytics-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(356px, calc(100vw - 32px));
  padding: 14px 14px 13px;
  border: 1px solid rgba(22, 21, 19, .16);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 12px 28px rgba(22, 21, 19, .10);
}

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

.analytics-consent h2,
.analytics-consent p { margin-top: 0; }

.analytics-consent h2 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.analytics-consent p {
  margin-bottom: 10px;
  color: #6e6a69;
  font-size: 14px;
  line-height: 1.42;
}

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

.analytics-consent__announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.analytics-consent button,
.analytics-settings {
  min-height: 44px;
  border: 1px solid rgba(22, 21, 19, .18);
  border-radius: 10px;
  background: transparent;
  color: #161513;
  font: inherit;
  cursor: pointer;
}

.analytics-consent__accept,
.analytics-consent__decline {
  width: 100%;
}

.analytics-consent button.analytics-consent__accept {
  border-color: #161513;
  background: #161513;
  color: #fffdf9;
  font-size: 16px;
  font-weight: 600;
}

.analytics-consent button.analytics-consent__decline {
  justify-self: center;
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6e6a69;
  font-size: 14px;
  line-height: 1.42;
  text-decoration: none;
}

.analytics-consent button:active,
.analytics-settings:active { transform: translateY(1px); }

.analytics-consent button:focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid #9e7953;
  outline-offset: 3px;
}

.analytics-settings {
  min-height: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

@media (max-width: 540px) {
  .analytics-consent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
  }
}
