.cart-amount > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 10px;
}

.cart-amount > li em {
  font-style: normal;
}

.cart-amount > li span {
  font-weight: bold;
}
.cart-amount__flex-end > li {
  justify-content: flex-end;
}
.cart-amount__flex-end > li span {
  margin-inline-start: 12px;
}
@media (max-width: 959px) {
  .cart-amount__flex-end > li {
    justify-content: space-between;
  }

  .cart-amount__flex-end > li span {
    margin-inline-start: 0;
  }
}
.cart-amount .cart-amount__discount-label {
  display: flex;
  gap: 4px;
  align-items: center;
  color: rgb(var(--color-light-text));
}
.cart-amount .cart-amount__discount-label svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.cart-amount .cart-amount__discount span {
  color: rgb(var(--color-discount));
  white-space: nowrap;
}
.cart-coupon--disabled {
  pointer-events: none;
}
.cart-coupon__form {
  display: flex;
  gap: 6px;
}
.cart-coupon__form .field {
  margin-block-end: 0;
}
.cart-coupon__error {
  margin-block: 8px 0;
}
.cart-coupon__list {
  display: flex;
  flex-wrap: wrap;
  margin-block-end: 15px;
}
.cart-coupon__list-item {
  display: flex;
  align-items: center;
  padding-block: 5px;
  padding-inline: 8px;
  margin-block-start: 8px;
  margin-inline-end: 6px;
  background-color: rgba(var(--color-text), 0.1);
  border-radius: 4px;
}
.cart-coupon__list-tag {
  display: flex;
  align-items: center;
  margin-inline-end: 6px;
  opacity: 0.3;
}
.cart-coupon__list-tag svg {
  width: 20px;
  height: 20px;
}
.cart-coupon__list-close {
  display: flex;
  align-items: center;
  margin-inline-start: 15px;
  cursor: pointer;
}
.cart-empty {
  text-align: center;
}
.cart-empty__body {
  padding-block: 80px;
}
@media (max-width: 959px) {
  .cart-empty__body {
    /* padding-block: 130px; */
    padding-block: 50px;
  }
}
.cart-fixed-checkout {
  position: fixed;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: var(--z-index-fixed);
  display: none;
  width: 100%;
  background-color: rgb(var(--color-background));
  opacity: 0;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
  transform: translateY(100%);
}
@media (max-width: 959px) {
  .cart-fixed-checkout {
    display: block;
  }
}
.cart-fixed-checkout__container {
  box-shadow: 0 -4px 20px 0 rgba(var(--color-text), 0.05);
}
.cart-fixed-checkout__dropdown {
  text-align: center;
}
.cart-fixed-checkout__dropdown span {
  cursor: pointer;
}
.cart-fixed-checkout .cart-fixed-checkout__inner {
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 0.2s ease-out,
    opacity 0.2s ease-out;
}
.cart-fixed-checkout__sub-info {
  padding-block: 0 12px;
  padding-inline: 12px;
}
.cart-fixed-checkout__main-info {
  padding: 12px 21px;
  border-block-start: 1px solid #ccc;
}
.cart-fixed-checkout__total {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.cart-fixed-checkout__total-amount {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  column-gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.cart-fixed-checkout__total-saved {
  color: #902A1F;
  /* color: rgb(var(--color-discount)); */
}
.cart-fixed-checkout__arrow svg {
  transition: transform 0.2s ease-out;
  transform: rotate(180deg);
}
.cart-fixed-checkout__buttons {
  margin-block-start: 10px;
  text-align: center;
}
.cart-fixed-checkout--collapsed .cart-fixed-checkout__inner {
  max-height: 0;
  opacity: 0;
}
.cart-fixed-checkout--collapsed .cart-fixed-checkout__arrow svg {
  transform: rotate(0);
}
.cart-fixed-checkout--visible {
  opacity: 1;
  transform: translateY(0);
}
.cart-item__amount-operator {
  display: flex;
  gap: 20px;
  align-items: center;
}
.cart-item__amount .cart-item__volume-pricing {
  margin-block-start: 10px;
}
.cart-item__remove {
  cursor: pointer;
}
.cart-item__fail {
  display: flex;
  align-items: center;
}
.cart-item__fail > * {
  margin-block-start: 20px;
}
.cart-item__fail-tip {
  order: 1;
  margin-inline-start: 8px;
  color: rgb(var(--color-error-message));
}
.cart-item__fail-tip:empty,
.cart-item__fail-tip:empty + svg {
  display: none;
}
.cart-item__total {
  position: relative;
}
.cart-item__total-loading {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: none;
}
.cart-item__total-loading.loading {
  display: flex;
  animation: animation-circling linear 1s infinite;
}
.cart-item__total-loading.loading ~ * {
  visibility: hidden;
}
.cart-item__total-final {
  display: inline-block;
  color: rgb(var(--color-text));
}
.cart-item__total-original {
  display: inline-block;
  color: rgb(var(--color-light-text));
  text-decoration: line-through;
}
.cart-item__volume-pricing theme-popover-content {
  z-index: 5;
  width: 245px;
  max-height: 240px;
  padding: 10px 0;
  overflow-y: scroll;
  background-color: rgb(var(--color-background));
  border: 1px solid #ddd;
}
.cart-item__volume-pricing-title {
  display: flex;
  align-items: center;
}
.cart-item__volume-pricing-title > span {
  margin-inline-start: 8px;
}
.cart-item__volume-pricing-rules {
  padding-block: 0 4px;
  padding-inline: 20px;
}
.cart-item__volume-pricing-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 8px;
  padding-inline: 20px;
}
.cart-item__volume-pricing-list li:nth-child(odd) {
  background: rgba(var(--color-text), 0.03);
}
.cart-item__product {
  display: flex;
  column-gap: 30px;
  align-items: flex-start;
}
.cart-item__product-info {
  word-break: break-all;
}
.cart-item__picture {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 140px;
}
@media (max-width: 959px) {
  .cart-item__picture {
    width: 80px;
  }
}
.cart-item__picture a {
  display: block;
  width: 100%;
}
.cart-item__picture img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.cart-item__picture .placeholder {
  flex-grow: 1;
  background-color: rgb(var(--color-image-background));
}
/* .cart-item__total {
  margin-block-start: 8px;
} */
.cart-item__option {
  margin-block-start: 4px;
}
.cart-item__property {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-block-start: 4px;
}
.cart-item__property-name {
  margin-inline-end: 3px;
}
.cart-item__property-text {
  display: block;
  max-width: 100%;
  word-break: break-all;
}
.cart-item__property-images {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.cart-item__property-link {
  display: block;
}
.cart-item__property-image {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.cart-item__discount {
  margin-block-start: 4px;
  color: rgb(var(--color-discount));
}
.cart-item__discount > li {
  display: flex;
  align-items: center;
}
.cart-item__discount > li svg {
  width: 12px;
  height: 12px;
  margin-inline-end: 4px;
  color: rgb(var(--color-tag-background));
}
.cart-item__quantity {
  margin-block-start: 10px;
}
.cart-drawer__body {
  display: flex;
  flex-direction: column;
  width: 640px;
  color: rgb(var(--color-text));
  max-height: 86vh;
}

@media (max-width: 959px) {
  .cart-drawer-mobile-header-wrapper{
    display: flex;
    color: #000;
  }
  .cart-drawer__body {
    width: 90%;
  }
  .cart-drawer__items .cart-drawer-item-header{
    display: none ;
  }
  .cart-fixed-checkout__main-info .cart-fixed-checkout-container-wrapper{
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
}
.cart-drawer__header {
  position: relative;
  font-size: 20px;
  padding: 20px;
  width: 100%;
  text-align: center;
}
.cart-drawer__header::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  content: "";
  background-color: rgb(var(--color-entry-line));
}
.cart-drawer__close {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 16px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: 0;
}
.cart-drawer__close svg {
  width: 12px;
  height: 12px;
}
.cart-drawer__loading {
  /* position: sticky; */
  position: absolute;
  inset: 0;
  z-index: var(--z-index-popover);
  display: none;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: rgb(var(--color-background));
}
@media (max-width: 959px) {
  .cart-drawer__loading-inn {
    padding-top: 20%;
    align-items: center;
  }
}
@media (min-width: 960px) {
  
  [data-pay-button-layout="column"] {
    margin: -10px 0 !important;
  }
  .cart-drawer__loading-inn {
    padding-block-start: 120px;
  }
}
.cart-drawer__loading-inn .loading--rotator {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}
.cart-drawer__loading-inn .loading--rotator svg {
  width: 100%;
  height: 100%;
}
.cart-drawer__loading-inn p {
  margin-block-start: 12px;
}
.cart-drawer .cart-item {
  /* padding-block: 20px; */
}
.cart-drawer .cart-item__disabled {
  pointer-events: none;
}
.cart-drawer__payment {
  position: relative;
  padding-block-start: 20px;
}
.cart-drawer__payment::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: -20px;
  width: calc(100% + 40px);
  height: 1px;
  content: "";
  background-color: rgb(var(--color-entry-line));
}
.cart-drawer__payment .cart-amount {
  margin-block-start: 15px;
}
.cart-drawer__inner {
  /* position: relative; */
  /* flex: 1; */
  /* padding-inline: 10px; */
  overflow-y: auto;
  overflow-x: hidden;
  background-color: rgb(var(--color-background));
  /* scrollbar-width: thin;  
  scrollbar-color: transparent transparent;  */
}
.cart-drawer__inner::-webkit-scrollbar {
  width: 6px;                       /* 滚动条宽度 */
  background: transparent;         /* 默认隐藏轨道背景 */
}

.cart-drawer__inner::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);  /* 拖动滑块的颜色 */
  border-radius: 3px;
}

.cart-drawer__inner:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);  /* hover 时略显著 */
}

.cart-drawer__inner::-webkit-scrollbar-track {
  background: transparent;
}
.cart-drawer__inner--loading {
  overflow: hidden;
}
.cart-drawer__inner--loading .cart-drawer__payment::before {
  inset-inline-start: 0;
  width: 100%;
}
.cart-drawer__inner--loading .cart-coupon__form {
  overflow: hidden;
}
.cart-drawer__inner--loading .cart-drawer__loading {
  display: flex;
}
.cart-drawer .cart-fixed-checkout {
  position: static;
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.cart-drawer-item-header{
  display: flex;
  justify-content: center;
  font-family: var(--sort-title-font);
  padding: 15px;
  text-transform: uppercase;
  border-bottom: 1px solid #E5E5E5;
}
.cart-fixed-checkout-container-wrapper{
  display: flex;
  /* gap: 30px; */
  align-items: flex-start;
  /* margin-top: 20px; */
}
.cart-fixed-checkout-container-wrapper-buttonBox .cart-checkout .zg-cart-drawer-checkout-button-wrapper {
  display: flex;
  gap: 15px;
}
.cart-fixed-checkout__viewcart{
  flex: .6;
  margin: 10px 0;
  text-transform: uppercase;
}
.cart-fixed-checkout__viewcart a{
  height: 35px;
  line-height: 35px;
  display: block;
  text-align: center;
  font-size: 20px;
  color: #222;
  text-decoration: none;
  border: 1px solid #474747;
  background-color: #fff;
}

.zg-cart-drawer-checkout-button-wrapper .cart-form{
    flex: 1;
    margin: 10px 0;
  }
@media screen and (max-width: 959px){
  .cart-fixed-checkout__viewcart{
    flex: 1;
  }
  .zg-cart-drawer-checkout-button-wrapper .cart-form{
    flex: 1;
  }
  .zg-cart-drawer-checkout-button-wrapper{
    display: flex;
    flex-direction: row;
    font-family: 'Lato Regular';
    gap: 9px;
    justify-content: center;
    align-items: center;
  }

  .zg-cart-item-quantity-actions-wrapper-pc{
    display: none;  
  }
  .cart-drawer-item-product-content-wrapper-pc{
    display: none !important;
  }
  .cart-item__properties-pc{
    display: none !important;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-pc{
    display: none ;
  }
  .cart-drawer-mobile-header-wrapper{
    display: flex;
    /* background-color: #000; */
    color: #000;
    padding: 0 20px;
  }
  .cart-drawer-mobile-header-wrapper .cart-drawer__header{
    font-size: 20px;
  
  }
  .zg-cart-item-picture-title-wrapper-mobile{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  .zg-cart-item-product-title-wrapper{
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    text-align: left;
  }
  .zg-cart-item-product-title-wrapper .cart-item__title a{
    font-size: 15px;
    font-weight: 400;
  
    color: #222;
  }
  /* .zg-cart-drawer-item-product-quantity-wrapper-mobile{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    justify-content: end;
    width: 100%;
    justify-items: end; 
    align-items: start;
  } */
  .zg-cart-drawer-item-product-quantity-wrapper-mobile-input{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cart-item__quantity-wrapper input[type="number"] {
    max-width: 40px;
    padding: 10px !important;
    border-radius: 0 !important;

    height: 40px;
  }
  .cart-drawer__inner {
    padding: 0 15px;
    /* min-height: 320px; */
  }
  .zg-cart-drawer-item-product-quantity-wrapper-mobile-total{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-mobile-update{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: underline;
  
    font-weight: 400;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-mobile-delete{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: underline;
    /* margin-block-start: 8px; */
  
    font-weight: 400;
  }
  .cart-item__quantity-wrapper {
    justify-content: end;

  }
  .cart-fixed-checkout__buttons{
    margin-top: 0px !important;

  }
  .zg-cart-coupon-wrapper .cart-coupon__list{
    margin-bottom: 5px !important;
  }
  .zg-cart-drawer-fixed-checkout-wrapper-mobile{
  }
  .cart-notification__body{
    width: 90vw !important;
    min-height: 200px;
  }
  .zg-cart-drawer-checkout-button-viewcart-wrapper-mobile{
    display: block;
  }
  .zg-cart-drawer-checkout-button-viewcart-wrapper-mobile a{
    height: 35px;
    line-height: 35px;
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #474747;
    background-color: #333333;
  
  }
  .zg-cart-drawer-item-product-quantity-mobile-Qty-wrapper{
  
    font-weight: normal;
    font-size: 13px;
    color: #000000;
    line-height: 1.5;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
  .zg-cart-item-product-content-wrapper-mobile-row {
    display: flex;
    align-items: flex-start; 
    padding: 10px 0;
  }
  
  .cart-item__picture {
    flex-shrink: 0;
    width: 80px;
    height: auto;
  }
  
  .cart-item__picture img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .zg-cart-item-product-content-wrapper-mobile-row-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    word-break: break-word; /* 保证文字自动换行 */
    align-items: start;
  }
  
  .cart-item__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  .zg-cart-item-product-content-wrapper-mobile-row-title-detail .cart-item__title a{
    font-family: "Lato Regular";
    font-weight: normal;
    font-size: 13px;
    color: #222;
    line-height: 1.5;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
}
@media screen and (min-width: 960px){
  .zg-cart-drawer-checkout-button-viewcart-wrapper-mobile{
    display: none;
  }
  .cart-drawer-mobile-header-wrapper{
    display: none !important;
  }
  .cart-drawer-item-product-content-wrapper-mobile{
    display: none;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-mobile{
    display: none !important;
  }
  .cart-item__properties-mobile {
    display: none;
  }
  .cart-drawer-item-product-content-wrapper-pc{
    padding-bottom: 10px;
  }
  .cart-item__properties-pc {
    display: block;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-pc{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cart-drawer-item-product-content-wrapper-pc .media-group {
    display: flex;
    align-items: start;
    gap: 15px;
    flex: 1;
  }
  .cart-drawer-item-product-content-wrapper-pc .product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
  }
  .cart-drawer-item-product-info-row-wrapper{
    display: flex;
    align-items: center;
    width: 100%;
  }
  .cart-drawer-item-product-info-title-wrapper{
    min-width: 0;
    margin-right: 10px;
  }
  .cart-drawer-item-product-quantity-input-wrapper{
    display: flex;
    align-items: start;
  }
  /* 右侧整体 */
  .cart-drawer-item-product-right-wrapper{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }
  /* 底部区域 */
  .cart-drawer-item-product-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:8px;
  }
  /* 左侧：数量 + 价格 */
  .cart-drawer-item-product-bottom-left{
    display:flex;
    align-items:center;
    gap:16px;
  }
  /* 左侧：数量 + 价格 */
  .cart-drawer-item-product-bottom-left{
    display:flex;
    align-items:center;
    gap:16px;
  }
  /* 价格 */
  .cart-drawer-item-product-total-wrapper{
    display: flex;
    align-items: start;
    justify-content: flex-end;
  }
  .cart-drawer-mobile-header-wrapper{
    display: none;
  }
  /* 操作按钮 */
  .cart-drawer-item-product-actions{
    display:flex;
    align-items:center;
  }
}
.cart-drawer-item-header > div {
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Lato Regular';

}
.cart-item__picture{
  width: 60px;
}
.cart-drawer-item-product-info-title-wrapper .cart-item__title{
  font-size: 15px;
  color: #222;
  letter-spacing: 0.3px;
}
.zg-cart-drawer-item-product-quantity-wrapper-pc .cart-item__quantity-wrapper input[type="number"] {
  width: 20px;
  height: 40px;
  flex: none!important;
  font-size: 16px;
  color: #000;
  border-radius: 0;
  border: none;
  outline: none;
  /* border: 1px solid #ccc; */

}
.zg-cart-item-quantity-actions-wrapper-pc .update-link,
.zg-cart-item-quantity-actions-wrapper-pc .cart-item__remove,
.zg-cart-drawer-item-product-quantity-wrapper-mobile-delete{
  text-decoration: underline;
  font-size: 15px;

  color: #222;
}
.cart-item__total-amount{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.cart-item__total-amount .cart-item__total-original{
  text-decoration: line-through;
  color: #000;
  font-size: 12px;

  
}
.cart-item__total-amount .cart-item__total-final{
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  color: #222;
}
/* .zg-cart-item-total-final-wrapper{
  color: #902A1F !important;
} */
.zg-cart-drawer-container-wrapper-pc{
  width: 488px;
}
.cart-fixed-checkout__total-price span,
.cart-fixed-checkout__total-saved span{
  font-weight: 600;
}
.cart-fixed-checkout__total .cart-fixed-checkout__total-text,
.cart-fixed-checkout__total-amount .cart-fixed-checkout__total-price span{
  font-size: 12px;
  color: #222;

}
.cart-fixed-checkout__total .zg-cart-fixed-checkout-total-saved{
  font-size: 12px;
  text-transform: capitalize;
}
.cart-fixed-checkout__total .cart-fixed-checkout__total-saved span{
  font-size: 12px;
  color: #902A1F;
}
.zg-cart-checkout-to-checkout-button{
    background: #000000;
    border: none;
    color: #ffffff;
    font-size: 20px;
    font-family: 'Lato Regular';
    padding: 10px;
    height: 35px;
}
.zg-cart-item-product-line-saved-price-wrapper{
  font-size: 13px;
  color: #222;
  font-weight: 400;
  text-decoration: line-through;
}
.zg-cart-drawer-empty-button-wrapper{

  font-weight: normal;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 24px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  background-color: #000000;
}
.zg-drawer-cart-item-extend-plan-row-pc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 16px 0; */
  gap: 12px;
  /* border-block-start: 1px solid #eee !important;
  border-bottom: 1px solid #eee ; */

  flex-wrap: nowrap;
  /* padding-left:85px ; */
}

.zg-drawer-cart-item-extend-plan-info {
  /* display: flex;
  align-items: center; */
  flex: 1;
  /* max-width: 150px; */
}

.zg-drawer-cart-item-extend-plan-icon, .zg-cart-item-white-glove-icon {
  width: 25px;
  height: 25px;
  margin-right: 6px;
  flex-shrink: 0;
}

.zg-drawer-cart-item-extend-plan-text, .zg-drawer-cart-item-white-glove-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.zg-drawer-cart-item-extend-plan-quantity {
  flex-shrink: 0;
  /* margin-left: 8px; */
  display: inline-block;
  font-size: 12px;
  padding: 4px;
  text-align: center;
  line-height: 30px;
  width: 40px;
  height: 30px;
}

.zg-drawer-cart-item-extend-plan-delete {
  flex-shrink: 0;
  /* margin-left: 8px; */
}
.zg-drawer-cart-item-extend-plan-delete span {
  color: #222;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}
.zgdrawer-cart-item-extend-plan-price {
  flex-shrink: 0;
  /* margin-left: 8px; */
  line-height: 30px;
  font-size: 12px;
}
.zg-drawer-cart-item-extend-plan-quantity-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.zg-drawer-cart-item-extend-plan-quantity-box-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media screen and (max-width: 959px) {
  .zg-drawer-cart-item-extend-plan-row-pc{
    display: none;
  }
  .zg-drawer-cart-item-extend-plan-row-mobile{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .zg-drawer-cart-item-extend-plan-info{
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 150px;
  }
  .zg-cart-item-extend-plan-text-mobile, .zg-drawer-cart-item-white-glove-text-mobile{
    display: flex;
    align-items: center;
    flex: 1;
  }
  .zg-cart-drawer-item-extend-plan-quantity-mobile,
  .zg-cart-drawer-item-extend-plan-delete-mobile,
  .zg-cart-drawer-item-extend-plan-price-mobile{
    flex-shrink: 0;
    /* margin-left: 8px; */
  }
  .zg-cart-drawer-item-extend-plan-delete-mobile span {
      color: #222;
      text-decoration: underline;
      cursor: pointer;
      font-size: 12px;
  }
  .zg-cart-drawer-item-quantity-drawer-pc-wrapper{
    display: none;
  }
  
#dynamic-checkout-cart {
  flex-direction: row !important;
  gap: 9px !important;
}
#dynamic-checkout-cart .pay-button-common-item.pay-button-Paypal,
#dynamic-checkout-cart .pay-button-common-item.pay-button-ApplePay  {
  flex: 1;
}
}
#cart-item-offer{
  margin-left: 15px;
}
.cart-empty__tips{
  margin-bottom: 10px;
}
#dynamic-checkout-cart .pay-button-common-item.pay-button-Paypal,
#dynamic-checkout-cart .pay-button-common-item.pay-button-ApplePay {
  transform: scaleY(0.8);
}


.zg-drawer-cart-item-white-glove-plan-info {
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 12px;
  max-width: 200px;
}

.zg-drawer-cart-item-white-glove-plan-icon, .zg-cart-item-white-glove-icon {
  width: 25px;
  height: 25px;
  margin-right: 6px;
  flex-shrink: 0;
}

.zg-drawer-cart-item-white-glove-plan-text, .zg-drawer-cart-item-white-glove-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.zg-drawer-cart-item-white-glove-plan-quantity {
  flex-shrink: 0;
  display: inline-block;
  font-size: 12px;
  padding: 4px;
  text-align: center;
  line-height: 30px;
  width: 40px;
  height: 30px;
}

.zg-drawer-cart-item-white-glove-plan-delete {
  flex-shrink: 0;
}
.zg-drawer-cart-item-white-glove-plan-delete span {
  color: #222;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}
.zgdrawer-cart-item-white-glove-plan-price {
  flex-shrink: 0;
  font-size: 12px;
}

.zg-drawer-cart-item-white-glove-plan-quantity-box-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


/* 手机 */
@media (max-width: 768px) {
  .cart-drawer__body.ios-safari-cart-drawer-fix {
    top: 0 !important;
    height: var(--ios-cart-drawer-height, 100dvh);
    /* max-height: var(--ios-cart-drawer-height, 100dvh); */
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    transform: translateZ(0);
  }
  .cart-drawer__body.ios-safari-cart-drawer-fix .cart-drawer__inner {
    flex: 1 1 auto;
    min-height: 0;
  }
  .cart-drawer__body.ios-safari-cart-drawer-fix .zg-cart-drawer-fixed-checkout-wrapper-mobile {
    flex-shrink: 0;
  }
  .cart-drawer__body.ios-safari-cart-drawer-fix.ios-safari-cart-drawer-keyboard-open .cart-drawer__inner {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
  .zg-drawer-cart-item-extend-plan-info{
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 120px;
  }
  .zg-cart-item-extend-plan-text-mobile {
    font-size: 12px;
  }
  .zg-drawer-cart-item-extend-plan-delete {
    margin-left: 12px;
  }

  .zg-drawer-cart-item-extend-plan-row-mobile,
  .zg-drawer-cart-item-white-glove-plan-row-mobile{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-mobile-delete .cart-item__remove {
    font-size: 12px;
  }

  .zg-cart-item-picture-title-wrapper-mobile {
    justify-content: flex-start;
  }

  .cart-drawer-item-product-right-wrapper {
    width: 100%;
  }


  .cart-item__total-amount .cart-item__total-final {
    font-weight: bold;
  }


  .cart-item__quantity-wrapper input[type="number"] {
    max-width: 20px;
    padding: 0 !important;
    border-radius: 0 !important;
    height: 40px;
  }

  .zg-drawer-cart-item-white-glove-plan-delete {
    width: 80px;
    text-align: center;
  }
   
}

/* 平板 */
@media (min-width: 768px) and (max-width: 991px) {
  /* 外层：整体左对齐 */
  .cart-drawer-item-product-content-wrapper-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 关键：靠左 */
    padding: 0 16px;
  }

  /* 图片 + 右侧内容 横向排列 */
  .zg-cart-item-picture-title-wrapper-mobile {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* 顶部对齐 */
    gap: 16px;
    width: 100%;
  }

  /* 左侧图片 */
  .cart-item__picture {
    flex: 0 0 120px; /* 固定宽度 */
    max-width: 120px;
  }

  .cart-item__picture img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 右侧内容 */
  .cart-drawer-item-product-right-wrapper {
    flex: 1;
    width: auto !important;
    text-align: left;
  }

  /* 标题 */
  .cart-item__title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  /* 数量区域 */
  .cart-item__amount {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* 靠左 */
    align-items: center;
    margin-top: 8px;  
  }

  .cart-item__amount-operator {
    width: 100%;
    justify-content: flex-start;
  }

  /* ipad 用 移动 的数量控件 */
  .zg-cart-drawer-item-product-quantity-wrapper-mobile {
    display: block;
  }

  /* total 区域 */
  .cart-item__total {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* 删除按钮 */
  /* .cart-item__remove {
    margin-left: 8px;
  } */

  .zg-cart-drawer-item-product-quantity-wrapper-mobile-delete {
    flex: 1;
    justify-content: end;
  }

  .cart-item__property {
    width: 100%;
  }

  /* extend plan 行 */
  .zg-drawer-cart-item-extend-plan-row-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左对齐 */
    gap: 12px; /* 元素间距 */
    width: 100%;
    margin-top: 8px;
  }


  .zg-cart-item-extend-plan-text-mobile {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 200px;
  }

  .zg-cart-drawer-item-extend-plan-delete-mobile {
    width: 80px;
    text-align: center;
  }

  .zgdrawer-cart-item-white-glove-plan-price {
    margin-left: 8px;
  }

  /* white glove 行 */
  .zg-drawer-cart-item-white-glove-plan-row-mobile {
    width: 100%;
  }
  .cart-item__property {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }
  .zg-cart-item-picture-title-wrapper-mobile {
    justify-content: flex-start;
  }
  .zg-drawer-cart-item-white-glove-plan-info {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 200px;
  }
  .zg-drawer-cart-item-white-glove-plan-quantity {
    flex: 0 0 auto; /* 不拉伸、不压缩 */
  }
  .zg-drawer-cart-item-white-glove-plan-delete {
    flex: 0 0 auto; /* 不拉伸、不压缩 */
    margin-left: 0;
  }
  .zg-cart-drawer-item-product-quantity-wrapper-mobile{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
}

/* 小PC */
@media (min-width: 992px) and (max-width: 1199px) {
  .zg-drawer-cart-item-white-glove-plan-row-pc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
  }
}

/* 大PC */
@media (min-width: 1200px) {}
