#cart {
  max-width: 1160px;
  margin: 0 auto;
  padding: 47px 24px 148px;
}

/* ------ Header ------ */
#cart .header {
  font-size: 16px;
  padding-right: 31px;
  display: flex;
  line-height: 19px;
}

#cart .header .title {
  flex-grow: 1;
  flex-shrink: 0;
  font-weight: bold;
  width: 280px;
}

.item__quantity,
.item__price,
.item__subtotal {
  width: 173px;
  text-align: center;
  flex-shrink: 1;
}

.item__remove {
  width: 84px;
  text-align: right;
  flex-shrink: 1;
}

/* ------ Items ------ */
#cart .items {
  font-size: 16px;
  color: #3f3a3a;
  padding: 40px 31px;
  border: solid 1px #979797;
  margin-top: 16px;
  border-radius: 8px;
}

#cart .items .item {
  display: flex;
  align-items: center;
}

#cart .item + .item {
  margin-top: 30px;
}

.item__image {
  width: 114px;
  margin-right: 20px;
}

.item__detail {
  line-height: 19px;
  align-self: flex-start;
  flex-grow: 1;
  flex-shrink: 1;
}

.item__id {
  margin-top: 18px;
}

.item__color {
  margin-top: 22px;
}

.item__size {
  margin-top: 10px;
}

.mobile-text {
  display: none;
}

.item__quantity select {
  width: 80px;
  height: 30px;
  padding: 0 10px 0 17px;
  border-radius: 8px;
  border: solid 1px #979797;
  background-color: #f3f3f3;
  outline: none;
}

.item__remove img {
  cursor: pointer;
  display: inline-block;
}

/* ------ Shipment ------ */
#cart .shipment {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #e8e8e8;
  margin-top: 26px;
  padding: 22px 0 22px 30px;
  border-radius: 8px;
}

.shipment__name {
  font-size: 16px;
  color: #3f3a3a;
  line-height: 19px;
}

.shipment__select {
  width: 171px;
  height: 30px;
  padding: 0 14px 0 17px;
  border-radius: 8px;
  border: solid 1px #979797;
  background-color: #f3f3f3;
  margin-left: 20px;
  margin-right: 82px;
  font-size: 14px;
  color: #3f3a3a;
}

/* ------ Reminder ------ */
#cart .reminder {
  line-height: 26px;
  font-size: 16px;
  color: #3f3a3a;
  margin-top: 20px;
}

/* ------ Form ------ */
#cart .form-header {
  line-height: 19px;
  font-size: 16px;
  font-weight: bold;
  color: #3f3a3a;
  padding-bottom: 16px;
  border-bottom: 1px solid #3f3a3a;
  margin-top: 30px;
}

#cart .form .field {
  margin-top: 30px;
  display: flex;
  align-items: center;
}

.field__name {
  width: 80px;
  line-height: 19px;
  font-size: 16px;
  color: #3f3a3a;
  margin-right: 30px;
  flex-shrink: 0;
}

.field__input {
  width: 574px;
  display: flex;
  align-items: center;
}

.field__input input[type="text"],
.tpfield {
  width: 100%;
  height: 30px;
  border-radius: 8px;
  border: solid 1px #979797;
  padding: 0 4px;
}

.field__input input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0 10px 0 0;
  border: solid 1px #979797;
}

.field__input label {
  margin-right: 30px;
  line-height: 26px;
  font-size: 16px;
  color: #3f3a3a;
}

/* ------ Summary ------ */
#cart .summary {
  border-top: 1px solid #3f3a3a;
  margin-top: 37px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.subtotal {
  display: flex;
  flex-direction: row;
  margin-top: 40px;
  width: 240px;
  justify-content: space-between;
  padding-left: 13px;
  align-items: center;
}

.freight {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3f3a3a;
  width: 240px;
  justify-content: space-between;
  padding-left: 13px;
  align-items: center;
}

.total {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
  width: 240px;
  justify-content: space-between;
  padding-left: 13px;
  align-items: center;
}

#checkout {
  width: 240px;
  height: 60px;
  background-color: black;
  font-size: 20px;
  letter-spacing: 4px;
  color: #ffffff;
  margin-top: 50px;
  cursor: pointer;
  border-radius: 8px;
}

#checkout:hover {
  background-color: #2b2724;
}

.summary .name,
.value {
  line-height: 19px;
  font-size: 16px;
  color: #3f3a3a;
  display: flex;
  align-items: center;
}

.summary .value span {
  line-height: 36px;
  font-size: 30px;
  margin-left: 10px;
}

.loading--active {
  width: 100%;
  height: 100vh;
  background-color: #979797;
  opacity: 0.5;
  position: fixed;
  top: 0;
  display: flex;
}

.loading__gif {
  display: none;
}

.loading_gif--active {
  width: 100px;
  margin: auto;
}

/* ------------------------- */
/*        Media Query        */
/* ------------------------- */
@media only screen and (max-width: 768px) {
  #cart {
    padding-top: 20px;
    padding-bottom: 28px;
  }
  /* ------ Header ------ */
  #cart .header {
    padding-bottom: 10px;
    border-bottom: 1px solid #3f3a3a;
  }
  .header .item__quantity,
  .header .item__price,
  .header .item__subtotal {
    display: none;
  }

  /* ------ Items ------ */
  #cart .items {
    padding: 0;
    border: none;
    margin-top: 0;
  }

  #cart .items .item {
    margin-top: 0;
    padding: 20px 0;
    border-bottom: 1px solid #3f3a3a;
    flex-wrap: wrap;
  }

  .item__detail {
    width: calc(100% - 218px);
  }

  .item__quantity {
    order: 1;
    width: 33%;
    flex-shrink: 0;
    margin-top: 20px;
    line-height: 30px;
  }

  .item__price {
    order: 2;
    width: 33%;
    flex-shrink: 0;
    margin-top: 20px;
    line-height: 30px;
  }

  .item__subtotal {
    order: 3;
    width: 33%;
    flex-shrink: 0;
    margin-top: 20px;
    line-height: 30px;
  }

  .mobile-text {
    display: block;
  }

  /* ------ Shipment ------ */
  #cart .shipment {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    margin-top: 20px;
  }

  .shipment__name {
    font-size: 14px;
    line-height: 17px;
  }

  .shipment__select {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    padding: 0 10px 0 17px;
  }

  .shipment__select + .shipment__name {
    margin-top: 20px;
  }

  /* ------ Reminder ------ */
  #cart .reminder {
    font-size: 14px;
    margin-top: 10px;
  }

  /* ------ Form ------ */
  #cart .form-header {
    font-size: 14px;
    padding-bottom: 10px;
  }

  #cart .form .field {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .field__name {
    line-height: 17px;
    font-size: 14px;
  }

  .field__input {
    width: 100%;
    margin-top: 10px;
  }

  .field__input input[type="radio"] {
    margin: 0 6px 0 0;
  }

  .field__input label {
    margin-right: 18px;
    line-height: 26px;
    font-size: 14px;
    color: #3f3a3a;
  }

  /* ------ Summary ------ */
  #checkout {
    font-size: 16px;
    letter-spacing: 3.2px;
    margin-top: 36px;
    width: 100%;
  }
}
