.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 {
    text-decoration: none;
    color: rgb(var(--color-text));
    margin-bottom: 16px;
    display: inline-block;
    font-family: Furore;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

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

.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__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;
    font-family: DIN COROS;
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

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

/* 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 */
.cart-drawer-container {
    width: 420px;
}

.cart-item__quantity .quantity {
    width: 160px;
    height: 46px;


}

.cart-item__quantity .cart-item__quantity-wrapper {
    justify-content: space-between;
}

.cart-drawer__header {
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.cart-drawer__close {
    left: 0;
    top: 0;
}


.local-model,
.local-model-new {
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px;
    gap: 18px;
    border-radius: 12px;
    background: white;
    position: absolute;
    max-width: 1080px;
    min-height: 750px;
    width: 60%;
    height: 70%;
    overflow: hidden;
}

.local-model-new {
    z-index: 3000;
    min-height: 650px;
    background-color: #000000;
    color: #FFFFFF;
}

.local-model-new .model-container .model-local-box .local-box .local-box-name {
    color: #FFFFFF;
}

.local-model-new .model-container .model-local-box .local-box .local-box-position {
    color: #FFFFFF;
}

.model-container {
    text-align: center;
    width: 100%;
    padding: 40px;
}

.model-title {
    font-family: Furore;
    font-size: 24px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.model-subtitle {
    font-family: Poppins;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin: 20px;
    text-align: center;
}

.model-local-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-transform: uppercase;
    width: 100%;
}

.local-box {
    /* flex: 0 calc(33.33% - 30px); */
    flex: 0 31.333333333333333333%;
    border: 1px solid #DEDEDE;
    padding: 40px;
    gap: 16px;
    border-radius: 12px;
    text-align: center;
}

.local-box-name {
    text-align: center;
    font-family: Furore;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    color: #0F0F0F;
}

.local-box-position {
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #0F0F0F;
    margin: 20px 0;
}

.local-box-position p {
    margin: 0;
}

.local-box-btn {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    background-color: #000000;
    gap: 12px;
    border-radius: 8px;
    padding: 10px 50px;
    text-transform: uppercase;
    cursor: pointer;
}

.inut_select_cal input {
    margin: 0 !important;
    position: relative;
    vertical-align: middle;
    float: none;
    width: auto;
    display: none;
}

.inut_select_cal input[type="radio"]:checked+.local-box-btn {
    background-color: #03030370;
}

.local-model::-webkit-scrollbar {
    display: none;
}

.model-container {
    text-align: center;
    width: 100%;
    padding: 40px;
}

.model-title {
    font-family: Furore;
    font-size: 24px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.model-subtitle {
    font-family: Poppins;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin: 20px;
    text-align: center;
}

.model-local-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-transform: uppercase;
    width: 100%;
}

.local-box {
    /* flex: 0 calc(33.33% - 30px); */
    flex: 0 31.333333333333333333%;
    border: 1px solid #DEDEDE;
    padding: 40px;
    gap: 16px;
    border-radius: 12px;
    text-align: center;
}

.local-box-name {
    text-align: center;
    font-family: Furore;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    color: #0F0F0F;
}

.local-box-position {
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #0F0F0F;
    margin: 20px 0;
}

.local-box-position p {
    margin: 0;
}

.local-box-btn {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    background-color: #000000;
    gap: 12px;
    border-radius: 8px;
    padding: 10px 50px;
    text-transform: uppercase;
    cursor: pointer;
}

.inut_select_cal input {
    margin: 0 !important;
    position: relative;
    vertical-align: middle;
    float: none;
    width: auto;
    display: none;
}

.inut_select_cal input[type="radio"]:checked+.local-box-btn {
    background-color: #03030370;
}

.local-model::-webkit-scrollbar {
    display: none;
}

.local-model-new-box2 {
    overflow-y: auto;
    /* 内容可滚动 */
    max-height: calc(70vh);
    /* 限制最大高度 */
    padding: 10px;
    scrollbar-width: none;
    /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none;
    /* IE 隐藏滚动条 */
}

.model-local-box {
    overflow-y: auto;
    max-height: calc(70vh);
    padding: 10px;
    scrollbar-width: none;
}

@media screen and (max-width:959px) {
    .model-local-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .local-box-position p {
        margin-bottom: 10px;
    }

    .model-container {
        padding: unset;
    }
}

@media screen and (max-width:767px) {
    .local-model {
        min-width: 80%;
        min-height: unset;
    }

    .model-local-box {
        grid-template-columns: repeat(1, 1fr);
    }

    .local-box {
        flex: none;
        width: 100%;

    }

    .local-box-position p {
        margin: 10px;
    }

    .local-model-new-box2 {
        overflow-y: auto;
        /* 内容可滚动 */
        max-height: calc(47vh);
        /* 限制最大高度 */
        padding: 10px;
        scrollbar-width: none;
        /* Firefox 隐藏滚动条 */
        -ms-overflow-style: none;
        /* IE 隐藏滚动条 */
    }

    .model-local-box {
        overflow-y: auto;
        max-height: calc(45vh);
        padding: 10px;
        scrollbar-width: none;
    }
}