.analytics-consent,
.analytics-preferences {
  font: inherit;
  z-index: 1000;
}

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

.analytics-consent {
  position: fixed;
  inset: auto 24px 24px auto;
  width: min(560px, calc(100vw - 32px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 22px;
  color: #f4f1e9;
  background: #16232a;
  border: 1px solid rgb(255 255 255 / 22%);
  box-shadow: 0 14px 50px rgb(0 0 0 / 28%);
}

.analytics-consent__copy h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}

.analytics-consent__copy p {
  margin: 0 0 10px;
  color: rgb(244 241 233 / 82%);
  font-size: 13px;
  line-height: 1.55;
}

.analytics-consent__copy a {
  color: #d9c49a;
  font-size: 12px;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: grid;
  gap: 8px;
  min-width: 146px;
}

.analytics-consent__actions button,
.analytics-preferences {
  min-height: 40px;
  padding: 9px 13px;
  color: #f4f1e9;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.analytics-consent__actions button:first-child {
  color: #16232a;
  background: #d9c49a;
  border-color: #d9c49a;
}

.analytics-consent button:focus-visible,
.analytics-preferences:focus-visible {
  outline: 2px solid #d9c49a;
  outline-offset: 3px;
}

.analytics-preferences {
  position: fixed;
  inset: auto auto 16px 16px;
  min-height: 34px;
  padding: 7px 10px;
  color: #f4f1e9;
  background: #16232a;
  font-size: 11px;
}

@media (max-width: 620px) {
  .analytics-consent {
    inset: auto 12px 12px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .analytics-consent__actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .analytics-consent__actions button {
    padding-inline: 8px;
  }
}
