/* The banner of the consent to Yandex Metrica: small, at the bottom, over the page. */
.consent {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  padding: 14px 16px;
  border: 1px solid var(--frame);
  background: #1a1918;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.consent[hidden] {
  display: none;
}

.consent__text {
  margin: 0;
}

.consent__text p {
  margin: 0;
}

.consent__text p + p {
  margin-top: 4px;
}

.consent__q {
  color: var(--paper);
  font-size: 15px;
  font-weight: 560;
}

.consent__act {
  display: flex;
  gap: 8px;
}

.consent__yes,
.consent__no {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--frame);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.consent__yes {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-weight: 560;
}

.consent__yes:focus-visible,
.consent__no:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .consent {
    right: auto;
    left: 24px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .consent__yes,
  .consent__no {
    flex: none;
    padding: 0 20px;
  }
}

/* The page can scroll past the banner, so that it never covers the last line or a button. */
body::after {
  content: "";
  display: block;
  height: var(--consent-h, 0px);
}
