.cart-drawer {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    background-color: rgba(var(--color-mask), 0.5);
    transition: visibility 200ms ease;
    overflow: hidden;
}

.cart-drawer {
    visibility: hidden;
}

.cart-drawer.active {
    visibility: visible;
}

.cart-drawer__inner {
    height: 100%;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 200ms ease;
    display: flex;
    flex-direction: column;
    padding: 0px 10px 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: space-between;
    align-items: center;
    padding: 11px 0px;

}

.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: 9px;
    right: -4px;
    padding: 6px;
    position: absolute;
}

cart-drawer {
    display: block;
    position: fixed;
    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) {
    .recommend-product-item .recommend-product-item-icon-button {
            border-radius: 50%;
                /* width: 50%; */
                height: 36px;
                background: #ffffffc2;
                justify-content: flex-end;
                padding-right: 10px;
                top: auto;
                bottom: 70px;
                right: 8px;
        }
    .recommend-product-item .recommend-product-item-icon-button:after {
        border: none;
                    border-radius: 0;
    }
        .recommend-product-item .recommend-product-item-icon-button svg {

            margin-left: 10px;
        }
    .cart-drawer-container {
        width: 93%;
    }
               
                .recommend-product-item .card .quick-add__opener{
                        width: 100% !important;
                            height: 100% !important;
                }
/* 总价和垃圾桶 文本*/
   .cart-item__media img {
        height: 120px;
        width: 80px;
    }
 .cart-item__name {
    font-size: 11.9px;
    line-height: 1.6;
}
.cart-item__media{
            margin-right: 0px !important;
}
.cart-item{
    padding: 0 !important;
}

 .drawer_cart_quantity_total{
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: baseline;
}
 .cart-item__quantity .quantity{
        width: 80px;
        margin-right: 10px;
}
 .cart-item__quantity{
    margin-right: 35px !important;
}
        
}

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

#checkout {
    width: 100%;
}

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

/* 进度条 */
.cart-drawer__items .Progress_bar_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1px 0 15px !important;
    margin-bottom: 15px;
    border-bottom: 1px solid rgb(var(--color-entry-line)) !important;
}

.Progress_bar_item .progress-container {
    width: 100%;
    background-color: #fff;
    /* border-radius: 25px; */
    overflow: hidden;
    height: 12px;
    margin: 5px 0 0;
    border: 2px solid #333;
}

.Progress_bar_item .progress-bar {
    height: 100%;
    width: 0;
    background-color: #dd8c32;
    /* border-radius: 25px; */

    transition: width 0.5s ease;
}
.cart-drawer__items .Progress_bar_item p{
    /* display: none; */
    margin: 0;
}
.Progress_bar_item .progress-text {
    display: none;
    font-size: 15px;
    color: #2e2e2e;
    margin-top: 10px;
    padding: 0;
    margin: 0;
}

/* 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 */
@media (min-width:769px) and (max-width: 959px) {
    .cart-drawer-container {
        width: 50%;
    }

 cart-drawer-items .cart-item .cart-item__media{
        margin-right: 0px;
 }
 .cart-drawer__items .cart-item{
    margin: 10px 0;
 }
}
.button:not(.button--link)::before,
.shopline-element-buy-now::before {
    background-color: transparent;
    /* content: none; */
}

.button:not(.button--link):hover,
.shopline-element-buy-now:hover {
    background-color: #000;
    color: #fff;
    transition: background-color 0.3s ease, color 1s ease;
    /* 添加渐入动画 */
}
.cart-fixed-checkout__buttons button{
        background-color: #000;
        font-weight: 400;
}
.button:not([disabled]):hover::after,
.shopline-element-buy-now:hover::after{
        box-shadow: none;
}
/* 点击后 */
.gotocheckout{
    background-color: #dd8c32 !important;
}

.cart-drawer .recommend-grid>*{
        margin-top: 5px;
}
.cart-drawer .recommend-grid .recommend-product-item-image-wrapper{
    aspect-ratio: 3 / 4;
}
.cart-drawer .recommend-grid .sale-price{
    color: #e53d3d;
}
