body > .c-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: flex-start;
  flex-direction: column;
  padding: 40px 60px;
  color: var(--main-text-color);
  background: #fffdfc;
  box-shadow: 0px 4px 100px rgba(0, 0, 0, 0.1);
  border-radius: 1px;
  z-index: 9999;
}

.c-modal.open {
  display: flex;
}

.c-modal .icon-close {
  position: absolute;
  right: 60px;
  top: calc(40px + (30px * 1.5 / 2 - (24px / 2)));
}

.c-modal .c-p1 {
  font-size: 30px;
}

.c-modal .c-p1.in-cart {
  margin-right: 100px;
}

.c-modal .c-p5:not(.form-checkbox) span + span {
  margin-left: 30px;
}

.c-modal .buttons {
  display: flex;
  column-gap: 10px;
}

.c-modal .form-input {
  display: inline-flex;
  flex-direction: column;
  row-gap: 10px;
}

.c-modal .form-input + .form-input {
  margin-left: 40px;
}

.c-modal .form-input input {
  background: none;
  border-bottom: 1px solid var(--main-text-color);
}

.c-modal .form-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.c-modal .form-checkbox input {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
  z-index: -1;
}

.c-modal .form-checkbox .checkmark {
  background: none;
  flex-shrink: 0;
}

.c-modal .form-input input::placeholder {
  opacity: 0.68;
}

.c-modal .w-500 {
  width: 500px;
}

.c-modal .w-520 {
  width: 520px;
}

.c-modal .mb-5 {
  margin-bottom: 5px;
}

.c-modal .mb-10 {
  margin-bottom: 10px;
}

.c-modal .mb-15 {
  margin-bottom: 15px;
}

.c-modal .mb-20 {
  margin-bottom: 20px;
}

.c-modal .mb-30 {
  margin-bottom: 30px;
}

.modal-auth {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: flex-start;
  flex-direction: column;
  padding: 0;
  color: var(--main-text-color);
  background: #fffdfc;
  box-shadow: 0px 4px 100px rgba(0, 0, 0, 0.1);
  border-radius: 1px;
  z-index: 9999;
}
.modal-auth.open {
  display: flex;
}
.modal-auth .icon-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1;
}

@media screen and (max-width: 1439px) {
  .c-modal .icon-close {
    font-size: 20px;
    top: calc(40px + (30px * 1.5 / 2 - (20px / 2)));
  }

  .c-modal .form-checkbox input {
    width: 16px;
    height: 16px;
  }

  .c-modal .form-checkbox {
    font-size: 14px;
  }

  .c-modal .w-500 {
    width: 420px;
  }

  .c-modal .w-520 {
    width: 440px;
  }
}

@media screen and (max-width: 1279px) {
  .c-modal .icon-close {
    top: calc(40px + (18px * 1.5 / 2 - (24px / 2)));
    right: 0;
  }

  .c-modal .c-p1 {
    font-size: 18px;
  }

  .c-modal .c-p1.in-cart {
    margin-right: 0;
  }

  .c-modal .c-p5:not(.form-checkbox) span + span {
    margin-left: 20px;
  }

  .c-modal .form-input {
    width: 200px;
  }

  .c-modal .form-checkbox input,
  .c-modal .form-checkbox .checkmark {
    width: 20px;
    height: 20px;
  }

  .c-modal .mb-15 {
    margin-bottom: 10px;
  }

  .c-modal .w-520 {
    width: 460px;
  }
}

@media screen and (max-width: 767px) {
  .c-modal .c-p1.in-cart {
    width: 80%;
  }

  .c-modal .c-p2 {
    font-size: 14px;
  }

  .c-modal .icon-close {
    top: calc(30px + (18px * 1.5 / 2 - (20px / 2)));
  }

  .c-modal .form-input + .form-input {
    margin-left: 0;
  }

  .c-modal .form-checkbox {
    align-items: flex-start;
  }

  .c-modal .buttons {
    flex-direction: column;
    row-gap: 10px;
  }

  .c-modal .w-500 {
    width: 290px;
  }

  .c-modal .w-520 {
    width: 260px;
  }

  .c-modal .reqisites ~ .c-p5 {
    font-size: 12px;
  }

  .modal-auth {
    left: 10%;
    transform: translate(-5%, -50%);
  }
}
