body.modal-open {
  overflow: hidden;
}

.stoyp-modal[hidden] {
  display: none;
}

.stoyp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.stoyp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.stoyp-modal__dialog {
  position: relative;
  max-width: 900px;
  width: calc(100% - 30px);
  margin: 8vh auto;
  background: var(--color-main);
  color: var(--color-main-font);
  padding: 30px;
}

.stoyp-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.stoyp-modal__close:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--color-main-alt-font-hover);
}

