#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-wrapper{
  width: 426px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-cart-items__checkout {
  display: flex;
  width: 100%;
  padding: 30px;
  flex-direction: column;
  gap: 16px;
  background: rgba(var(--color-text), 0.03);
  border-radius: 16px;
}

.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: 16px;
}

.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;
}

.main-cart-items__security{
  background-color: #F3FFEA;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 30px;
  width: 100%;
  border-radius: 16px;
}
.main-cart-items__security .security-ico{
  width: 32px;
  height: auto;
}

.main-cart-items__security .security-img-list{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.main-cart-items__security .security-img-list img{
  width: 98px;
  height: auto;
}

.main-cart-items__security .security-title{
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  color: rgb(var(--color-text));
}

.main-cart-items__security .security-desc{
  font-size: 12px;
  line-height: 1.4;
  color: #6E6E73;
  margin: 0;
}

.main-cart-items__mode-of-payment{
  display: flex;
  width: 100%;
  padding: 30px;
  flex-direction: column;
  gap: 16px;
  background: rgba(var(--color-text), 0.03);
  border-radius: 16px;
}

.main-cart-items__mode-of-payment .mode-of-payment-title{
  font-size: 16px;
  font-weight: 700;
  color: rgb(var(--color-text));
  margin: 0;
}

.main-cart-items__mode-of-payment .mode-of-payment-list{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap:4px;
  width: 100%;
}

.main-cart-items__mode-of-payment .mode-of-payment-list img{
  width: 40px;
  height: auto;
}


@media (max-width: 959px) {
  .main-cart-items__wrapper {
      flex-direction: column;
      align-items: center;
  }

  .main-cart-items-header {
      display: none;
  }

  .main-cart-items__checkout-wrapper{
    width: 100%;
  }

  .main-cart-items__checkout {
      padding: 0;
      background-color: unset;
  }

  .cart-title-wrapper {
      padding-block-end: 20px;
  }

  .cart-fixed-checkout.cart-footer__fixed-checkout {
      position: fixed;
      z-index: 999;
  }
}

@media (max-width: 480px) {
  .main-cart-items__security .security-img-list img{
    width: 70px;
  }
}

/* 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 */