.cart {
  position: relative;
  display: block;
}

.cart__empty-text,
.is-empty .cart__contents,
cart-items.is-empty .title-wrapper-with-link,
.is-empty .cart__footer {
  display: none;
}

.is-empty .cart__empty-text,
.is-empty .cart__warnings {
  display: block;
}

.cart__warnings {
  display: none;
  text-align: center;
  padding: 3rem 0 1rem;
}

.cart__empty-text {
  margin: 4.5rem 0 2rem;
}

.cart__contents > * + * {
  margin-top: 2.5rem;
}

.cart__login-title {
  margin: 5.5rem 0 0.5rem;
}

.cart__login-paragraph {
  margin-top: 0.8rem;
}

.cart__login-paragraph a {
  font-size: inherit;
}

@media screen and (min-width: 990px) {
  .cart__warnings {
    padding: 7rem 0 1rem;
  }

  .cart__empty-text {
    margin: 0 0 3rem;
  }
}

cart-items {
  display: block;
}

.cart__items {
  position: relative;
  padding-bottom: 3rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
  margin-top:0px;
}

.cart__items--disabled {
  pointer-events: none;
}

 .cart__footer .payment-desc {
      display: flex;
      align-items: center;
      color: #000;
    }

    @media screen and (min-width: 1025px) {
      .cart__footer .payment-desc {
        font-size: 13px;
        letter-spacing: 0;
        -moz-column-gap: 7px;
             column-gap: 7px;
      }
    }
    
    @media screen and (max-width: 1024px) {
      .cart__footer .payment-desc {
        font-size: 12px;
        letter-spacing: 0;
        -moz-column-gap: 7px;
             column-gap: 7px;
      }
    }

.cart__footer-wrapper .cart__footer {
  padding-bottom: 5rem;
  width: 100%;
  border-radius: 8px;
  background-color: #f4f4f4;
  padding: 20px;
  margin-top: 20px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.cart__footer > div:only-child {
  margin-left: auto;
}

.cart__footer > * + * {
  margin-top: 6.5rem;
}

.cart__footer .discounts {
  margin-bottom: 1rem;
}

.cart__note {
  height: -moz-fit-content;
  height: fit-content;
  top: 2.5rem;
}

.cart__note label {
  display: flex;
  align-items: flex-end;
  position: absolute;
  line-height: 1;
  height: 1.8rem;
  top: -3rem;
  color: rgba(var(--color-foreground), 0.75);
}

.cart__note .field__input {
  height: 100%;
  position: relative;
  border-radius: var(--inputs-radius);
  padding: 1rem 2rem;
}

.cart__note .text-area {
  resize: vertical;
}

.cart__note:after,
.cart__note:hover.cart__note:after,
.cart__note:before,
.cart__note:hover.cart__note:before,
.cart__note .field__input:focus,
.cart__note .field__input {
  border-bottom-right-radius: 0;
}

@media screen and (min-width: 750px) {
  .cart__items {
    grid-column-start: 1;
    grid-column-end: 3;
    padding-bottom: 4rem;
  }

  .cart__contents > * + * {
    margin-top: 0;
  }

  .cart__items + .cart__footer {
    grid-column: 2;
  }

  .cart__footer {
    display: flex;
    justify-content: space-between;
    border: 0;
  }

  .cart__footer-wrapper:last-child {
    padding-top: 0;
  }

  .cart__footer > * {
    width: 50rem;
  }

  .cart__footer > * + * {
    margin-left: 4rem;
    margin-top: 0;
  }
}

.cart__ctas button {
  width: 100%;
  margin-top: 10px;
}

.cart__ctas > * + * {
  margin-top: 1rem;
}

.cart__update-button {
  margin-bottom: 1rem;
}

.cart__dynamic-checkout-buttons {
  max-width: 50rem;
  margin: 0 auto;
}

.cart__dynamic-checkout-buttons:has(.dynamic-checkout__content:empty) {
  margin: 0;
}

.cart__dynamic-checkout-buttons div[role='button'] {
  border-radius: var(--buttons-radius-outset) !important;
}

.cart__blocks > * + * {
  margin-top: 1rem;
}

.cart-note__label {
  display: inline-block;
  margin-bottom: 1rem;
  line-height: calc(1 + 1 / 1.0);
}

.tax-note {
  margin: 2.2rem 0 1.6rem auto;
  text-align: center;
  display: block;
}

.cart__checkout-button {
  max-width: 50rem;
}

.cart__ctas {
  text-align: center;
}

@media screen and (min-width: 750px) {
  .cart-note {
    max-width: 35rem;
  }

  .cart__update-button {
    margin-bottom: 0;
    margin-right: 0.8rem;
  }

  .tax-note {
    margin-bottom: 2.2rem;
    text-align: right;
  }

  [data-shopify-buttoncontainer] {
    justify-content: flex-end;
  }

  .cart__ctas {
    display: flex;
    gap: 1rem;
  }
}


.cat-page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.3rem;
}


.main-cart {
  display: flex;
  justify-content: space-between;
  align-items: start;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.3rem;
  flex-wrap: wrap; /* ✅ 允许换行 */
}

@media screen and (min-width: 750px) {
  .main-cart .page-width {
    padding: 0 2rem !important;
  }
}

.omg-order-cart {
  margin-top: 1rem !important;
}
[id^="shopify-section-"][id*="featured_collection"] {
  /* 你的样式 */
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
}
/* 添加初始隐藏状态 
[id^="shopify-section-"][id*="cart-items"],
[id^="shopify-section-"][id*="cart-footer"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

[id^="shopify-section-"][id*="cart-items"].ready,
[id^="shopify-section-"][id*="cart-footer"].ready {
  opacity: 1;
}*/

[id^="shopify-section-"][id*="cart-items"] {
    width: 63%;
    flex-shrink: 0;  /* 防止收缩 */
}

[id^="shopify-section-"][id*="cart-footer"] {
  width: calc(37% - 5px);
}

@media screen and (max-width: 749px) {
  .main-cart {
    flex-direction: column;
  }

  [id^="shopify-section-"][id*="cart-items"],
  [id^="shopify-section-"][id*="cart-footer"] {
    width: 100%;
  }

  [id^="shopify-section-"][id*="cart-footer"] {
    margin-top: 0rem;
  }
}



.payment_methods .title {
  /*display: flex;*/
  align-items: center;
  margin: 1px 0;
}
.payment_methods h3 {
  font-size: calc(var(--font-heading-scale) * 1.6rem);
  line-height: 32px;
  font-weight: 600;
  text-align: left;
  color: rgb(var(--color-foreground));
  margin-top: 0px;
}
.payment-methods-wrapper .method svg {
  width: 38px !important;
  height: 24px !important;
  margin: 0 !important;
}

.payment-methods-wrapper .method {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 429px) {
  .payment-methods-wrapper .method {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .payment-methods-wrapper .method > * {
    font-size: 12px;
  }
}

.payment-methods-wrapper .sub-title h4 {
  display: flex;
  font-size: 14px;
  color: #0b2a4a;
}
.payment-methods-wrapper .sub-title ul li .icon {
  margin-right: 5px;
}
.payment-methods-wrapper .sub-title ul li b {
  margin-right: 5px;
}
.payment-methods-wrapper .sub-title ul li {
  margin: 10px 0;
}





.main-cart .sub-total,
.main-cart .box-protection {
  width: 100%;
  border-radius: 8px;
  background-color: #f4f4f4;
  padding: 20px;
  margin-top: 20px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}


.main-cart .box-protection .box-flex {
  display: flex;
  gap: 20px;
}

.main-cart .box-protection .box-flex > svg {
  height: 96px;
  width: 81px;
  flex: 0 0 auto;
}

.main-cart .box-protection .box-flex > .box-content {
  display: flex;
  flex-direction: column;
}
.main-cart .box-protection .box-flex > .box-content > h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #910f3f;
  margin: 0px;
  margin-bottom: 10px;
      padding-left: 20px;
}

.main-cart .box-protection .box-flex > .box-content .sub-title h4 {
  display: flex;
  gap: 5px;
  margin: 0px;

}

.main-cart .box-protection .box-flex > .box-content .sub-title h4:not(:last-child) {
  margin-bottom: 10px;
}

.main-cart .box-protection .box-flex > .box-content .sub-title svg {
  width: 18px;
  height: 12px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.main-cart .box-protection .box-flex > .box-content .sub-title div {
  font-size: 12px;
  line-height: 22px;
  color: var(--color-blue_base);
}

.main-cart .box-protection .box-flex > .box-content .sub-title div span:nth-child(1) {
  font-weight: 600;
}

.card .card__inner .card__media.card__media.card__media  {
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.card .card__content .card__information a {
  font-size: 16px;
  line-height: 26px;
  color: #000000;
}

.card .card__content .card__information .price-item--last {
  color: var(--background-button-slide);
}



/* Buyer Protection Mobile Styles */
@media screen and (max-width: 749px) {
.main-cart .box-protection .box-flex > .box-content > h3 {
 
      padding-left: 25px;
}
  .main-cart .sub-total,
.main-cart .box-protection {
  padding: 10px;
}


  .main-cart .box-protection .box-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
        gap: 5px;

  }
 
  
  .main-cart .box-protection .box-flex > svg {
    height: auto;
    width: 60px;
    flex: 0 0 auto;
  }

  .main-cart .box-protection .box-content {
    width: calc(100% - 30px);
  }
  
  .main-cart .box-protection .box-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .main-cart .box-protection .sub-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .main-cart .box-protection .sub-title h4 {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin: 0;
    width: 100%;
  }
  
  .main-cart .box-protection .sub-title h4 svg {
    width: 14px;
    height: auto;
    margin-right: 5px;
    flex-shrink: 0;
  }
  
  .main-cart .box-protection .sub-title h4 div {
    display: flex;
    flex-wrap: wrap;
    line-height: 20px;
  }
  .main-cart .box-protection .box-flex>.box-content .sub-title h4:not(:last-child) {
     margin-bottom: 0px;
  }
}


/* modal confirm start */


.content-modal-confirm,
.content-modal-preview {
  opacity: 0;
  pointer-events: none;
  top: 46%;
  background-color: white;
  transition: 0.4s;
  position: fixed;
  z-index: 999999;
  border-radius: 12px;
  padding: 15px 20px;
}

@media (min-width: 576px) {
  .content-modal-confirm,
  .content-modal-preview {
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
    min-width: 490px;
  }
}

@media (max-width: 576px) {
  .content-modal-confirm,
  .content-modal-preview {
    left: 20px;
    padding: 15px 15px;
    right: 20px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

.content-modal-confirm p,
.content-modal-preview p {
  font-weight: 600;
  text-align: center;
  font-size: 18px;
}

@media (max-width: 576px) {
  .content-modal-confirm p,
  .content-modal-preview p {
    font-size: 15px;
  }
}

.overlay-modal-confirm,
.overlay-modal-preview {
  position: fixed;
  top: 0;
  height: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
  display: inline important;
  z-index: 99999;
}

#wrapper-modal-confirm button,
.wrapper-modal-preview button {
  font-weight: 500;
  font-size: 18px;
  border-radius: 6px;
  background-color: #910f3f;
  min-height: auto;
  height: 44px;
  border: none;
  color: #fff;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  padding: 5px 15px;
  cursor: pointer;
  width: 70%;
      font-weight: 700;
    text-transform: uppercase;
    height: 54px;
    max-height: 54px;
    font-size: 24px;
}

#wrapper-modal-confirm button .loading-checkout:after,
.wrapper-modal-preview button .loading-checkout:after {
  top: 16px;
  right: 10px;
}

#wrapper-modal-confirm img,
.wrapper-modal-preview img {
  width: 100%;
  max-height: 85vh;
  -o-object-fit: contain;
     object-fit: contain;
}

#wrapper-modal-confirm {
  text-align: center;
}

#wrapper-modal-confirm .handle-cancel-confirm-modal {
  background-color: #e6e6e6;
  margin-left: 5px;
}

#wrapper-modal-confirm .content-modal-confirm {
  max-width: 490px;
}

#wrapper-modal-confirm.is-open .content-modal-confirm {
  opacity: 1;
  pointer-events: unset;
  top: 50%;
}

#wrapper-modal-confirm.is-open .overlay-modal-confirm {
  opacity: 1;
  pointer-events: unset;
}

#wrapper-modal-confirm .action-modal {
  margin-top: 15px;
}

#wrapper-modal-confirm .preview-img-modal-confirm {
  margin: auto;
}

#wrapper-modal-confirm .preview-img-modal-confirm.ld-custom {
  background-color: #d3dbe2;
}

#wrapper-modal-confirm .preview-img-modal-confirm.ld-custom img {
  opacity: 0;
}

#wrapper-modal-confirm #handle-cancel-confirm-modal {
  background-color: #e6e6e6;
  margin-left: 5px;
}


.wrapper-modal-preview .action-modal {
  text-align: center;
  margin-top: 15px;
}

.wrapper-modal-preview .content-modal-preview {
  max-width: 490px;
}

.wrapper-modal-preview .content-modal-preview .tos_warning.checkout_button {
  display: inline-block;
  width:100%
}

.wrapper-modal-preview.is-open .content-modal-preview {
  opacity: 1;
  pointer-events: unset;
  top: 50%;
}

.wrapper-modal-preview.is-open .overlay-modal-preview {
  opacity: 1;
  pointer-events: unset;
}

.content-modal-preview .icon-closed {
  display: inline-block;
  min-height: auto;
  width: 35px;
  height: 35px;
  position: absolute;
  top: 10px;
  border-radius: 6px;
  right: 10px;
  cursor: pointer;
  font-size: 25px;
  line-height: 35px;
  margin: 0;
  margin-left: 0 !important;
  background: #e6e6e6;
}

.customily-property{
  display: none !important;
}




@media screen and (max-width: 899px) {
  .cart__footer .cart__ctas {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 10px 13px;
    width: 100%;
    left: 0;
    height: 70px;
    z-index: 99999;
  }
  .payment-methods-wrapper {
    margin-top: 10px;
  }
}


.main-cart .continue-shopping {
  font-size: 14px;
  line-height: 28px;
  color: #910f3f;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  margin-bottom: 10px;

}

.main-cart .text-center > .icon, .title-wrapper-with-link .icon {
    color: #910f3f;
    width: 1.2rem;
    height: 1.2rem;
    color: #d63232;
}
.title-wrapper-with-link .icon {
   margin-right: 0.7rem;
}


.main-cart .continue-shopping:hover{
  color: #910f3f;
  text-decoration: none;
  margin-bottom: 10px;

}
.text-center {
  text-align: center;
}
.dynamic-checkout__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cart-quantity .svg-wrapper .icon-minus{display:block !important;}

.dynamic-checkout__content shop-pay-wallet-button,
.dynamic-checkout__content shopify-paypal-button,
.dynamic-checkout__content shop-pay-wallet-button > *,
.dynamic-checkout__content shopify-paypal-button > * {
  width: 100% !important;
  min-width: 0;
}

.dynamic-checkout__content iframe,
.dynamic-checkout__content shop-pay-wallet-button iframe,
.dynamic-checkout__content shopify-paypal-button iframe {
  width: 100% !important;
  min-width: 0 !important;
}

shopify-accelerated-checkout-cart {
  width: 100%;
  display: block;
}



.cart__ctas_pc {
  text-align: center;
}



.cart__ctas_pc button {
  width: 100%;
  margin-top: 10px;
}

.cart__ctas_pc > * + * {
  margin-top: 1rem;
}


@media screen and (min-width: 750px) {
  .cart__ctas_pc {
    display: none;
  }
}
.cart-footer__discounts-wrapper {
  display: flex;
  flex-direction: column; /* 让每个折扣项垂直排列 */
  align-items: center;    /* 水平居中 */
  gap: 0.5rem;            /* 折扣项之间的间距 */
  margin-bottom: 1.5rem;  /* 和下面的总计拉开一些距离 */
}

.cart-footer__discount-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  width: -moz-fit-content;
  width: fit-content; /* 宽度自适应内容 */
}

.cart-footer__discount-item .icon-discount {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* 针对自动折扣（如买4件打8折）的样式 */
.cart-footer__discount-item--auto {
  color: #c51c1c; /* 红色，强调优惠 */
  background-color: #fdecec;
  border: 1px solid #f9d5d5;
}

/* 针对折扣码的样式 */
.cart-footer__discount-item--code {
  color: #0d8a55; /* 绿色，表示成功应用 */
  background-color: #e7f4ef;
  border: 1px solid #c3e5d9;
}

/* 折扣码减免金额的样式 */
.cart-footer__discount-amount {
  margin-left: 0.5rem;
  font-weight: 400;
  opacity: 0.8;
}


.cart-footer__upsell-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ffc371, #ff5f6d); /* 漂亮的渐变色 */
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 50px; /* 圆角胶囊形状 */
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 95, 109, 0.4);
  animation: pulse 2s infinite;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: 10px;
}

.cart-footer__upsell-notice .icon-sparkle {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 添加一个跳动动画来吸引注意 */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 95, 109, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 95, 109, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 95, 109, 0.4);
  }
}
/* 修改后的移动端样式 - 升级提示 (更大尺寸) */
@media screen and (max-width: 390px) {
  .cart-footer__upsell-notice {
    padding: 0.8rem 1.5rem;   /* 再次增大内边距 */
    font-size: 1.2rem;          /* 增大字体大小 (约 16px) */
    max-width: 100%;
    animation: none;
  }

  .cart-footer__upsell-notice .icon-sparkle {
    width: 20px;              /* 增大图标宽度 */
    height: 20px;             /* 增大图标高度 */
    margin-right: 10px;
  }
}


/* 修改后的移动端样式 - 折扣提示框 (更大尺寸) */
@media screen and (max-width: 390px) {
  .cart-footer__discount-item {
    padding: 0.7rem 1.2rem;   /* 再次增大内边距 */
    font-size: 1.2rem;      /* 再次增大字体大小 (约 14.5px) */
  }

  .cart-footer__discount-item .icon-discount {
    width: 16px;              /* 增大图标宽度 */
    height: 16px;             /* 增大图标高度 */
    margin-right: 8px;
  }
  
  .cart-footer__discount-item .cart-footer__discount-amount {
    margin-left: 0.6rem;
  }
}


@media screen and (max-width: 749px) {
  /* --- 升级提示 --- */
  .cart-footer__upsell-notice {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem; /* 约 16px */
    animation: none;
  }

  .cart-footer__upsell-notice .icon-sparkle {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  /* --- 已应用折扣 --- */
  .cart-footer__discount-item {
    padding: 0.7rem 1.2rem;
    font-size: 1.2rem; /* 约 14.5px */
  }

  .cart-footer__discount-item .icon-discount {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }
  
  .cart-footer__discount-item .cart-footer__discount-amount {
    margin-left: 0.6rem;
  }
}
