#checkout {
  width: 100%;
}
cart-items {
  display: block;
  flex: 1;
  width: 100%;
}
.main-cart-items__wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 100px;
}
.main-cart-items__checkout {
  display: flex;
  width: 426px;
  padding: 30px;
  flex-direction: column;
  gap: 15px;
  background: rgba(var(--color-text), 0.03);
}
.cart-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block-end: 30px;
}
.cart-title-wrapper a {
  text-decoration: underline;
}
.cart__checkout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cart__checkout-button {
  margin-block-end: 10px;
}
.cart__continue-button {
  display: block;
  width: 100%;
}
.main-cart-items-header {
  display: flex;
  padding-block-end: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--color-light-text));
}
.cart__header-item {
  flex-grow: 1;
}
.cart__header-quantity {
  min-width: 200px;
  width: 18.3%;
  flex-shrink: 0;
  margin: 0 20px;
}
.cart__header-total {
  width: 16.2%;
  flex-shrink: 0;
  min-width: 140px;
  text-align: end;
}
.cart__amount-wrapper {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart__amount-wrapper li {
  list-style: none;
  color: rgb(var(--color-text));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart__amount-wrapper li em {
  font-style: normal;
}
.cart__amount-wrapper li > *:not(:first-child) {
  margin-inline-start: 12px;
}
.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 15px;
}
@media (max-width: 959px) {
  .main-cart-items__wrapper {
    flex-direction: column;
    align-items: center;
  }
  .main-cart-items-header {
    display: none;
  }
  .main-cart-items__checkout {
    width: 100%;
    padding: 0;
    background-color: unset;
  }
  .cart-title-wrapper {
    padding-block-end: 20px;
  }

  .cart-fixed-checkout.cart-footer__fixed-checkout {
    position: fixed;
    z-index: 999;
  }
}
/* The ipad end responds to the mobile end in vertical screen */
/* @custom-media --tablet (max-width: 959px); */
/* @custom-media --gt-mobile (min-width: 751px); */
/* detectingScreen need to consider the configuration of the tablet */
