.cart-drawer{
  position:fixed;
  top:0;
  right:-100%;
  width:478px;
  height:100%;
  background:#FFFFFF;
  overflow-y:auto;
  transition:right 0.3s ease-in-out;
  z-index:1000;
}
.cart-drawer.open{
  right:0;
}
.cart-drawer .empty-cart{
  padding:30px 24px;
  font-size:15px;
  font-weight:700;
}
.cart-drawer .cart-drawer__close{
  position:absolute;
  top:14px;
  left:13px;
  background-color:transparent;
  border:none;
  font-size:28px;
  z-index:1000;
  color:#9B9B9B;
}
[dir=ltr] .cart-drawer .cart-drawer__close{
  left:auto;
  left:initial;
  right:13px;
}
.cart-drawer .header{
  display:flex;
  padding:16px;
  position:sticky;
  top:0;
  background-color:white;
  z-index:100;
  border-bottom:0.5px solid #ADADAD;
}
.cart-drawer .header .cart{
  font-weight:700;
  font-size:22px;
  display:flex;
  gap:12px;
  align-items:center;
}
.cart-drawer .header .cart span{
  font-weight:400;
  font-size:15px;
  color:#9B9B9B;
}
.cart-drawer .footer{
  background-color:rgba(var(--yc-primary-color-rgb), 0.04);
  position:absolute;
  bottom:0;
  padding:26px 24px;
  width:100%;
}
.cart-drawer .footer .price-wrapper{
  display:flex;
  justify-content:space-between;
  margin-bottom:32px;
}
.cart-drawer .footer .price-wrapper .total-price{
  font-weight:400;
  font-size:16px;
}
.cart-drawer .footer .price-wrapper .currency-value{
  font-weight:600;
  font-size:16px;
}
.cart-drawer .footer .price-wrapper .currency-code{
  font-weight:700;
}
.cart-drawer .footer a{
  margin-top:16px;
}
.cart-drawer .footer .cart-action{
  border:1px solid var(--yc-primary-color);
  padding:0 2rem;
  transition:all 0.15s ease-in-out 0s;
  letter-spacing:1px;
  border-radius:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:43px;
  color:#9B9B9B;
}
@media (max-width: 768px){
  .cart-drawer .footer{
    padding:16px;
  }
}
.cart-drawer .cart-drawer__content{
  max-height:calc(100% - 196px);
  overflow-y:auto;
}
.cart-drawer ul{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px 32px;
}
.cart-drawer ul .cart-item{
  border-bottom:1px solid #E1E1E1;
}
.cart-drawer ul .cart-item img{
  border-radius:6px;
  border:1px solid #F5F5F5;
  width:81px;
  height:81px;
  -o-object-fit:contain;
     object-fit:contain;
}
.cart-drawer ul .cart-item .item-body{
  display:flex;
  gap:16px;
  padding-bottom:12px;
  position:relative;
  border-radius:4px;
}
.cart-drawer ul .cart-item .item-body .right-items{
  display:flex;
  gap:14px;
  width:70%;
}
.cart-drawer ul .cart-item .item-body .left-items{
  width:30%;
  display:flex;
  flex-direction:column;
  align-items:end;
}
.cart-drawer ul .cart-item .item-body .left-items .product-price{
  display:flex;
  flex-direction:column-reverse;
  color:var(--yc-primary-color);
}
.cart-drawer ul .cart-item .item-body .left-items .product-price .price, .cart-drawer ul .cart-item .item-body .left-items .product-price .currency-code{
  font-weight:700;
}
.cart-drawer ul .cart-item .item-body .left-items .product-price .compare-price{
  font-weight:400;
  font-size:13px;
  text-decoration-line:line-through;
  color:#8D8D8D;
}
.cart-drawer ul .cart-item .item-body .left-items .currency-wrapper{
  display:flex;
  align-items:center;
  gap:4px;
}
@media (max-width: 768px){
  .cart-drawer ul .cart-item .item-body{
    padding:20px 6px;
  }
  .cart-drawer ul .cart-item .item-body .price, .cart-drawer ul .cart-item .item-body .currency-code{
    font-size:14px;
  }
}
.cart-drawer ul .cart-item .remove-item-btn, .cart-drawer ul .cart-item .spinner{
  margin-top:10px;
  color:#9B9B9B;
}
.cart-drawer ul .cart-item .remove-item-btn{
  font-size:23px;
}
.cart-drawer ul .cart-item .item-details{
  margin-top:4px;
  max-width:195px;
}
.cart-drawer ul .cart-item .item-details .product-name{
  font-weight:600;
  font-size:16px;
  line-height:17px;
  color:var(--yc-primary-color);
  word-break:break-all;
  white-space:normal;
}
.cart-drawer ul .cart-item .item-details .variants{
  display:flex;
  flex-wrap:wrap;
  row-gap:8px;
  -moz-column-gap:16px;
       column-gap:16px;
  margin-top:12px;
}
.cart-drawer ul .cart-item .item-details .variants .variant{
  font-weight:400;
  font-size:13px;
}
.cart-drawer ul .cart-item .quantity-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid #BDBDBD;
  border-radius:4px;
  padding:0 10px;
  background-color:#fff;
}
.cart-drawer ul .cart-item .quantity-control input::-webkit-outer-spin-button,
.cart-drawer ul .cart-item .quantity-control input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.cart-drawer ul .cart-item .quantity-control input{
  width:55px;
  text-align:center;
  border:none;
  padding:0;
  font-weight:700;
  font-size:16px;
  color:black;
}
.cart-drawer ul .cart-item .quantity-control .decrease-btn,
.cart-drawer ul .cart-item .quantity-control .increase-btn{
  background-color:transparent;
  border:none;
  font-size:18px;
  font-weight:700;
  color:#B7B7B7;
  cursor:pointer;
  transition:all 200ms ease-in-out;
}
.cart-drawer ul .cart-item .quantity-control .decrease-btn:active,
.cart-drawer ul .cart-item .quantity-control .increase-btn:active{
  scale:1.5;
}
@media (max-width: 768px){
  .cart-drawer ul .cart-item .quantity-control{
    padding:0 5px;
  }
  .cart-drawer ul .cart-item .quantity-control input{
    width:46px;
  }
}
@media (max-width: 768px){
  .cart-drawer ul{
    margin:0 10px;
    padding:0px;
  }
}
@media (max-width: 768px){
  .cart-drawer{
    width:300px;
  }
}

.cart-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color:rgba(0, 0, 0, 0.55);
  z-index:1000;
  visibility:hidden;
}

.cart-overlay.open{
  visibility:visible;
  opacity:1;
}
