.overlay,
.modal-overlay,
.edit-modal-overlay {
  display: none;
  position: fixed;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: rgb(0 0 0 / 25%);
  backdrop-filter: blur(1px);
  z-index: 21;
}

.modal-overlay {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(5);
}

.modal-overlay.open,
.edit-modal-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.edit-modal-overlay .edit-modal {
  margin: auto !important;
}

.modal-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content__inner,
.edit-modal {
  max-width: 450px;
  position: relative;
  background-color: #fff;
  padding: 28px 24px 22px;
  border-radius: 6px;
  margin: 20px !important;
  width: calc(65% - 20px);
}

.modal-content__inner h3,
.edit-modal-header h3 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  line-height: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 14px;
  width: 14px;
  border: none;
  background-color: transparent;
}

.modal-close span {
  position: absolute;
  height: 1px;
  width: 100%;
  background-color: black;
}

.modal-close span:first-child {
  right: 0;
  transform: rotate(45deg);
}

.modal-close span:last-child {
  right: 0;
  transform: rotate(-45deg);
}

.modal-close:hover span:first-child {
  right: 0;
  transform: rotate(180deg);
}

.modal-close:hover span:last-child {
  right: 0;
  transform: rotate(-180deg);
}

.form-actions {
  display: flex;
  margin-top: 20px;
  gap: 20px;
  justify-content: space-between;
}
