.title-wrapper-with-link {
  margin-top: 5px;
  margin-bottom: 0px;
}

.cart-items td,
.cart-items th {
  padding: 0;
  border: none;
}

.cart-items th {
  text-align: left;
  padding-bottom: 1.8rem;
  opacity: 0.85;
  font-weight: normal;
}

.cart-item__quantity-wrapper {
  display: flex;
}

.cart-item__totals {
  position: relative;
}

.cart-item__image-container:after {
  content: none;
}

.global-media-settings {
  border: none !important;
}

.cart-item__image {
  height: auto;
  max-width: 100%;
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  -ms-border-radius: 8px !important;
  -o-border-radius: 8px !important;
}

.cart-item__details {
  font-size: 1.6rem;
  line-height: 1.4;
}

.cart-item__media {
  position: relative;
  /*cursor: pointer;*/
  width: 33%;
  max-width: 265px;
}

.cart-item__link {
  display: block;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.cart-item__name {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 26px;
  color: #0B2A4A;
  font-weight: 500;
    text-decoration: none;

}

.cart-item__name:hover {
  color: #fc6514;

}

.cart-item__price-wrapper > * {
  display: block;
  margin: 0;
  padding: 0;
}

.cart-item__discounted-prices dd {
    margin: 0;
    display: block; /* 确保PC端保持原格式 */
}

@media screen and (min-width: 768px) {
    .cart-item__discounted-prices {
        display: block;
    }

    .cart-item__discounted-prices dd {
        display: block;
        text-align: right;
    }
}

@media screen and (max-width: 767px) {
    .cart-item__discounted-prices {
        display: flex;
        align-items: center;
        gap: 8px; /* 控制原价和折扣价的间距 */
        flex-wrap: wrap;
    }

    .cart-item__discounted-prices dd {
        display: inline-block;
        text-align: left;
    }

    .cart-item__old-price {
        text-decoration: line-through;
        font-size: 1.4rem;
        color: #b3adad;
        margin-right: 5px; /* 让原价和现价间隔更清晰 */
    }

    .cart-item__discounted-prices .price {
        font-size: 1.6rem;
        font-weight: 600;
        color: #cf3232;
    }
}


.cart-item__discounted-prices .cart-item__old-price.cart-item__old-price {
  font-size: 1.6rem;
  line-height: 26px;
  color: #b3adad;
  font-weight: 400 !important;
}

.product-option {
  font-size: 1.4rem;
  word-break: break-word;
  line-height: 1.5;
}

.cart-item cart-remove-button {
  display: flex;
  align-items: center;
}

cart-remove-button .button {
  padding: 5px;
  display: flex !important;
  min-width: auto;
  min-height: auto;
  margin-left: 2rem;
}

cart-remove-button .button:before,
cart-remove-button .button:after {
  content: none;
}

cart-remove-button .button:not([disabled]):hover {
  color: rgb(18, 18, 18);
}

.cart-item .loading-overlay,
.totals .loading-overlay {
  top: 0;
  left: auto;
  right: auto;
  bottom: 0;
  padding: 0;
}

@media screen and (min-width: 750px) {
  .cart-item .loading-overlay,
  .totals .loading-overlay {
    right: 0;
    bottom: auto;
  }
}

.cart-item .loading-overlay:not(.hidden) ~ *,
.js-contents-right .totals .loading-overlay:not(.hidden) ~ * {
  visibility: hidden;
}

.js-contents-right .totals {
  position: relative;
}

.cart_savings.js-cart_savings.sale {
  font-weight: 500;
  color: #2E486D;
}

.cart_savings.js-cart_savings.sale .money {
  color: #2E486D;
}

.cart-item__error {
  display: flex;
  align-items: flex-start;
  margin-top: 0.2rem;
  width: -moz-min-content;
  width: min-content;
  min-width: 100%;
}

.cart-item__error-text {
  font-size: 1.2rem;
  line-height: 1.2;
  order: 1;
}

.cart-item__error-text + .svg-wrapper {
  flex-shrink: 0;
  width: 1.2rem;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
}

.cart-item__error-text:empty + .svg-wrapper {
  display: none;
}

.product-option + .product-option {
  margin-top: 0.4rem;
}

.product-option * {
  display: inline;
  margin: 0;
}

.cart-items thead th {
  text-transform: uppercase;
}

@media screen and (max-width: 749px) {
  .cart-items,
  .cart-items thead,
  .cart-items tbody {
    display: block;
    width: 100%;
  }

  .cart-items thead tr {
    display: flex;
    justify-content: space-between;
    border-bottom: 0.1rem solid rgba(18, 18, 18, 0.2);
    margin-bottom: 4rem;
  }
}

@media screen and (min-width: 750px) {
  .cart-items {
    border-spacing: 0;
    border-collapse: separate;
    box-shadow: none;
    width: 100%;
    display: table;
  }

  .cart-items th {
    border-bottom: 0.1rem solid rgba(18, 18, 18, 0.08);
  }

  .cart-items thead th:first-child {
    width: 50%;
  }

  .cart-items th + th {
    padding-left: 4rem;
  }

  .cart-items td {
    vertical-align: top;
    padding-top: 4rem;
  }

  .cart-item > td + td {
    padding-left: 4rem;
  }

  .cart-item__error {
    margin-left: 0.3rem;
  }
}

@media screen and (min-width: 749px) and (max-width: 990px) {
  .cart-items .quantity-popover__info-button {
    padding-left: 1.5rem;
  }
}

.cart-item {
  display: flex;
  align-items: start;
  gap: 20px;
  padding: 20px 0;
}

.cart-item:first-child {
  padding-top: 10px;
}


.main-cart .cart-items-box {
  width: calc(63% - 20px);
}

.cart-checkout {
  width: calc(37% - 20px);
}

.main-cart .sub-total {
  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;
}


@media only screen and (max-width: 420px) {
  .quantity {
    width: inherit;
  }
}

.cart-item__price-wrapper .price {
  font-size: 2.2rem;
  line-height: 22px;
  font-weight: 600 !important;
  color: #0B2A4A;
}

.product-controls-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.cart-item-content {
  width: 67%;
  flex-grow: 1;
}

.cart-item__details ul li {
  display: flex;
  margin-top: 5px;
}

.cart-item__details ul li::before {
  content: "\2022";
  margin-right: 10px;
}

.cart-item__details .meta {
  color: #85888d;
  font-size: 14px;
  line-height: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item__details .meta .option-text {
  flex-grow: 1;
}

.cart-items .cart-item:not(:last-child) {
  border-bottom: 1px solid #7373731A;
}

.itemCart {
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  margin-top: 2rem;
  color: #0B2A4A;
}

.cart-item__media .icon-preview {
  display: flex;
  color: #910f3f;
  align-items: center;
  cursor: pointer;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: center;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  margin: 5px 0 !important;
}

.cart-item__media .icon-preview svg {
  display: inline-block;
  margin-right: 5px;
  height: 17px;
}

.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;
  z-index: 99999;
}


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

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

.cart_savings {
  font-size: 14px;
  line-height: 24px;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.icon-cart-empty {
  max-width: 250px;
  margin: 10px auto 15px;
}

.title-page-empty {
  font-weight: 600;
  font-size: 20px;
}

.cart-empty .quote_empty {
  font-size: 16px;
  font-weight: 600;
  margin: 10px auto 22px;
  width: 65%;
}

.cart-empty {
  text-align: center;
  margin-top: 20px;
}

.box-btn-cart-empty a {
  background-color: #0b2a4a;
  color: #fff;
  font-size: 18px;
  line-height: 20px;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  float: none;
  margin-right: auto;
  margin-left: auto;
  width: fit-content;
  width: -moz-fit-content;
}

@media only screen and (max-width: 798px) {
  .cart-empty .quote_empty {
    width: 100%;
  }
  body .total-items{
    font-size: 19px;
  }
}

.sub-total.is-empty {
  padding: 0 !important;
  width: 0;
}

.main-cart.page-width:has(.cart-items-box.is-empty) {
  display: block;
}

.cart-items-box.is-empty,
.main-cart.page-width.is-empty .cart-items-box {
  width: 100% !important;
}

.edit-personalization {
  font-size: 14px;
  display: flex;
  gap: 10px;
}

.edit-personalization:hover {
  color: #f16523;
}

.price.money.price-sale {
  text-decoration: line-through;
  font-size: 16px;
  color: #b3adad !important;
  font-weight: 400 !important;
}

@media screen and (min-width: 481px) and (max-width: 932px) and (orientation: landscape) {
  .cart-item__price-wrapper .price {
    font-size: 1.8rem;
  }

  .price.money.price-sale {
    font-size: 1.4rem;
  }

  .wrapper-modal-preview.is-open .content-modal-preview {
    overflow: scroll;
    max-height: 90%;
  }
}

.not-event {
  pointer-events: none !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.quantity-popover-container {
  padding: 0 !important;
}

cart-remove-button a svg {
  width: 20px;
  height: 20px;
}

.sub-total .totals .totals__total {
  font-size: 24px;
  line-height: 35px;
  font-weight: 700;
  color: #0B2A4A;
}

.sub-total .totals .totals__total-value {
  font-size: 24px;
  line-height: 35px;
  font-weight: 700;
  color: #F36621;
  margin-left: 0 !important;
}

.cart-quantity {
  width: 100%;
}

.cart-item__image-container .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-container {
  width: 100%;
  margin: 20px auto;
  --color-green: #027b00;
}

.progress-text {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 400;
  color: #0B2A4A;
}

.progress-text strong {
  color: #F36621;
}

.sub-text{
  color: #0B2A4A;
  font-weight: 500;
}

.total-items{
  color: #0B2A4A;
  font-weight: 500;
  font-size: 2.4rem;
}

.progress-bar {
  position: relative;
  height: 12px;
  background-color: #f0f0f0; 
  border-radius: 8px;
  overflow: hidden;
}

.progress-filled {
  height: 100%;
  background-color: #ed7e00;
  border-radius: 8px 0 0 8px;
  transition: width 0.3s ease;
  position: relative;
  z-index: 2;
  -webkit-transition: width 0.3s ease;
  -moz-transition: width 0.3s ease;
  -ms-transition: width 0.3s ease;
  -o-transition: width 0.3s ease;
}

.progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:#efefef;
  pointer-events: none; 
}

@media screen and (max-width: 320px) {
  .itemCart {
    font-size: 15px;
  }
  .cart-item {
    gap: 10px;
    padding: 10px 0;
  }
  .cart-item:last-child {
    padding-bottom: 0;
  }
  .cart-item__media {
    width: 50%;
    max-width: 142px;
  }
  .cart-item__media .icon-preview {
    margin: 0 !important;
  }
  .cart-item-content {
    width: 50%;
  }
  .cart-item__name {
    font-size: 15px;
    line-height: 24px;
    font-weight: 500;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }
  .cart-item__details .meta {
    font-size: 13px;
  }
  .quantity__input {
    width: 36px;
  }
  .quantity__button {
    width: 30px;
  }
  .product-controls-group {
    flex-wrap: wrap;
    margin-top: 10px;
  }
  cart-remove-button .button {
    margin-left: 1rem;
  }
  cart-remove-button a svg {
    width: 18px;
    height: 18px;
  }
  .cart-item__quantity {
    width: 100%;
  }
  .cart-item__totals.right {
    margin-top: 10px;
  }
  .cart-item__price-wrapper .price {
    font-size: 16px;
    line-height: 26px;
  }
  .price.money.price-sale {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400 !important;
    text-align: left;
  }
  .cart-item__discounted-prices .cart-item__old-price.cart-item__old-price {
    font-size: 1.4rem;
    line-height: 24px;
  }
  .cart-item__price-wrapper dd {
    text-align: left;
  }
  .main-cart .sub-total {
    padding: 10px;
  }
  .sub-total .totals .totals__total {
    font-size: 19px;
    line-height: 29px;
  }
  .sub-total .totals .totals__total-value {
    font-size: 19px;
    line-height: 29px;
  }
  .cart_savings {
    margin-top: 5px;
  }
}

@media screen and (min-width: 321px) and (max-width: 767px) {
  .cart-item {
    gap: 15px;
    padding: 10px 0;
  }
  .cart-item:last-child {
    padding-bottom: 0;
  }
  .cart-item__media {
    width: 50%;
    max-width: 140px;
    margin-right: 5px;
  }
  .cart-item__media .icon-preview {
    margin: 4px 0 !important;
  }
  .cart-item-content {
    width: 50%;
  }
  .cart-item__name {
    font-size: 15px;
    line-height: 25px;
    font-weight: 500;
  }
  .cart-item__details .meta {
    font-size: 13px;
  }
   .quantity {
    width: calc(10rem / var(--font-body-scale) + var(--inputs-border-width) * 2);
  }
  .quantity__button {
    width: calc(3rem / var(--font-body-scale));
  }
  
  .quantity__input {
    width: 40px;
  }
  .product-controls-group {
    flex-wrap: wrap;
    margin-top: 10px;
  }
  cart-remove-button .button {
    margin-left: 1.5rem;
  }
  cart-remove-button a svg {
    width: 18px;
    height: 18px;
  }
  .cart-item__quantity {
    width: 100%;
  }
  .cart-item__totals.right {
    margin-top: 10px;
  }
  .cart-item__price-wrapper .price {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
  }
  .price.money.price-sale {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400 !important;
    text-align: left;
  }
  .cart-item__discounted-prices .cart-item__old-price.cart-item__old-price {
    font-size: 1.4rem;
    line-height: 24px;
  }
  .cart-item__price-wrapper dd {
    text-align: left;
  }
  .main-cart .sub-total {
    padding: 10px;
  }
  .sub-total .totals .totals__total {
    font-size: 19px;
    line-height: 29px;
  }
  .sub-total .totals .totals__total-value {
    font-size: 19px;
    line-height: 29px;
  }
  .cart_savings {
    margin-top: 5px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .sub-total .totals .totals__total {
    font-size: 24px;
    line-height: 34px;
  }
  .sub-total .totals .totals__total-value {
    font-size: 24px;
    line-height: 34px;
  }
}

@media screen and (min-width: 1024px) {
}

@media screen and (max-width: 899px) {
  .main-cart {
    flex-wrap: wrap;
  }

  .main-cart .cart-items-box,
  .cart-checkout {
    width: 100%;
  }

  .cart_savings {
    margin-top: 5px;
  }
  .cart__blocks .js-contents-right {
    padding-bottom: 10px;
    border-bottom: 1px solid #1773B0;
  }
  .icon-lock {
    display: block;
  }
}

/* ========================================================================= */
/* ==      Responsive Font Size for Cart Countdown Timer                  == */
/* ========================================================================= */

.cart-countdown {
  /* Mobile-first styles (default for small screens) */
  font-size: 14px;      /* MOBILE FONT SIZE: 14px */
  font-weight: 500;
  line-height: 26px;
  background: #F4F4F4;
  color: #0B2A4A;
  margin-top: 20px;
  padding: 2px 10px;
  border-radius: 8px;
}

/* Media Query for larger screens (PC) */
@media screen and (min-width: 750px) {
  .cart-countdown {
    font-size: 16px;  /* PC FONT SIZE: 16px */
  }
}
.cart-countdown p b {
  color: #F16523;
}
