/*********/
/*GENERAL*/
/*********/

main {
  padding-bottom: 90px;
}
h1 {
  margin-bottom: 90px;
}
h2 {
  text-align: start;
}

/************/
/*Cart Items*/
/************/
.cart__item {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid white;
  padding-top: 35px;
  margin-bottom: 30px;
}
.cart__item__img {
  width: 25%;
}
.cart__item__img img {
  width: 100%;
  border-radius: 25px;
}
.cart__item__content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart__item__content__titlePrice {
  display: flex;
  justify-content: space-between;
}
.cart__item__content__titlePrice h2,
.cart__item__content__titlePrice p {
  margin: 0;
}
.cart__item__content__settings p {
  margin: 0;
}
.cart__item__content__settings input {
  color: var(--footer-secondary-color);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid #767676;
  text-align: center;
  text-align-last: center;
}
.cart__item__content__settings input:focus {
  outline: none;
}
.cart__item__content__settings__quantity {
  display: flex;
}
.cart__item__content__settings__quantity p {
  margin-right: 10px;
  display: flex;
}
.cart__item__content__settings__delete p {
  display: inline;
}
.cart__item__content__settings__delete p:hover {
  cursor: pointer;
  font-weight: 700;
}

/*******/
/*Price*/
/*******/
.cart__price {
  border-top: 1px solid white;
  padding-top: 35px;
}
.cart__price p {
  text-align: end;
  font-size: 22px;
}

/*******/
/*Order*/
/*******/
.cart__order {
  display: flex;
  justify-content: center;
  margin-top: 90px;
}
.cart__order__form {
  width: 50%;
}
.cart__order__form__question {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}
.cart__order__form__question input {
  border-radius: 13px;
  border: 2px solid var(--main-color);
  height: 26px;
  margin-top: 4px;
}

.cart__order__form__question input.valid {
  border-color: rgba(46, 221, 46, 0.8);
}

.cart__order__form__question input.invalid {
  border-color: rgba(221, 77, 77, 0.8);
}

.cart__order__form__question input:focus {
  outline: none;
}
.cart__order__form__question p {
  margin-top: 0.3rem;
  color: #fbbcbc;
  font-size: 15px;
  margin-left: 8px;
}
.cart__order__form__submit {
  display: flex;
  justify-content: center;
}
.cart__order__form__submit input {
  font-size: 22px;
  border-radius: 40px;
  border: 0;
  background-color: var(--secondary-color);
  color: white;
  padding: 18px 28px;
  cursor: pointer;
  margin-top: 40px;
}
.cart__order__form__submit input:hover {
  box-shadow: rgb(42 18 206 / 90%) 0 0 22px 6px;
}

/***************/
/*Media queries*/
/***************/

@media (max-width: 991.98px) {
  .cart__item__content__titlePrice {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .cart__item {
    flex-direction: column;
    align-items: center;
  }
  .cart__item__img {
    width: 50%;
  }
  .cart__item__content {
    width: 90%;
  }
  .cart__item__content__titlePrice {
    margin-bottom: 20px;
  }
  .cart__price p {
    text-align: center;
  }
  .cart__order {
    justify-content: center;
  }
  .cart__order__form {
    width: 75%;
  }
}
