.cart-modern-page{--cart-ink:#26394c;--cart-muted:#77818c;--cart-line:#e5e8eb;--cart-soft:#f7f8f9;--cart-accent:#f39a1f;--cart-danger:#d95d52;background:#fff;color:#29323a;padding-bottom:36px}
.cart-modern-page .breadcrumb-page{margin-bottom:8px}.cart-checkout-flow{padding-bottom:42px}.cart-checkout-flow>.steps-style>.container{max-width:1180px}
.cart-modern-page .steps-style{padding-top:20px}.cart-modern-page .steps-style .time-line{background:#e5e8eb}.cart-modern-page .steps-style .step{background:var(--cart-ink);box-shadow:0 4px 12px rgba(38,57,76,.18)}
.cart-tabs-wrap{display:flex;justify-content:flex-start;margin:4px 0 18px!important}.cart-tabs-wrap .cart-tabs{padding:4px;border:1px solid var(--cart-line);border-radius:14px;background:#f7f8f9;box-shadow:none}
.cart-tabs-wrap .cart-tabs .btn{min-width:155px;height:40px;border:0!important;border-radius:10px!important;background:transparent;color:#6f7882;font-size:12px;font-weight:700;box-shadow:none}
.cart-tabs-wrap .cart-tabs .btn.active{background:#fff!important;color:var(--cart-ink)!important;box-shadow:0 3px 10px rgba(35,48,60,.09)!important}.cart-tabs-wrap .cart-tabs .btn.active:after{content:"";position:absolute;right:18px;left:18px;bottom:1px;height:2px;border-radius:3px;background:var(--cart-accent)}
.cart-tabs-wrap .badge{margin-right:7px;background:#e9edf0!important;color:#626d77!important}.cart-tabs-wrap .btn.active .badge{background:var(--cart-ink)!important;color:#fff!important}
.cart-section-title{display:flex;align-items:center;gap:7px;margin:0 0 14px!important;padding:0 0 13px!important;font-size:18px!important;font-weight:800!important;color:var(--cart-ink)!important}.cart-section-title:after{width:34px!important;height:2px!important;background:var(--cart-accent)!important}.cart-section-title #Count_Cart{font-size:12px;color:#89919a;font-weight:500}
.cart-products-panel{overflow:hidden;border:1px solid var(--cart-line);border-radius:16px;background:#fff;box-shadow:0 7px 24px rgba(30,42,54,.055)}
.cart-products-panel .title-group{background:var(--cart-ink)!important;border:0!important}.cart-products-panel .title-group-ul{background:transparent!important}.cart-products-panel .list-product-title{height:51px!important;border-color:rgba(255,255,255,.08)!important;background:transparent!important;color:#fff!important;font-size:12px!important;line-height:51px!important}
.cart-products-panel .list-table-product{padding:0!important}.cart-product-card{display:flex;align-items:stretch;min-height:128px;padding:0!important;border:0!important;border-bottom:1px solid var(--cart-line)!important;background:#fff!important}.cart-product-card:last-child{border-bottom:0!important}.cart-product-card>li{display:flex;align-items:center;justify-content:center;padding-top:14px!important;padding-bottom:14px!important;border-left:1px solid #f0f2f3}.cart-product-card>li:last-child{border-left:0}
.cart-product-identity{justify-content:flex-start!important}.cart-product-card .list-top-rated,.cart-product-card .item-rated{width:100%;padding:0!important}.cart-product-card .item-rated>a:first-child{display:grid;grid-template-columns:82px minmax(0,1fr);grid-template-rows:auto;align-items:center;column-gap:13px;text-align:right}.cart-product-card .img-rated{grid-row:1/5;width:82px!important;height:82px!important;margin:0!important;border:1px solid #e9ecef;border-radius:11px!important;background:#fff;overflow:hidden}.cart-product-card .img-rated img{width:100%!important;height:100%!important;object-fit:contain;border-radius:10px}.cart-product-card .name-rated{height:auto!important;margin:3px 0!important;color:#4d5761;font-size:11px!important;line-height:1.75!important;text-align:right!important}.cart-product-card a:first-child .name-rated{color:#263746!important;font-size:13px!important;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cart-product-card .cart-transfer-one,.cart-product-card .delete{display:inline-flex;align-items:center;gap:4px;margin:7px 0 0 12px!important;color:#75808a!important;font-size:10px!important;cursor:pointer}.cart-product-card .delete{color:var(--cart-danger)!important}.cart-product-card .delete:hover,.cart-product-card .cart-transfer-one:hover{color:var(--cart-ink)!important}
.cart-product-card .price-product{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}.cart-product-card .price-product .main,.cart-product-card .total-price{color:#344657!important;font-size:13px!important;font-weight:700}.cart-product-card .price-product .off{font-size:10px!important;color:#aab0b6!important}.cart-product-card .ul-counter{display:inline-flex;margin:0!important;border:1px solid #e4e7ea;border-radius:10px;overflow:hidden;background:#fafbfb}.cart-product-card .ul-counter>li>span{display:flex!important;align-items:center;justify-content:center;width:34px;height:34px;padding:0!important;border:0!important;border-left:1px solid #e9ecef!important;background:transparent!important;color:#56616b!important}.cart-product-card .ul-counter>li:last-child>span{border-left:0!important}.cart-product-card .CartUp,.cart-product-card .CartDown{cursor:pointer}.cart-product-card .CartUp:hover,.cart-product-card .CartDown:hover{background:#f0f3f5}
.cart-order-summary{padding:0!important;border-top:1px solid var(--cart-line)!important;background:#fbfcfc}.cart-order-summary .list-product-total{display:flex;align-items:center;justify-content:flex-end;gap:0;padding:0!important}.cart-order-summary .total-details{display:flex;flex-direction:column;justify-content:center;min-height:76px;margin:0!important;padding:11px 14px!important;border-left:1px solid #e8ebed;color:#737d87;font-size:11px;line-height:1.8;text-align:right!important}.cart-order-summary .total-details .main{display:block;color:#344657;font-size:13px;font-weight:700}.cart-order-summary .price_product_total{color:var(--cart-danger)!important;font-size:17px!important}.cart-order-summary p.text-left{display:flex;align-items:center;justify-content:center;min-height:76px;margin:0;padding:10px!important}.cart-order-summary .btn-total-continue{min-width:150px;border:0!important;border-radius:11px!important;background:var(--cart-ink)!important;padding:11px 18px!important;font-size:12px!important;font-weight:700}.cart-order-summary .btn-total-continue:hover{background:#1d2e3e!important}
.cart-discount-card{margin-top:20px!important;padding:20px!important;border:1px solid var(--cart-line)!important;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(30,42,54,.04)}.cart-discount-card>div{padding:0!important}.cart-discount-card .title-content{display:block;margin:0 0 14px!important;padding:0 0 11px!important;color:var(--cart-ink);font-size:15px;font-weight:800}.cart-discount-card .join-off{max-width:620px}.cart-discount-card .input-group{display:flex;direction:rtl}.cart-discount-card #DiscountCode{order:1;height:45px;border:1px solid #dfe4e8;border-radius:0 10px 10px 0!important;box-shadow:none;text-align:right}.cart-discount-card #AddDiscountCode{order:2;display:flex;align-items:center;justify-content:center;width:auto;min-width:125px;height:45px;border:0;border-radius:10px 0 0 10px!important;background:var(--cart-ink);color:#fff;font-size:12px;cursor:pointer}.cart-discount-card .code-off-description{margin:9px 0 0;color:#858e97;font-size:10px;line-height:1.8}
.cart-modern-page .nav-step{margin:22px 0 4px}.cart-modern-page .nav-step .btn-nav{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto!important;min-width:280px;height:48px!important;padding:0 22px!important;border:0!important;border-radius:12px!important;background:var(--cart-ink)!important;box-shadow:0 7px 18px rgba(38,57,76,.16);font-size:13px;font-weight:800}.cart-modern-page .nav-step .btn-nav .ic_db_arrow_down{font-size:12px;transform:rotate(0)}
.cart-info-step{max-width:1180px;padding-top:12px}.cart-info-step>.title-content{margin:0 0 14px!important;color:var(--cart-ink);font-size:18px;font-weight:800}.cart-recipient-card,.cart-method-card{margin:0 0 24px!important;padding:22px 18px 8px;border:1px solid var(--cart-line);border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(30,42,54,.045)}.cart-info-step .input-item{margin-bottom:14px}.cart-info-step .input-group{display:flex;width:100%;direction:rtl}.cart-info-step .input-group-addon{display:flex;align-items:center;justify-content:center;flex:0 0 45px;width:45px;height:46px;border:1px solid #dfe4e8;border-left:0;border-radius:0 9px 9px 0!important;background:#f7f9fa;color:#64717d}.cart-info-step .input-group>.form-control,.cart-info-step .bootstrap-select>.dropdown-toggle{height:46px;border:1px solid #dfe4e8!important;border-radius:9px 0 0 9px!important;background:#fff;box-shadow:none!important;text-align:right}.cart-info-step textarea.form-control{min-height:82px;padding-top:12px;resize:vertical}.cart-info-step .input-group:focus-within .input-group-addon,.cart-info-step .input-group:focus-within>.form-control{border-color:#9aa7b2!important}.cart-info-step .input-group:focus-within .input-group-addon{color:var(--cart-ink)}
.cart-method-card .send-items{display:flex;align-items:stretch;flex-wrap:wrap;padding:0}.cart-method-card .item-post,.cart-method-card .item-price{padding:6px!important}.cart-method-card .style-send{position:relative;min-height:112px!important;padding:16px!important;border:1px solid #e1e5e8!important;border-radius:13px!important;background:#fff!important;box-shadow:0 2px 8px rgba(30,42,54,.025)!important;transition:border-color .15s,box-shadow .15s,transform .15s}.cart-method-card .send-option-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-right:68px!important;overflow:hidden}.cart-method-card .send-option-card:hover{border-color:#aeb7bf!important;box-shadow:0 6px 18px rgba(30,42,54,.06)!important;transform:translateY(-1px)}.cart-method-card .send-option-card:has(.SelectSend:checked){border-color:#7d8b97!important;box-shadow:0 0 0 2px rgba(38,57,76,.08)!important}.cart-method-card .send-option-card:has(.SelectSend:checked):after{content:"انتخاب شده";margin-top:7px;padding:3px 8px;border-radius:20px;background:#f1f4f6;color:#415260;font-size:9px;font-weight:700}.cart-method-card .radio-style{position:absolute!important;top:14px!important;right:14px!important;margin:0!important}.cart-method-card .img-send{position:absolute;right:20px;bottom:18px;width:38px!important;max-height:34px!important;object-fit:contain;opacity:.9}.cart-method-card .txt-send{color:#344657!important;font-size:12px!important;font-weight:800}.cart-method-card .shipping-summary-card{display:flex;align-items:center;align-content:center;flex-wrap:wrap;background:#f8f9fa!important}.cart-method-card .shipping-summary-card .lbl-send{margin:0 0 0 6px!important;color:#7c8790!important;font-size:10px!important}.cart-method-card .shipping-summary-card .txt-price{color:#26394c!important;font-size:14px!important;font-weight:900}.cart-method-card .shipping-summary-card .desc-price{width:100%;margin:9px 0 0!important;padding-top:9px;border-top:1px solid #e8ecef;color:#66727d;font-size:10px;line-height:1.9}.cart-payment-card>ul{margin:0;padding:8px 12px!important}.cart-payment-card>ul>li{min-height:48px;margin-bottom:8px;border:1px solid #e2e6e9;border-radius:11px;background:#fff}.cart-payment-card>ul>li>label{padding:14px 44px 12px 12px!important;color:#4b5660;font-size:12px}.cart-payment-card .desc-pay{padding:8px!important}.cart-payment-card .style-desc{min-height:120px;border:1px solid #edf0f2;border-radius:12px;background:#f8f9fa;color:#66717b;line-height:1.9}
.cart-empty-state{float:none!important;max-width:620px;margin:35px auto!important;padding:38px 24px!important;border:1px solid var(--cart-line)!important;border-radius:18px!important;background:#fff!important;text-align:center;box-shadow:0 8px 27px rgba(30,42,54,.06)}.cart-empty-state .cart-empty-icon{display:flex;align-items:center;justify-content:center;width:62px;height:62px;margin:0 auto 14px;border-radius:18px;background:#f4f6f7;color:var(--cart-ink);font-size:27px}.cart-empty-state h3{margin:0 0 8px;color:var(--cart-ink);font-size:18px;font-weight:800}.cart-empty-state .desc{color:#7c8690!important}.cart-empty-action{margin-top:12px;border:0;border-radius:10px;background:var(--cart-ink);color:#fff!important;padding:10px 22px;font-weight:700}
@media(max-width:767px){.cart-modern-page{padding-right:0;padding-left:0;padding-bottom:90px}.cart-modern-page .breadcrumb-page{display:none}.cart-checkout-flow{padding:10px 10px 50px}.cart-checkout-flow>.steps-style{padding:8px 0 0}.cart-checkout-flow>.steps-style>.container,.cart-info-step{padding:0}.cart-modern-page .steps-style .time-line{display:none}.cart-modern-page .steps-style .step{top:8px;right:auto;left:0;width:32px;height:32px;font-size:12px;line-height:32px}.cart-tabs-wrap{padding-left:38px;margin:0 0 18px!important}.cart-tabs-wrap .cart-tabs{width:100%}.cart-tabs-wrap .cart-tabs .btn{flex:1;min-width:0;padding:8px 5px;font-size:11px}.cart-section-title{font-size:16px!important}.cart-products-panel{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}.cart-products-panel>.title-group{display:none}.cart-products-panel .list-table-product{overflow:visible!important}.cart-product-card{position:relative;display:grid!important;grid-template-columns:repeat(3,1fr);min-height:0;margin-bottom:12px!important;padding:14px!important;border:1px solid var(--cart-line)!important;border-radius:14px;background:#fff!important;box-shadow:0 5px 18px rgba(30,42,54,.045)}.cart-product-card>li{width:auto!important;min-height:58px;padding:10px 6px!important;border:0!important}.cart-product-identity{grid-column:1/-1;display:block!important;padding:0 0 11px!important;border-bottom:1px solid #edf0f2!important}.cart-product-card .item-rated>a:first-child{grid-template-columns:76px minmax(0,1fr);column-gap:11px}.cart-product-card .img-rated{width:76px!important;height:76px!important}.cart-product-card .name-rated{font-size:10px!important}.cart-product-card a:first-child .name-rated{font-size:12px!important}.cart-product-card .cart-transfer-one,.cart-product-card .delete{margin-top:8px!important}.cart-product-unit-price,.cart-product-quantity,.cart-product-total{position:relative;display:flex!important;flex-direction:column;padding-top:26px!important}.cart-product-unit-price:before,.cart-product-quantity:before,.cart-product-total:before{content:attr(data-label);position:absolute;top:6px;right:0;left:0;color:#9299a1;font-size:9px;text-align:center}.cart-product-card .price-product .main,.cart-product-card .total-price{font-size:11px!important}.cart-product-card .ul-counter>li>span{width:29px;height:31px}.cart-order-summary{margin-top:4px!important;border:1px solid var(--cart-line)!important;border-radius:14px!important;background:#fff}.cart-order-summary .list-product-total{display:block!important;padding:7px 14px!important}.cart-order-summary .total-details{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%!important;min-height:45px;padding:8px 0!important;border-left:0;border-bottom:1px solid #edf0f2;font-size:11px}.cart-order-summary .total-details .main{display:inline;font-size:12px}.cart-order-summary .price_product_total{font-size:16px!important}.cart-order-summary p.text-left{width:100%!important;min-height:58px;padding:10px 0 4px!important}.cart-order-summary .btn-total-continue{width:100%}.cart-discount-card{margin-top:12px!important;padding:16px!important}.cart-discount-card .title-content{font-size:14px}.cart-discount-card #AddDiscountCode{min-width:105px;font-size:11px}.cart-modern-page .nav-step{position:sticky;z-index:50;bottom:72px;margin:14px 0 0;padding:0 4px}.cart-modern-page .nav-step .btn-nav{width:100%!important;min-width:0;border-radius:12px!important}.cart-recipient-card,.cart-method-card{padding:16px 11px 5px;border-radius:14px}.cart-info-step>.title-content{font-size:16px}.cart-info-step .input-item{padding-right:5px;padding-left:5px}.cart-info-step .input-group-addon{flex-basis:43px;width:43px}.cart-method-card .item-post{width:50%!important}.cart-method-card .item-price{width:100%!important}.cart-method-card .style-send{min-height:96px!important}.cart-method-card .send-option-card{padding:47px 10px 12px!important;align-items:center;text-align:center}.cart-method-card .radio-style{top:10px!important;right:10px!important}.cart-method-card .img-send{top:12px;right:50%;bottom:auto;width:30px!important;max-height:27px!important;transform:translateX(50%)}.cart-method-card .send-option-card:has(.SelectSend:checked):after{margin-top:5px}.cart-method-card .shipping-summary-card{min-height:154px!important;overflow:hidden}.cart-payment-card>ul,.cart-payment-card .desc-pay{width:100%!important}.cart-empty-state{margin:30px 4px!important;padding:30px 18px!important}.featured-products>.container{padding:0}}
@media(min-width:768px){.cart-products-panel .list-table-product{max-height:none!important}.cart-info-step .row-inputs-factor{display:flex;flex-wrap:wrap}.cart-modern-page .nav-step .btn-nav:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(38,57,76,.2)}}

/* Final compatibility overrides for the legacy cart grid. */
.cart-modern-page .steps-style{margin-top:18px!important}
.cart-products-panel{margin:0 0 22px!important}
.cart-products-panel .title-group{border-bottom:1px solid var(--cart-line)!important;background:#f7f8f9!important}
.cart-products-panel .list-product-title{height:48px!important;border-color:#e8ebee!important;background:transparent!important;color:#66717c!important;font-size:11px!important;font-weight:700!important;line-height:48px!important}
.cart-product-card .list-top-rated,.cart-product-card .item-rated{float:none!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
.cart-modern-page .nav-step .btn-nav:before,.cart-modern-page .nav-step .btn-nav:after{display:none!important;content:none!important}

@media(max-width:767px){
  .cart-checkout-flow .steps-style{width:100%!important;margin:0!important;padding:8px 0 0!important}
  .cart-checkout-flow .steps-style>.container,.cart-info-step{width:100%!important;margin:0!important;padding:0!important}
  .cart-products-panel{float:none!important;width:100%!important;margin:0 0 12px!important}
  .cart-products-panel .list-table-product{float:none!important;width:100%!important}
  .cart-product-card{float:none!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
}

/* Clear visual states for shipping choices. */
.cart-method-card .send-option-card:has(.SelectSend:checked){border-color:#f39a1f!important;background:#fffaf3!important;box-shadow:0 0 0 3px rgba(243,154,31,.14)!important}
.cart-method-card .send-option-card:has(.SelectSend:checked):after{content:"✓ انتخاب شده"!important;padding:4px 9px!important;background:#f39a1f!important;color:#fff!important;font-weight:800!important}
.cart-method-card .send-option-card:not(:has(.SelectSend:checked)){background:#fafbfc!important}
.cart-method-card .send-option-card:not(:has(.SelectSend:checked)) .img-send{filter:grayscale(1);opacity:.5}
.cart-method-card .send-option-card:not(:has(.SelectSend:checked)) .txt-send{color:#7b858e!important}
.cart-method-card .send-option-card{align-items:center!important;justify-content:flex-end!important;min-height:134px!important;padding:74px 16px 18px!important;text-align:center;cursor:pointer}
.cart-method-card .send-option-hitarea{position:absolute;z-index:4;inset:0;margin:0!important;border:0!important;border-radius:inherit;cursor:pointer}
.cart-method-card .send-option-card .radio-style{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden;opacity:0;pointer-events:none}
.cart-method-card .send-option-card .img-send{top:17px!important;right:50%!important;bottom:auto!important;width:64px!important;height:50px!important;max-height:none!important;object-fit:contain;transform:translateX(50%)}
.cart-method-card .send-option-card .txt-send{position:relative;z-index:2;font-size:12px!important;line-height:1.6}
.cart-method-card .send-option-card:has(.SelectSend:checked):after{position:relative;z-index:2;margin-top:7px!important}
@media(max-width:767px){.cart-method-card .send-option-card{min-height:128px!important;padding:68px 8px 13px!important}.cart-method-card .send-option-card .img-send{top:15px!important;width:56px!important;height:44px!important}.cart-method-card .send-option-card .txt-send{font-size:11px!important}}

/* Collapsible discount */
.cart-discount-collapsible{display:block!important;padding:0!important;overflow:hidden}
.cart-discount-summary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:16px 48px 16px 18px;color:var(--cart-ink);font-size:14px;font-weight:800;cursor:pointer;list-style:none}
.cart-discount-summary::-webkit-details-marker{display:none}
.cart-discount-summary:before{content:"+";position:absolute;right:17px;top:50%;display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #dfe4e8;border-radius:7px;color:#687580;font-size:16px;font-weight:500;transform:translateY(-50%)}
.cart-discount-collapsible[open]>.cart-discount-summary:before{content:"−"}
.cart-discount-summary-hint{color:#929aa2;font-size:10px;font-weight:500}
.cart-discount-body{display:block;padding:0 18px 18px;border-top:1px solid #edf0f2}
.cart-discount-body:after{display:block;clear:both;content:""}
.cart-discount-body .title-content{margin-top:16px!important}

/* Remove the legacy double frame and keep every field inside its group. */
.cart-info-step .input-group{border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important}
.cart-info-step .input-group>.form-control{float:none!important;flex:1 1 auto!important;width:1%!important;min-width:0!important;background:#fff!important}
.cart-info-step .input-group>.input-group-addon{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;border:1px solid #dfe4e8!important;border-left:0!important;background:#f7f9fa!important}
.cart-info-step .input-group>.bootstrap-select{flex:1 1 auto!important;width:1%!important;min-width:0!important}
.cart-info-step .input-group>.bootstrap-select>.dropdown-toggle{width:100%!important}
.cart-info-step #factor-address{height:92px!important;min-height:92px!important}
.cart-info-step #group-factor-address>.input-group-addon{height:92px!important;align-items:flex-start;padding-top:15px!important}

/* Payment choices */
.cart-payment-card{display:flex!important;flex-wrap:wrap;align-items:stretch}
.cart-payment-card>ul{order:1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%!important;padding:12px!important}
.cart-payment-card>ul>li{position:relative;min-height:62px!important;margin:0!important;border:0!important;background:transparent!important}
.cart-payment-card>ul>li>input.SelectPay{position:absolute;opacity:0;pointer-events:none}
.cart-payment-card>ul>li>label{display:flex!important;align-items:center;width:100%;height:100%;min-height:62px;margin:0!important;padding:14px 48px 14px 14px!important;border:1px solid #e1e5e8!important;border-radius:12px!important;background:#fff!important;color:#485560!important;font-size:12px!important;font-weight:700!important;cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s}
.cart-payment-card>ul>li>label:hover{border-color:#aeb8c1!important;box-shadow:0 4px 13px rgba(30,42,54,.055)}
.cart-payment-card>ul>li>.check{position:absolute!important;top:50%!important;right:17px!important;left:auto!important;width:19px!important;height:19px!important;margin:0!important;border:1px solid #aeb7bf!important;border-radius:50%!important;background:#fff!important;transform:translateY(-50%);pointer-events:none}
.cart-payment-card>ul>li>.check:before{position:absolute;top:4px;right:4px;width:9px;height:9px;border-radius:50%;background:var(--cart-ink);content:"";opacity:0;transform:scale(.5);transition:.15s}
.cart-payment-card>ul>li>input.SelectPay:checked~label{border-color:#81909d!important;background:#f7f9fa!important;box-shadow:0 0 0 1px rgba(38,57,76,.06)}
.cart-payment-card>ul>li>input.SelectPay:checked~.check{border-color:var(--cart-ink)!important}
.cart-payment-card>ul>li>input.SelectPay:checked~.check:before{opacity:1;transform:scale(1)}
.cart-payment-card>.desc-pay{order:2;width:100%!important;padding:0 12px 12px!important}
.cart-payment-card .style-desc{min-height:86px;padding:16px!important;border:1px solid #e8ecef!important;background:#fafbfb!important}

@media(max-width:767px){
  .cart-discount-summary{min-height:56px;padding:14px 44px 14px 14px;font-size:13px}
  .cart-discount-summary:before{right:13px}
  .cart-discount-summary-hint{max-width:125px;text-align:left}
  .cart-info-step #factor-address{min-height:132px!important}
  .cart-info-step #group-factor-address>.input-group-addon{height:132px!important;align-items:flex-start;padding-top:15px!important}
  .cart-payment-card>ul{grid-template-columns:1fr}
  .cart-payment-card>ul>li,.cart-payment-card>ul>li>label{min-height:58px!important}
}

/* Checkout uses clear button labels; the legacy corner step and arrows are redundant. */
.cart-modern-page .steps-style .step,.cart-modern-page .steps-style .time-line{display:none!important}
.cart-modern-page .steps-style{margin-top:0!important}
.cart-modern-page .nav-step .ic_db_arrow_down{display:none!important}

/* Make the counter frame exactly match its three clickable cells. */
.cart-product-card .ul-counter{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:none!important}
.cart-product-card .ul-counter>li{float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important}
.cart-product-card .ul-counter>li>span{cursor:pointer}

/* Product titles should use the available space instead of being line-clamped. */
.cart-product-card a:first-child .name-rated{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important}

@media(min-width:768px){
  .cart-product-card .ul-counter>li>span{width:30px!important;height:30px!important}
}

/* Product identity: image, full title, selected variant and actions. */
.cart-product-card .cart-product-main{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;align-items:center;gap:13px;min-height:82px;text-decoration:none}
.cart-product-card .cart-product-copy{min-width:0;text-align:right}
.cart-product-card .cart-product-name{margin:0 0 7px!important;color:var(--cart-ink)!important;font-size:13px!important;font-weight:800!important;line-height:1.8!important}
.cart-product-card .cart-product-variant{display:inline-flex!important;width:auto!important;margin:0!important;padding:4px 9px!important;border:1px solid #e3e7ea;border-radius:8px;background:#f7f8f9;color:#66727d!important;font-size:10px!important;font-weight:700;line-height:1.4!important}
.cart-product-card .cart-product-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-top:10px;padding-right:95px}
.cart-product-card .cart-product-actions .cart-transfer-one,.cart-product-card .cart-product-actions .delete{position:static!important;display:inline-flex!important;align-items:center;gap:5px;height:auto!important;margin:0!important;padding:3px 0!important;line-height:1.5!important}
.cart-product-card .cart-product-actions .cart-transfer-one:empty{display:none!important}
.cart-product-card label.hidden{display:none!important}

/* The old nav retained a large invisible width around the counter. */
.cart-product-card .counter{display:flex!important;align-items:center;justify-content:center;width:100%!important;padding:0!important}
.cart-product-card .counter nav{display:flex!important;align-items:center;justify-content:center;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important}

@media(max-width:767px){
  .cart-product-card .cart-product-main{grid-template-columns:76px minmax(0,1fr)!important;gap:11px;min-height:76px}
  .cart-product-card .cart-product-name{font-size:12px!important;line-height:1.75!important}
  .cart-product-card .cart-product-variant{font-size:9px!important}
  .cart-product-card .cart-product-actions{gap:6px 14px;margin-top:9px;padding:8px 87px 0 0;border-top:1px dashed #edf0f2}
  .cart-product-card .cart-product-actions .cart-transfer-one,.cart-product-card .cart-product-actions .delete{font-size:9px!important}
  .cart-product-card .cart-product-unit-price label.hidden,.cart-product-card .cart-product-total label.hidden{display:none!important}
}

/* High-specificity fixes for legacy mobile product rules. */
#ShopCartInfo .cart-product-card .cart-product-main .img-rated{grid-row:auto!important}
#ShopCartInfo .cart-product-card .cart-product-copy .cart-product-name{width:100%!important}
#ShopCartInfo .cart-product-card .cart-product-copy .cart-product-variant{display:inline-flex!important;width:auto!important;max-width:100%!important}
#ShopCartInfo .cart-product-card .cart-product-actions>a{flex:0 0 auto!important;width:auto!important;max-width:100%!important}
#ShopCartInfo .cart-product-card .cart-product-unit-price label.hidden,#ShopCartInfo .cart-product-card .cart-product-total label.hidden{display:none!important}

/* Keep only the intentional outer frame around the order totals. */
#ShopCartInfo .cart-order-summary>.list-product-total{border:0!important;border-radius:0!important;box-shadow:none!important}

/* Address book modal */
#addrModal{--cart-ink:#26394c;--cart-line:#e5e8eb;--cart-soft:#f7f8f9}
#addrModal .cart-address-dialog{width:calc(100% - 24px)!important;max-width:590px!important;margin:24px auto!important}
#addrModal .cart-address-modal{overflow:hidden;padding:0!important;border:0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 18px 55px rgba(22,34,45,.2)!important}
#addrModal .cart-address-header{display:flex;align-items:center;justify-content:space-between;min-height:66px;padding:16px 20px;border-bottom:1px solid #e8ebee;background:#fff}
#addrModal .pf-modal-title{margin:0;color:var(--cart-ink);font-size:17px;font-weight:800}
#addrModal .cart-address-header .close{position:static!important;display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin:0!important;padding:0!important;border:1px solid #e1e5e8!important;border-radius:10px;background:#f7f8f9!important;color:#5f6b76!important;font-size:22px;line-height:1;opacity:1!important}
#addrModal .cart-address-header .close:hover{border-color:#b9c1c8!important;background:#fff!important;color:var(--cart-ink)!important}
#addrModal .cart-address-body{max-height:65vh;padding:14px 16px;overflow-x:hidden;overflow-y:auto;background:#fafbfb}
#addrModal .addr-loading,#addrModalList>.text-center{padding:28px 16px!important;color:#7d8790;font-size:12px}
#addrModal .addr-list{gap:10px}
#addrModal .addr-item{margin:0!important;padding:16px!important;border:1px solid #e1e5e8!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 14px rgba(30,42,54,.045)!important;transform:none!important}
#addrModal .addr-item:hover{border-color:#aeb8c1!important;box-shadow:0 6px 18px rgba(30,42,54,.07)!important}
#addrModal .addr-item.active{border-color:#8e9ba6!important;background:#f8fafb!important;box-shadow:0 0 0 1px rgba(38,57,76,.04)!important}
#addrModal .addr-title{min-height:32px;padding-left:84px;color:var(--cart-ink);font-size:13px;font-weight:800}
#addrModal .addr-default-badge{padding:4px 8px!important;border-radius:7px!important;background:#e9edf0!important;color:#53606b!important;font-size:9px!important;font-weight:700!important}
#addrModal .addr-text{margin-top:7px;color:#4f5b65;font-size:11px;line-height:1.9}
#addrModal .addr-meta{gap:6px 12px;margin-top:9px;padding-top:9px;border-top:1px dashed #e7eaed;color:#7a848d;font-size:10px}
#addrModal .addr-actions{top:13px;left:13px;gap:6px}
#addrModal .addr-actions .btn{width:32px;height:32px;border:1px solid #dfe4e8!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;color:#65717c!important}
#addrModal .addr-actions .btn:hover{border-color:#aeb7bf!important;color:var(--cart-ink)!important}
#addrModal .addr-actions .addr-del{border-color:#efd9d7!important;background:#fffafa!important;color:#c85b53!important}
#addrModal .cart-address-footer{display:flex;align-items:center;gap:9px;min-height:68px;padding:12px 16px;border-top:1px solid #e8ebee;background:#fff}
#addrModal .cart-address-footer .btn{min-height:42px;margin:0!important;padding:9px 18px;border-radius:10px!important;font-size:11px;font-weight:800}
#addrModal #btnAddrNewInModal{width:100%;border:0!important;background:var(--cart-ink)!important;box-shadow:0 6px 16px rgba(38,57,76,.14)!important;color:#fff!important}
#addrModal #btnAddrSave{margin-right:auto!important;border:0!important;background:var(--cart-ink)!important;color:#fff!important}
#addrModal #btnAddrBack{border:1px solid #dfe4e8!important;background:#fff!important;color:#5c6873!important}
#addrModal .addr-form{padding:2px}
#addrModal .addr-form .row>div{margin-bottom:12px}
#addrModal .addr-form label{display:block;margin-bottom:6px;color:#596672;font-size:10px;font-weight:700}
#addrModal .addr-form .form-control,#addrModal .addr-form .bootstrap-select>.dropdown-toggle{height:44px!important;border:1px solid #dfe4e8!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;color:#354452;font-size:11px;text-align:right}
#addrModal .addr-form textarea.form-control{min-height:105px!important;padding-top:11px;resize:vertical}
#addrModal .addr-form .form-control:focus{border-color:#91a0ac!important;box-shadow:0 0 0 2px rgba(38,57,76,.045)!important}

@media(max-width:767px){
  #addrModal .cart-address-dialog{width:calc(100% - 20px)!important;margin:10px auto 80px!important}
  #addrModal .cart-address-modal{border-radius:16px!important}
  #addrModal .cart-address-header{min-height:58px;padding:12px 14px}
  #addrModal .pf-modal-title{font-size:15px}
  #addrModal .cart-address-body{max-height:calc(100vh - 220px);padding:10px}
  #addrModal .addr-item{padding:13px!important}
  #addrModal .addr-title{padding-left:76px;font-size:12px}
  #addrModal .addr-actions{top:10px;left:10px}
  #addrModal .addr-actions .btn{width:30px;height:30px}
  #addrModal .cart-address-footer{min-height:62px;padding:10px}
  #addrModal .addr-form .row>div{padding-right:5px;padding-left:5px}
}

/* Best sellers shown for an empty current/next cart. */
.cart-modern-page .featured-products{float:none!important;clear:both;margin:24px 0 0!important;padding:0!important}
.cart-modern-page .featured-products>.container{width:100%!important;max-width:1180px;padding:0!important}
.cart-modern-page .featured-products .title-content{margin:0 0 16px!important;color:var(--cart-ink);font-size:17px;font-weight:800}
.cart-modern-page .featured-products .owl-stage{display:flex}
.cart-modern-page .featured-products .owl-item{display:flex;height:auto}
.cart-modern-page .featured-products .item-product{float:none!important;width:100%!important;height:100%;padding:4px!important}
.cart-modern-page .featured-products .shop-card{display:flex!important;flex-direction:column;width:100%!important;height:100%;overflow:hidden;border:1px solid #e4e8eb;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(30,42,54,.04);text-decoration:none}
.cart-modern-page .featured-products .shop-card-img{display:flex;align-items:center;justify-content:center;width:100%;height:auto!important;aspect-ratio:1/1;padding:10px;background:#fafbfb}
.cart-modern-page .featured-products .shop-card-img img{display:block;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain}
.cart-modern-page .featured-products .shop-card-body{display:flex;flex:1;flex-direction:column;padding:11px}
.cart-modern-page .featured-products .shop-card-title{min-height:42px;color:#394957;font-size:11px;font-weight:700;line-height:1.9;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.cart-modern-page .featured-products .shop-card-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto;padding-top:10px}
.cart-modern-page .featured-products .shop-card-price{color:var(--cart-ink);font-size:11px;font-weight:800}
.cart-modern-page .featured-products .shop-card-view{padding:6px 8px;border-radius:8px;background:var(--cart-ink)!important;color:#fff!important;font-size:9px;font-weight:700;white-space:nowrap}
.cart-modern-page .featured-products .owl-nav button{display:flex!important;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #dfe4e8!important;border-radius:10px!important;background:#fff!important;color:var(--cart-ink)!important;box-shadow:0 4px 12px rgba(30,42,54,.07)}

@media(max-width:767px){
  .cart-modern-page .featured-products{margin-top:20px!important}
  .cart-modern-page .featured-products .title-content{font-size:15px}
  .cart-modern-page .featured-products .shop-card-img{padding:7px}
  .cart-modern-page .featured-products .shop-card-body{padding:9px 8px}
  .cart-modern-page .featured-products .shop-card-title{min-height:38px;font-size:10px}
  .cart-modern-page .featured-products .shop-card-footer{display:block}
  .cart-modern-page .featured-products .shop-card-view{display:block;margin-top:7px;text-align:center}
}
