.cart-title {
  padding: 0 0 35px;
  color: var(--theme-font-color);
  font-size: 24px;
  text-align: center;
  font-weight: 400;
}

.cart-main {
  display: flex;
  justify-content: space-between;
}
.cart-main-header{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 10px 0;
  text-transform: uppercase;
  border-bottom: 1px solid #e6e6e6;
}
.cart-main-header>.cart-main-prod{
  flex: 1;
}
.cart-main-header>.cart-main-price{
  width: 120px;
  text-align: center;
}
.cart-main-header>.cart-main-qyt {
  width: 140px;
  text-align: center;
}
.cart-main-header>.cart-main-total {
  width: 100px;
  text-align: center;
}
/* select all  item */
[data-cart-checkbox]{
  --theme-checkbox-right:10px;
}
.cart-select-all {
  font-size: 0;
}
.cart-select-bs{
  position: absolute;
  left: 0;
  top: 26px;
}
.cart-select-item{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.exchange-selected-dis{
  display: none;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-size: 14px;
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, .3);
}

.exc-disabled .exchange-selected-dis{
  display: flex;
}
.select-all-bottom{
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.cart-delete-seleted{
  margin-left: 10px;
  color: #999;
  cursor: pointer;
}
.select-all-label{
  cursor: pointer;
}
/* remove pop */
.remove-selected-wrapper{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background-color: rgba(0,0,0,.3);
}
.remove-selected-box{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 60px 50px 40px;
  max-width: 90%;
  width: 450px;;
  background-color: #fff;
  color: #333;
  border-radius: 4px;
  text-align: center;
}
.remove-selected-close{
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 14px;
  cursor: pointer;
}
.remove-selected-btn{
  display: flex;
  align-items: flex-end;
  justify-content:center;
  margin-top: 50px;
  --btn-padding: 0 20px;
}
.remove-selected-btn .button{
  margin: 0 10px;
}
@media screen and (max-width: 900px){
  .remove-selected-box{
    padding: 30px 20px 20px;
  }
  .remove-selected-btn{
    margin-top: 30px;
  }
  .remove-selected-close{
    top: 12px;
    right: 12px;
  }
  
}
@media screen and (max-width: 767px){
  .cart-select-all {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
  }
}
/* select end */
.cart-main .main-left {
  width: calc(100% - 320px);
}

.cart-product {
  position: relative;
  display: flex;
  padding: 20px 20px 20px 26px;
  border-bottom: 1px solid #e6e6e6;
}

.cart-product .product-image {
  flex-shrink: 0;
  position: relative;
  height:calc(130px * var(--product-img-pd-math, 1));
  width:130px;
  font-size: 0;
  background: var(--img-background);
  background-size: var(--img-background-size);
}

.cart-product .product-image img {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 10;
  object-fit: contain;
}
.product-details{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:10px 0 10px 20px;
}
.product-title {
  width: 90%;
  color: var(--theme-font-color);
}

.product-title:hover {
  text-decoration: underline;
}

.product-attr {
  color: #9C9C9C;
}

.details-bottom {
  display: flex;
  flex-direction: column;
}

.cart-product .original-price {
  min-width: 120px;
  padding-top: 10px;
  text-align: center;
  color: var(--theme-font-color);
}

.price {
  width: 100px;
  padding-top: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--invalid-red);
}

.product-control {
  width: 140px;
  height: auto;
}

.delete {
  position: absolute;
  bottom: 10px;
  right: 28px;
  padding-top: 8px;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.delete .iconfont{
  margin-right:4px;
  color: #999;
}

.cart-main .main-right {
  position: sticky;
  top:var(--cart-summary-top, 165px);
  height: fit-content;
  margin-left: 30px;
  width: 100%;
  max-width: 320px;
}

.cart-summary {
  padding: 20px 0;
  margin-top: 35px;
  border-top: 1px solid #e6e6e6;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  line-height: 1;
}
.summary-row .column-label{
  white-space: nowrap;
}
.summary-row-total{
  padding-top: 10px;
  border-top:1px solid #e6e6e6;
}
.column-price.price {
  padding-top: 0;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
}

.summary-checkout {
  display: block;
  padding: 0;
  height: 44px;
  font-size: 14px;
  font-weight: bold;
  line-height: 44px;
  text-align: center;
  border-radius: var(--theme-border-radius);
}
/* 组合销售 */
.bind-sale-section{
  position: relative;
  border-bottom: 1px solid #e6e6e6;
}
.bind-sale-list{
  position: relative;
}
.bind-sale-list .cart-product{
  margin-bottom: 0;
  border: unset;
}

.bind-sale-section .section-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px 8px 26px;
  font-size: 14px;
}

.section-header>div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}


.discount-rate {
  display: inline-block;
  padding: 6px 0;
  color: var(--theme-color-orange);
}

.discount-point {
  display: inline-block;
  margin-left: 20px;
  color: var(--invalid-red);
}

.total-price {
  display: inline-block;
  width: 100px;
  text-align: center;
  font-size: 16px;
}

.header-right .delete {
  margin-left: 20px;
}

.product-quantity {
  width: 140px;
  padding-top: 10px;
  color: var(--theme-font-color);
  font-size: 14px;
  text-align: center;
}
.rich-text ol li{
  min-height: 23px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px auto;
  width: 500px;
}
.cart-empty .img-box{
  background: initial;
}
.cart-empty img {
  margin-bottom: 24px;
}

.cart-empty p {
  margin-bottom: 24px;
  font-size: 20px;
}

.cart-empty .continue-shopping {
  width: 100%;
  font-size: 18px;
  text-align: center;
}

.cart-empty .img-box {
  padding-bottom: 70%;
  max-width: 500px;
}

.cart-empty .img-box img {
  object-fit: contain;
}

.product-control .input-field,.section-header .input-field  {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 40px;
  width: 110px;
  margin: auto;
  font-size: 16px;
  color: var(--theme-font-color);
  border: var(--cart-input-field-border, 1px solid #9c9c9c);
  border-radius: var(--theme-border-radius);
}
.section-header .input-field{
  margin-right: 12px;
}
.product-control .input-field input, .section-header .input-field input {
  padding: 0 12px;
  width: 100%;
  height: 100%;
  font-size: 16px;
  text-align: center;
  border: none;
  background-color: transparent;
}

.product-control .input-field .quantity-button, .section-header .input-field .quantity-button {
  color: var(--theme-font-color);
  font-size: 12px;
}
.product-control  .quantity-button.disabled,
.section-header  .quantity-button.disabled{
  opacity: .5;
  cursor: not-allowed;
}
#paypal-button-container{
  margin-top: 10px;
  overflow: hidden;
  font-size: 0;
  border-radius: var(--theme--border-paypal,var(--theme-border-radius));
}
/* sold out out of stock */
.cart-product-out {
  --theme-font-color:#999;
  --invalid-red:#999;
}
.cart-item-soldout{
  width: fit-content;
  padding: 2px 10px;
  border-radius: 2px;
  color: #181818;
  background-color: #E6E6E6;
}

@media screen and (max-width: 1200px){
  .product-title{
    -webkit-line-clamp:2;
    word-break:normal;
    font-size: 13px;
  }
  .cart-product .product-image{
    height: calc(80px * var(--product-img-pd-math, 1));
    width: 80px;
  }
  .product-details{
    padding: 0 0 0 15px;
    overflow: hidden;
  }
  .product-quantity{
    padding-top: 0;
  }
 .cart-product .original-price {
    padding: 0;
    min-width: 50px;
    font-size: 14px;
    text-align: right;
  }
  .cart-main-header>*:nth-child(2){
    width: 80px;
  }
  .price {
    padding: 0 0 10px 0;
    font-size: 14px;
  }
  .column-price.price {
    font-size: 14px;
  }
   .summary-row {
    margin-bottom: 16px;
    font-size: 14px;
  }
  
}
@media screen and (max-width: 950px){
  .cart-main .main-left {
      width: 100%;
    }
}
@media screen and (max-width: 950px) and (min-width: 768px){
  .cart-main{
    flex-direction: column;
    align-items: flex-end;
  }
  
}
@media screen and (max-width: 767px) {
  .cart-main-header{
    padding: 0 0 10px;
  }
  .product-attr{
    width: 80%;
    font-size: 13px;
  }
  .section-header>div{
    align-items: flex-start;
    justify-content: space-between;
  }
  .cart-title {
    padding-bottom: 16px;
  }
  .cart-main {
    flex-direction: column;
  }
  .cart-main .main-right {
    position: static;
    margin-left: 0;
    max-width: unset;
  }
  .cart-summary {
    margin-top:0;
    border-top:0;
    padding: 20px 0;
  }
  .cart-activities{
    margin-bottom: 20px;
  }
 

  .summary-checkout {
    height: 40px;
    line-height: 40px;
  }
 
  .cart-product {
    padding: 20px 0 20px 26px;
  }
  .cart-list .product-image {
    flex-shrink: 0;
  }
  .cart-two-price{
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    flex-shrink: 0;
  }
  
  .product-control {
    width: fit-content;
  }
  .cart-empty {
    width: 80%;
  }
 
  .section-header .header-right{
      flex: 1;
  }
  .product-control .input-field,.section-header .input-field {
    width: 100px;
    height: 30px;
    justify-content: space-between;
  }
  .section-header .input-field {
    margin: 0;
  }

  .product-control .input-field input,.section-header .input-field input {
    padding: 0 6px;
    font-size: 14px;
  }
  .product-control  .quantity-button,
  .section-header  .quantity-button{
    font-size: 12px;
  }
  
  .section-header .total-price{
    width: fit-content;
   text-align: right;
  }
  .bind-sale-section .section-header{
    padding-right: 0;
  }
  .bind-sale-list .product-attr{
    width: 85%;
  }
  .original-price,
  .price {
    width: 100%;
    text-align: right;
  }
  .bind-sale-list .product-quantity{
    flex: unset;
    width: fit-content;
    padding: 0;
  }
  .bind-sale-list .product-title{
    width: 95%;
  }
 
  .section-header .header-left{
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
  .section-header .discount-point,.section-header .total-price{
    margin-left:0;
  }
  .discount-rate{
    padding: 2px;
  }
  .delete{
    right: 0;
    bottom: 4px;
  }
}

/* 商品定制信息Start */
.cartitem-customer-photo .custom-box {
	display: flex;
	flex-wrap: wrap;
	margin-top: 4px;
}
.cartitem-customer-photo img {
	margin:var(--cart-custom-photo-margin, 0 8px 8px 0) ;
	width: var(--cart-custom-photo-width, 64px);
	height:var(--cart-custom-photo-height, 64px);
  object-fit: contain;
}
@media screen and (max-width: 767px) {
  .cartitem-customer-photo{
    --cart-custom-photo-margin: 0 5px 5px 0;
    --cart-custom-photo-width: 30px;
    --cart-custom-photo-height: 30px;
  }
}
/* 商品定制信息End */
/* exchange */
.cart-exchange-section{
  padding: 20px 0;
  border-bottom: 1px solid #e6e6e6;
}
.cart-exchange-section.has-selected{
  padding-bottom: 0;
}
.cart-exc-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}
.cartexc-header-left{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.cartexc-header-txt{
  padding: 2px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background: var(--highlight-bg-color);
}
.cartexc-header-more{
  display: flex;
  align-items: center;
  cursor: pointer;
}
.cartexc-header-more:hover{
  opacity: .8;
}
.cartexc-header-more .iconfont{
  padding-left: 8px;
  font-size: 12px;
}
.cartexc-swiper-box{
  position: relative;
}
.cartexc-swiper-box .prev-btn,
.cartexc-swiper-box .next-btn{
  transform:none;
  --prev-next-btn-top:calc(70px - var(--arrow-btn-height) / 2);
  --prev-btn-left:calc(-1 * var(--arrow-btn-width) / 2);
  --next-btn-right: calc(-1 * var(--arrow-btn-width) / 2);
}

.exchange-item-img{
  flex-shrink: 0;
  width: 140px;
  height: calc(140px * var(--product-img-pd-math, 1));
  background: var(--img-background);
  background-size: var(--img-background-size);
  font-size: 0;
}
.exchange-item-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exchange-item{
  display: flex;
  width: fit-content;
  flex-direction: column;
  margin-right: 12px;
}

.exchange-item-info{
  padding: 10px;
}
.exchange-item-btm{
  display: flex;
  justify-content: space-between;
}
.exchange-selected-attrs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.exchange-select-box{
  position: relative;
  border: 1px solid var(--theme-border-color);
  border-radius: var(--theme-border-radius);
}
.exchange-attrs-down{
  position: absolute;
  right: 6px;
  top: 10px;
  z-index: -1;
  font-size: 10px;
  color: var(--theme-border-color);
}
.exchange-attr-select{
  --btn-height:30px;
  padding: 0 25px 0 10px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
}
.exchange-attr-select[disabled]{
  cursor: not-allowed;
}
.exchange-attr-select option{
  background-color: var(--page-bg-color);
}
.exchange-item-sale{
  padding-bottom: 2px;
  font-weight: 700;
  color: var(--invalid-red);
}
.exchange-item-price{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.exchange-selected-item{
  border-bottom: 0;
}

.exchange-selected-price{
  display: flex;
  flex-direction: column;
}
.exchange-selected-orig{
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.exchange-item-orig {
  font-size: 12px;
  color: #9C9C9C;
}
.exchange-item-action{
  align-self: flex-end;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  font-size: 10px;
  border-radius: 50%;
  cursor: pointer;
}
.exchange-item-action[data-exc-add]{
  color: #fff;
  background-color: var(--main-color);
  border: 1px solid var(--main-color);
}
.exchange-item-action[data-exc-remove]{
  color: var(--main-color);
  border: 1px solid var(--main-color);
}
.exchange-item-action:hover{
  opacity: .8;
}

.cart-exchange-wrapper{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background-color: rgba(0,0,0,.3);
}
.cart-exchange-popup{
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 916px;
  max-height: 80%;
  background-color: #fff;
  color: #333;
}
.cart-exchange-popup{
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.exchange-popup-header{
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}
.exchange-popup-close{
  font-size: 14px;
  cursor: pointer;
}
.exchange-popup-btm{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #E8E8E8;
}
.exchange-popup-body{
  flex: 1;
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 20px 40px;
  overflow-y: auto;
}
.exchange-popup-body::-webkit-scrollbar{
  width: 8px;
}
.exchange-popup-body::-webkit-scrollbar-thumb{
    background-color: #ddd;
    border-radius: 4px;
}
.exchange-popup-body .exchange-item{
  flex-direction:row;
  width: 100%;
}
.exchange-popup-body .exchange-item-info{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 20px;
}
.exchange-popup-body .exchange-item-sale{
  padding: 0 10px 0 0;
}

.exchange-item-title{
  color: inherit;
}
.exchange-item-title:hover{
  text-decoration: underline;
}
.exchange-popup-btmtxt{
  color: var(--highlight-font-color);
}
@media screen and (max-width:1200px){
  .exchange-popup-header{
    font-size: 16px;
  }
  .exchange-selected-item .product-title{
    word-break: break-all;
    -webkit-line-clamp: 1;
  }
}
@media screen and (min-width:767px){
  .exchange-popup-body .exchange-item-price {
    flex-direction: row;
    align-items: center;
  }
}
@media screen and (max-width:767px) {
  .exchange-selected-qty{
    margin-bottom: 12px;
  }
  .exchange-item.swiper-slide .exchange-item-img{
    position: relative;
    width: 100%;
    padding-bottom: var(--product-img-pd);
    height: unset;
  }
  .swiper-slide .exchange-item-img img{
    position: absolute;
    top: 0;
    z-index: 10;
  }
  .exchange-item{
    width: 24%;
  }
  .exchange-selected-item{
    padding-bottom: 28px;
  }
  .exchange-item-action{
    width: 18px;
    height: 18px;
    line-height: 16px;
  }
  .exchange-item-info{
    padding: 10px 0 0;
  }
  .exchange-item-sale{
    font-size: 14px;
  }
  [data-exc-add]{
    font-size: 8px;
  }
  .cartexc-swiper-action{
    display: none;
  }
  .cartexc-header-left{
    gap: 5px;
    font-size: 15px;
  }
  .cart-exc-header{
    align-items: flex-start;
  }
  .cartexc-header-txt{
    padding: 2px;
    font-size: 12px;
  }
  .exchange-selected-attrs{
    gap: 5px;
  }
  .exchange-attr-select{
    max-width: 180px;
    font-size: 12px;
  }
  .cart-exchange-popup{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: unset;
    transform: none;
  }
  .exchange-popup-body{
    grid-template-columns: 1fr;
  }
  .cart-exchange-popup  .exchange-item-img{
    width: 80px;
    height: calc(80px * var(--product-img-pd-math, 1));
  }
}