.bottom-popups {
  max-width: calc(100vw - 40px);
}

.window-max {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
}

.window-max--cookie {
  display: block;
  padding: 14px;
}

.window-max--cookie .window-max__header {
  margin-bottom: 6px;
}

.window-max--cookie .window-max__buttons {
  margin-top: 10px;
}

.window-max--cookie .window-max__button.button {
  min-height: 44px;
  font-family: inherit;
}

.window-max--cookie .cookie__text {
  max-height: min(112px, 22vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 13px;
  line-height: 1.35;
}

.window-max__header {
  padding-right: 34px;
}

.window-max__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.window-max__close:focus-visible,
.window-max__button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 990px) {
  .bottom-popups {
    right: 10px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 10px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .window-max {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px - env(safe-area-inset-bottom));
    padding: 16px;
  }

  .window-max--cookie {
    padding: 14px;
  }
}
