/* for cart and items */
#cart {
  max-width: 1160px;
  margin: 0 auto;
  padding: 47px 24px 148px;
}

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

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

#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 > .items > .item + .item {
  margin-top: 30px;
}

#cart > .items > .item > .item-img {
  width: 114px;
  margin-right: 20px;
  border-radius: 5px;
}

#cart > .items > .item > .item-detail {
  line-height: 19px;
  align-self: flex-start;
  flex-grow: 1;
  flex-shrink: 1;
}

#cart > .items > .item > .item-detail > .item-id {
  margin-top: 18px;
}

#cart > .items > .item > .item-detail > .item-color {
  margin-top: 22px;
}

#cart > .items > .item > .item-detail > .item-size {
  margin-top: 10px;
}

.item-quantity,
.item-price,
.item-subtotal {
  width: 173px;
  text-align: center;
  flex-shrink: 1;
}

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

.mobile-text {
  display: none;
}

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

.item-remove > img {
  cursor: pointer;
  border-radius: 50%;
  border: solid 1px #b7b7a4;
}

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

#cart > .shipment > .shipment-name {
  font-size: 16px;
  line-height: 19px;
  color: #3f3a3a;
}

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

#cart > .reminder {
  margin-top: 30px;
  line-height: 26px;
  font-size: 16px;
  color: #3f3a3a;
}

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

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

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

#cart > .form > .field > .field-input {
  width: 574px;
  display: flex;
  align-items: center;
}

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

#cart > .form > .field > .field-input > input[type='radio'] {
  width: 16px;
  height: 16px;
  margin: 0 10px 0 0;
  border: solid 1px #979797;
}

#cart > .form > .field > .field-input > label {
  margin-right: 30px;
  line-height: 26px;
  font-size: 16px;
  color: #3f3a3a;
}

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

#cart > .summary > .subtotal,
#cart > .summary > .freight,
#cart > .summary > .total {
  display: flex;
  width: 240px;
  justify-content: space-between;
  padding-left: 13px;
  align-items: center;
}

#cart > .summary > .subtotal {
  margin-top: 40px;
}

#cart > .summary > .freight {
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: solid 1px #3f3a3a;
}

#cart > .summary > .total {
  margin-top: 20px;
}

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

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

#cart > .summary > #checkout {
  width: 240px;
  height: 60px;
  margin-top: 50px;
  background-color: black;
  font-size: 20px;
  letter-spacing: 4px;
  color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
}
/* for loading */
#loader {
  position: fixed;
  display: none;
  top: calc(50% - 44px);
  left: calc(50% - 44px);
  width: 120px;
  height: 120px;
  z-index: 999;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  #cart {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  #cart > .header {
    padding-bottom: 10px;
    border-bottom: 1px solid #3f3a3a;
  }

  #cart > .header > .item-quantity,
  #cart > .header > .item-price,
  #cart > .header > .item-subtotal {
    display: none;
  }

  #cart > .items {
    padding: 0;
    border: none;
    margin-top: 0;
  }

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

  #cart > .items > .item > .item-detail {
    width: calc(100% - 218px);
  }

  #cart > .items > .item > .item-quantity,
  .item-price,
  .item-subtotal {
    width: 33%;
    flex-shrink: 0;
    margin-top: 20px;
    line-height: 30px;
  }

  #cart > .items > .item > .item-quantity {
    order: 1;
  }

  #cart > .items > .item > .item-price {
    order: 2;
  }

  #cart > .items > .item > .item-subtotal {
    order: 3;
  }

  .mobile-text {
    display: block;
  }

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

  #cart > .shipment > .shipment-name {
    font-size: 14px;
    line-height: 17px;
  }
  #cart > .shipment > .shipment-select {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    padding: 0 10px 0 17px;
  }

  #cart > .shipment > .shipment-select + .shipment-name {
    margin-top: 20px;
  }

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

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

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

  #cart > .form > .field > .field-name {
    line-height: 17px;
    font-size: 14px;
  }

  #cart > .form > .field > .field-input {
    width: 100%;
    margin-top: 10px;
  }

  #cart > .form > .field > .field-input > input[type='radio'] {
    margin: 0 6px 0 0;
  }

  #cart > .form > .field > .field-input > label {
    margin-right: 18px;
    line-height: 26px;
    font-size: 14px;
    color: #3f3a3a;
  }

  #cart > .summary > #checkout {
    font-size: 16px;
    letter-spacing: 3.2px;
    margin-top: 36px;
    width: 100%;
  }
}

@media (min-width: 1280px) {
  #cart {
    padding-top: 97px;
  }
}
