/* section-cart-drawer.css */
.cart-drawer {
  position: fixed;
  z-index: 10021;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(var(--color-mask), 0.5);
  transition: all 200ms ease;
}

.cart-drawer {
  visibility: hidden;
  opacity: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cart-drawer.active {
  visibility: visible;
  opacity: 1;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

.cart-drawer__inner {
  height: 100%;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 200ms ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: rgb(var(--color-page-background));
}

.cart-drawer__fixed-checkout {
  transform: translateX(100%);
  transition: transform 200ms ease;
}

.cart-drawer__inner .cart-drawer__inner-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart-drawer__warnings {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.cart-drawer.active .cart-drawer__inner,
.cart-drawer.active .cart-drawer__fixed-checkout {
  transform: translateX(0);
}

.cart-drawer__header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
}

.cart-drawer__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -20px;
  width: calc(100% + 40px);
  height: 1px;
  background-color: rgb(var(--color-entry-line));
}

.cart-drawer__close {
  color: rgb(var(--color-text));
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 0;
  top: 2px;
  right: -4px;
  padding: 6px;
  position: absolute;
}

.cart-drawer__heading.title5 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 300;
  text-align: center;
}

cart-drawer {
  display: block;
  position: fixed;
  z-index: 10021;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
}

.cart-drawer-container {
  width: 440px;
}

.cart-drawer__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.cart-drawer__overlay:empty {
  display: block;
}

/* cart-drawer-items {
  overflow: auto;
  flex: 1;
} */

.cart-drawer__inner {
  overflow-y: scroll;
}

@media screen and (max-height: 650px) {
  cart-drawer-items {
    overflow: visible;
  }

  .cart-drawer__inner {
    overflow-y: scroll;
  }
}

@media (max-width: 959px) {
  .cart-drawer-container {
    width: 90%;
  }
}

cart-drawer-items::-webkit-scrollbar {
  width: 3px;
}

cart-drawer-items::-webkit-scrollbar-thumb {
  background-color: rgba(18, 18, 18, 0.7);
  border-radius: 100px;
}

cart-drawer-items::-webkit-scrollbar-track-piece {
  margin-top: 20px;
}

/* cart-drawer-footer */

.cart-drawer__footer__container {
  display: flex;
  justify-content: flex-end;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cart-drawer__checkout-container {
  width: 100%;
  position: relative;
  padding: 40px 0;
}

.cart-drawer__checkout-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  width: calc(100% + 40px);
  height: 1px;
  background-color: rgb(var(--color-entry-line));
}

.cart-drawer__amount-wrapper {
  margin: 0;
  padding: 0;
}

.cart-drawer__amount-wrapper li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(var(--color-text));
  margin-bottom: 8px;
}

.cart-drawer__amount-wrapper li em {
  font-style: normal;
  margin-right: 12px;
}

.cart-drawer__amount-wrapper .cart__discount span {
  color: rgb(var(--color-discount));
}

.cart-drawer__discount span {
  color: rgb(var(--color-discount));
}

.cart-drawer__amount-wrapper span,
.cart-drawer__amount-wrapper .cart__level-value {
  font-weight: 300 !important;
}

#checkout {
  /* 重置 .button 基类干扰 */
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 24px;
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #FFFFFF;
  background-color: #1A1A1A;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  white-space: normal;
  vertical-align: middle;
  user-select: none;
  transition: background-color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 覆盖 .button::before */
#checkout::before {
  content: none;
}

/* 覆盖 .button::after（主题的伪边框） */
#checkout::after {
  content: none;
}

/* 覆盖 .button:hover */
#checkout:hover:not([disabled]):not(.disabled) {
  background-color: #4A4A4A;
  color: #FFFFFF;
}

/* 覆盖 .button:hover::before */
#checkout:hover:not([disabled]):not(.disabled)::before {
  content: none;
}

/* 覆盖 .button:hover::after */
#checkout:hover:not([disabled]):not(.disabled)::after {
  content: none;
}

/* 点击无缩放 */
#checkout:active {
  transform: none;
}

#checkout:active::before {
  animation: none;
}

.cart-drawer__checkout {
  margin-top: 15px;
}

.cart-drawer__taxes__desc {
  text-align: center;
}

.cart-drawer__body {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
}

.cart-drawer__body .cart-drawer__inner {
  flex: 1;
}

.cart-drawer__body .cart-fixed-checkout {
  position: static;
}

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

/* snippet-cart-fixed-checkout.css */
.cart-fixed-checkout {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

.cart-fixed-checkout.cart-empty {
    display: none;
}

.cart-fixed-checkout__container {
    background-color: rgb(var(--color-page-background));
    box-shadow: 0px -4px 20px 0px rgba(var(--color-text), 0.05);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.cart-fixed-checkout__dropdown-button {
    text-align: center;
    opacity: 1;
    max-height: 50px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.cart-fixed-checkout__amount {
    margin: 0;
    padding: 0;
}

.cart-fixed-checkout__amount li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(var(--color-text));
    margin-bottom: 8px;
}

.cart-fixed-checkout__amount li em {
    font-style: normal;
    margin-right: 12px;
}

.cart-fixed-checkout__amount li.cart__discount span {
    color: rgb(var(--color-discount));
}

.cart-fixed-checkout__prices {
    padding: 0 12px 12px;
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
    overflow-y: auto;
}

.cart-fixed-checkout__desc {
    font-size: 12px;
    color: rgb(var(--color-light-text));
}

.cart-fixed-checkout .cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-fixed-checkout__buttons {
    margin-top: 10px;
}

.cart-fixed-checkout__footer {
    border-top: 1px solid rgb(var(--color-entry-line));
    padding: 12px;
}

.cart-fixed-checkout .cart__saved-price {
    color: rgb(var(--color-discount));
}

.cart-fixed-checkout .cart__price-zone {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 8px;
    align-items: center;
}

.cart-fixed-checkout .cart__total-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-fixed-checkout .cart__toggle-icon svg {
    transition: transform 0.3s ease-out;
}

.cart-fixed-checkout__amount span,
.cart-fixed-checkout__amount .cart__level-value,
.cart-fixed-checkout .cart__saved-price span,
.cart-fixed-checkout .cart__total-price>span {
    font-weight: 300 !important;
}

.cart-fixed-checkout .cart-drawer__dropdown-toggle-normal {
    cursor: default;
}

.cart-fixed-checkout.collapsed .cart-fixed-checkout__prices {
    max-height: 0;
    opacity: 0.01;
    padding: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.cart-fixed-checkout.collapsed .cart-fixed-checkout__dropdown-button {
    opacity: 0.01;
    max-height: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.cart-fixed-checkout.collapsed .cart__toggle-icon svg {
    transform: rotate(180deg);
}

.cart-fixed-checkout.invisible {
    /* animation: cart-drawer-hide ; */
    transform: translateY(100px);
    transition: transform 0.3s ease-out;
}

.cart-fixed-checkout.invisible .cart-fixed-checkout__container {
    opacity: 0.01;
    transform: translateY(100%);
}

.cart-drawer__items .quantity,
.cart-drawer__items .quantity::before,
.cart-drawer__items .quantity::after {
    border-radius: 0;
}

.cart-fixed-checkout__buttons .shopline-element-buy-now,
.cart-fixed-checkout__buttons .shopline-element-buy-now::before,
.cart-fixed-checkout__buttons .shopline-element-buy-now::after,
.cart-fixed-checkout__buttons [class*='paypal'],
.cart-fixed-checkout__buttons [class*='paypal']::before,
.cart-fixed-checkout__buttons [class*='paypal']::after,
.cart-fixed-checkout__buttons button,
.cart-fixed-checkout__buttons button::before,
.cart-fixed-checkout__buttons button::after {
    border-radius: 0 !important;
}

/* 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 */
/* snippet-cart-item.css */
.cart-item {
    display: flex;
    padding: 40px 0;
    border-bottom: 1px solid rgb(var(--color-entry-line));
}

.cart-item__media {
    width: 140px;
    flex-shrink: 0;
    margin-right: 30px;
}

.cart-item__media .cart-item__image-container {
    display: block;
    outline: none;
    width: 100%;
}

.cart-item__media .cart-item__image-container .placeholder {
    background-color: rgb(var(--color-image-background));
}

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

.cart-item__name {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 300;
    text-decoration: none;
    color: rgb(var(--color-text));
    margin-bottom: 4px;
    display: inline-block;
}

.cart-item__details__wrapper {
    display: flex;
    flex-grow: 1;
}

.cart-item__details {
    /* min-width: 294px; */
    flex-grow: 1;
}

.cart-item__details .product-option {
    margin-bottom: 2px;
}

.cart-item__details .product-option span:first-child {
    font-weight: 600;
}

.cart-item__details .product-property {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.cart-item__details .product-property .product-property__name {
    flex-shrink: 0;
    max-width: 100%;
}

.cart-item__details .product-property .product-property__value {
    display: flex;
    flex-wrap: wrap;
}

.cart-item__details .product-property .product-property__link {
    display: block;
}

.cart-item__details .product-property .product-property__image {
    display: block;
    margin-right: 5px;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.cart-item__quantity {
    width: 20.8%;
    flex-shrink: 0;
    margin: 0 20px;
}

.cart-item__quantity .cart-item__quantity-wrapper {
    display: flex;
    align-items: center;
    height: 41px;
}

.cart-item__quantity .quantity {
    width: 125px;
    height: 41px;
    margin-right: 22px;
    min-height: unset;
}

.cart-item__quantity cart-remove-button {
    line-height: 0;
}

.cart-item__quantity cart-remove-button svg {
    width: 16px;
    height: 16px;
    color: rgba(var(--color-text), 0.6);
    cursor: pointer;
    display: block;
}

.cart-item__quantity cart-remove-button:hover svg {
    color: rgba(var(--color-text), 1);
}

.main-cart-items-wrapper .cart-item__quantity--remove-only {
    width: auto;
    min-width: auto;
    margin: 0 12px 0 0;
}

.main-cart-items-wrapper .cart-item__quantity--remove-only .cart-item__quantity-wrapper {
    justify-content: flex-end;
}

.main-cart-items-wrapper .cart-item__quantity--remove-only .cart-item__quantity-wrapper>input[type='hidden'] {
    display: none;
}

.cart-item__error {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.cart-item__error-text {
    order: 1;
}

.cart-item__error .icon-error {
    margin-right: 5px;
    margin-top: 1.5px;
    flex-shrink: 0;
}

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

.cart-item__totals {
    width: 18.4%;
    flex-shrink: 0;
    position: relative;
}

.cart-item__price-wrapper {
    text-align: right;
}

.cart-item__totals .original__price {
    color: rgb(var(--color-light-text));
    font-size: 13px;
    line-height: 1.6;
    text-decoration: line-through;
}

.cart-item__totals .final__price {
    color: rgb(var(--color-text));
    word-break: break-all;
}

.cart-item__price-wrapper .final__price,
.cart-item__price-wrapper .original__price {
    font-weight: 300 !important;
}

.cart-item__discounts {
    margin: 0;
    padding: 0;
}

.cart-item__discounts li {
    list-style: none;
    color: rgb(var(--color-discount));
    display: flex;
    align-items: center;
}

.cart-item__discounts li span {
    margin-left: 4px;
}

@media (max-width: 959px) {
    .cart-item {
        padding: 20px 0;
    }

    .cart-item__media {
        width: 80px;
        margin-right: 16px;
    }

    .cart-item__details__wrapper {
        display: block;
    }

    .cart-item__quantity {
        width: auto;
        margin: 12px 0;
    }

    .cart-item__totals {
        width: auto;
    }

    .cart-item__price-wrapper {
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .cart-item__price-wrapper .final__price {
        margin-right: 6px;
    }

    .original__price__desktop {
        display: none;
    }

    .cart-item .loading-overlay {
        left: 0;
    }
}

@media (min-width: 960px) {
    .original__price__mobile {
        display: none;
    }

    .cart-item .loading-overlay .loading-overlay__spinner svg {
        width: 25px;
        height: 25px;
    }

    .cart-item__quantity {
        min-width: 200px;
    }

    .cart-item__totals {
        min-width: 140px;
    }
}

/* loading */

.cart-item .loading-overlay {
    top: 0;
    right: 0;
    position: absolute;
    line-height: 0;
}

.cart-item .loading-overlay .loading-overlay__spinner {
    animation-duration: 1s;
}

.cart-item .loading-overlay.loading~* {
    visibility: hidden;
}

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

/* cart drawer case */

.cart-drawer__items .cart-item {
    padding: 20px 0;
    border-bottom: none;
}

.cart-drawer__items .cart-item__media {
    width: 80px;
    margin-right: 16px;
}

.cart-drawer__items .cart-item__details__wrapper {
    display: block;
}

.cart-drawer__items .cart-item__quantity {
    max-width: none;
    margin: 20px 0;
    margin-bottom: 10px;
}

.cart-drawer__items .cart-item__totals {
    max-width: none;
}

.cart-drawer__items .cart-item__price-wrapper {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cart-drawer__items .cart-item__price-wrapper .final__price {
    margin-right: 6px;
}

.cart-drawer__items .original__price__desktop {
    display: none;
}

.cart-drawer__items .original__price__mobile {
    display: block;
}

.cart-drawer__items .cart-item .cart-item__totals .loading-overlay {
    left: 0;
}

.cart-drawer__items .cart-item__totals {
    width: auto;
}

@media (max-width: 959px) {

    .cart-drawer__items .cart-item__totals,
    .main-cart-items-wrapper .cart-item__totals {
        margin: 10px 0;
    }

    .cart-drawer__items .cart-item__quantity,
    .main-cart-items-wrapper .cart-item__quantity {
        margin: 0;
    }

    .cart-drawer__items .cart-item__discounts li+li,
    .main-cart-items-wrapper .cart-item__discounts li+li {
        margin-top: 2px;
    }

    .cart-drawer__items .cart-item__error,
    .main-cart-items-wrapper .cart-item__error {
        margin-top: 10px;
    }

    .cart-drawer__items .cart-item__details .product-option:last-child,
    .main-cart-items-wrapper .cart-item__details .product-option:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 960px) {
    .cart-drawer__items .cart-item__discounts {
        margin-bottom: 10px;
    }

    .cart-drawer__items .cart-item__discounts li+li {
        margin-top: 2px;
    }

    .cart-drawer__items .cart-item__quantity .cart-item__quantity-wrapper {
        margin: 12px 0;
    }

    .cart-drawer__items .cart-item__details .product-option:last-child {
        margin-bottom: 0;
    }
}

/* moq */

.cart-item__volume-pricing-wrapper {
    position: relative;
}

.cart-item__volume-pricing-title {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.cart-item__volume-pricing-title>span {
    line-height: 1;
    margin-left: 8px;
}

.cart-item__quantity-rules {
    padding: 4px 20px;
}

cart-item-quantity volume-pricing {
    display: block;
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    z-index: 2;
    left: 0;
    width: 100%;
    margin: 2px 0;
    padding: 10px 0;
    background-color: rgba(var(--color-page-background));
}

@media (min-width: 960px) {
    cart-item-quantity volume-pricing {
        width: 245px;
    }
}

cart-item-quantity volume-pricing ul li {
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
}

cart-item-quantity volume-pricing ul li:nth-child(odd) {
    background: rgba(var(--color-text), 0.03);
}

cart-item-quantity volume-pricing ul li:nth-child(even) {
    background: rgba(var(--color-text), 0.09);
}

.cart-drawer__items .cart-item {
    position: relative;
}

.cart-drawer__items .cart-item__details__wrapper {
    padding-right: 34px;
}

.cart-drawer__items .cart-item__quantity {
    position: absolute;
    top: 50%;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.cart-drawer__items .cart-item__quantity .cart-item__quantity-wrapper {
    height: auto;
    margin: 0;
    justify-content: center;
}

.cart-drawer__items .cart-item__quantity cart-remove-button svg {
    width: 15px;
    height: 15px;
}

.cart-drawer__items .cart-item__price-wrapper .final__price {
    font-size: 14px;
    line-height: 1.35;
}

@media (min-width: 960px) {
    .main-cart-items-wrapper .cart-item__details__wrapper {
        position: relative;
        align-items: center;
    }

    .main-cart-items-wrapper .cart-item__details {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-cart-items-wrapper .cart-item__name {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .main-cart-items-wrapper .cart-item__quantity {
        position: absolute;
        top: calc(50% + 30px);
        right: 0;
        width: 18.4%;
        min-width: 140px;
        margin: 0;
        display: flex;
        justify-content: flex-end;
        z-index: 1;
    }

    .main-cart-items-wrapper .cart-item__quantity .cart-item__quantity-wrapper {
        height: auto;
        justify-content: flex-end;
    }
}

/* 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 */
/* component-cart.css */
.cart-empty .cart__warnings {
  display: block;
}

.cart__footer-container.cart-empty,
.cart-empty .cart__contents,
.cart-empty .main-cart-items-container {
  display: none;
}

.cart-drawer__inner-wrapper.cart-empty cart-drawer-items,
.cart-drawer .cart-empty .cart-drawer__checkout-container {
  display: none;
}

.cart__warnings {
  display: none;
  width: 100%;
  text-align: center;
}

.cart__warnings .cart__empty-text-wrapper {
  margin: 80px 0;
}

.cart__empty-product-recommend {
  margin-top: 80px;
}

.cart-drawer .cart__warnings .cart__empty-text-wrapper {
  margin: 200px 0;
}

.cart-drawer .cart__empty-product-recommend {
  margin-top: 200px;
}

.cart__empty-text {
  margin-bottom: 20px;
  color: rgb(var(--color-text));
}

.cart__level-wrapper {
  justify-content: space-between;
  align-items: flex-start;
}

.cart__level-wrapper svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cart__level-wrapper .cart__level-label {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
}

.cart__level-wrapper .cart__level-value {
  color: rgba(var(--color-discount));
  white-space: nowrap;
}

@media (max-width: 959px) {
  .cart__warnings .cart__empty-text-wrapper {
    margin: 130px 0;
  }
  .cart__empty-product-recommend {
    margin-top: 130px;
  }
  .cart-drawer .cart__warnings .cart__empty-text-wrapper {
    margin: 80px 0;
  }
  .cart-drawer .cart__empty-product-recommend {
    margin-top: 80px;
  }
}

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

