.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: #fff;
  padding: 20px;
  margin: 0 20px;
  width: 100%;
  max-width: 800px;
}

.modal__block {
  padding: 30px 30px 60px 30px;
  display: flex;
  align-items: center;
  justify-content: start;
}

.modal__block__content {
  max-width: 436px;
  margin-left: 50px;
}

.modal__block__content__title {
  font-family: "Montserrat-SemiBold", sans-serif;
  font-style: normal;
  font-size: 36px;
  line-height: 36px;
  color: #000000;
}

.modal__product__quantity {
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 20px;
  margin: 10px 0;
}

#quantity-input {
  width: 30px;
  margin-top: 10px;
  margin-left: 10px;
  background: transparent;
  border: 0;
}

.modal__color__toggle {
  margin-top: 15px;
}

.modal__comment {
  max-width: 436px;
  margin-top: 10px;
}

.modal__comment__title {
  margin-top: 35px;
  font-family: "Montserrat-Bold", sans-serif;
}

.modal__comment__title {
  font-size: 20px;
  font-family: "Montserrat-Bold", sans-serif;
}

.modal__color__title {
  margin-top: 15px;
  font-size: 24px;
}

.modal__comment textarea::placeholder {
  font-size: 16px;
}

.modal__product__quantity {
  margin-top: 15px;
  font-size: 24px;
}

form {
  margin-top: 70px;
}

#color-red:before {
  content: "";
  height: 26px;
  width: 26px;
  background-color: rgb(187, 26, 26);
  transition: 0.4s;
  border-radius: 50%;
}

/* /////////////////// */

.color__button {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.color__button:enabled {
  border: 1px solid black;
}

input[type="radio"]:checked + .color__button {
  border: 5px solid #000000;
}

.white__color {
  background-color: rgb(230, 230, 230);
}

.blue__color {
  background-color: blue;
}
.black__color {
  background-color: black;
}

.green__color {
  background-color: green;
}

/* /////////////////// */

input[type="radio"] {
  display: none; /* скрываем оригинальный input */
}

label {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

input[type="radio"]:checked + label {
  background-color: #ccc;
}

/* ////////////////////// */

.modal-content input[type="number"],
.modal-content textarea {
  width: 100%;
  margin-left: 1px;
  padding: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
  color: #000000;
}

.modal-content textarea::placeholder{
  color: #8c8c8c;
}

.modal-content fieldset {
  margin-bottom: 10px;
}

.modal-content legend {
  font-weight: bold;
}

.modal-content label input[type="radio"] {
  /* margin-right: 5px; */
}

.modal-content button[type="submit"]{
  display: inline-block;
  font-family: 'Montserrat-Bold',sans-serif;
  padding: 13px 20px;
  border: 0;
  font-size: 18px;
  color: #FFFFFF;
  background: #5C5CDD;
  border-radius: 10px;
}

.modal-content button.close-modal {
  display: inline-block;
  font-family: 'Montserrat-Bold',sans-serif;
  padding: 13px 12px;
  color: #202020;
  font-size: 18px;
  border: 2px solid #5C5CDD;
  border-radius: 10px;
  background: transparent;
}


.modal-content button[type="submit"]:hover{
  background-color: #4141B8;
  transition: all 1s;
}

.modal-content button.close-modal:hover {
  background-color: #4141B8;
  transition: all 0.8s;
}