#card__drawer__modal,
#cart__drawer_overlay {
  position: fixed;
  top: 0;
  right: 0;
}

#card__drawer__modal {
  width: 340px;
  height: 100dvh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 800;
}

#cart__drawer_overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.cart__drawer .cart__drawer_header {
  height: 68px;
  background-color:#fff;
}
.cart__drawer .cart__drawer_body {
  background-color: #F9F9F9;
  max-height: calc(100% - 65px - 306px);
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* custom scrollbar */

.cart__drawer .cart__drawer_body::-webkit-scrollbar {
  width: 4px;
}

/* Handle */
.cart__drawer .cart__drawer_body::-webkit-scrollbar-thumb {
  background: #d5d5d5;
}

.cart__drawer .cart__drawer_footer {
  height: 306px;
}
/* ====== cart drawer header css ====== */
.cart__drawer .cart__drawer_header {
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
}

.cart__drawer .cart__drawer_heading,
.cart__drawer .subtotal__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart__drawer .cart__drawer_heading {
  padding: 24px 16px 8px 16px;
}
.cart__drawer .cart__drawer_title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #000000;
}
.cart__drawer .cart__drawer_close__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color:rgba(134,134,134,.14);
  display: flex;
  align-items: center;
  justify-content: center;
}


.cart__drawer .shipping__offer {
  padding: 10px 20px;
}
.cart__drawer .offer__text {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #333333;
}
.cart__drawer .offer__text span {
  font-weight: 600;
  color: #428445;
}
.cart__drawer .offer__progressbar_wrapper {
  margin-top: 4px;
}
.cart__drawer .offer__progressbar {
  width: 100%;
  height: 8px;
  background-color: #d9d9d9;
  border-radius: 10px;
  margin: 18px 0 15px 0px;
}

.cart__drawer .progress__fill {
  width: 0%;
  height: 8px;
  background-color: #6bad0d;
  border-radius: 10px;
  transition: 0.3s;
  position: relative;
}
.cart__drawer .progress__fill::before {
  content: "";
  background: url("icon/Icon.png");
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #6bad0d;
  background-repeat: no-repeat;
  background-position: center;
}


.cart__drawer.empty__cart_drawer .empty__cart{
  margin-top:50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty__cart_drawer .empty__cart .empty__cart_icon{
  display: flex;
}
.empty__cart_drawer .empty__cart .empty__cart_icon svg{
  width: 70px;
  height: 70px;
}
.empty__cart_drawer .empty__cart .empty__cart_icon svg path{
  stroke: #999999;
  fill: #999999;
}
.empty__cart_drawer .empty__cart .empty__title_wrapper,
.empty__cart_drawer .empty__cart .empty__cart_icon{
  margin-bottom: 5px;
}
.empty__cart_drawer .empty__cart .empty__title{
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
  color: #333333;
}

.empty__cart_drawer .empty__cart .btn__wrapper{
  margin-top: 10px;
}
.empty__cart_drawer .empty__cart .btn{
  font-size:12px;
  line-height: 22px;
  font-weight: 600;
  color: #333333;
  background-color: transparent;
  border: none;
  padding: 0px 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.empty__cart_drawer .empty__cart .shop__btn{
  color: var(--secondaryColor);
  background-color: var(--primaryColor);
}

.empty__cart_drawer .cart__drawer_header{
  box-shadow: unset;
}
.empty__cart_drawer .shipping__offer{
  padding:0px;
}

.cart__drawer.empty__cart_drawer .empty__cart{
  display: none;
}


/* ======= cart body css =======*/
.cart__drawer .products__group {
  background-color: #fff;
}
.cart__drawer .product__card_inner {
  display: flex;
  gap: 15px;
}
.cart__drawer .product__card {
  padding: 14px 0;
  margin: 0px 20px;
  box-shadow: 0 -1px 0 0 #ececec;
  background-color: #fff;
  position: relative;
}
.cart__drawer .product__card img {
  width: 115px;
  height: 128px;
  display: block;
  object-fit: cover;
}

.cart__drawer .product__title,
.cart__drawer .product__price .price {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #333333;
}
.cart__drawer .product__title {
  text-decoration: none;
}

.cart__drawer .product__price {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart__drawer .product__price .old__price {
  color: #999999;
  position: relative;
}
.cart__drawer .product__price .old__price::after,
.cart__drawer .item__price .old__price::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 1px;
  background-color: #999999;
}

.cart__drawer .product__price .old__price {
  color: #999999;
}
.cart__drawer .quantity__box {
  width: 80px;
  height: 32px;
  display: flex;
  border: 1px solid #ececec;
  margin-top: 10px;
}
.cart__drawer .option__name{
  font-size: 14px;
  line-height: 19px;
  font-weight: 400;
  color: #868686;
}
.cart__drawer .quantity__controll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 100%;
  outline: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.cart__drawer .quantity__controll svg {
  display: flex;
}
.cart__drawer .quantity__count {
  border: none;
  text-align: center;
  background-color: transparent;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
  width: calc(100% - 46px);
  outline: none;
}
.cart__drawer .product__remove_btn,
.product__edit_btn {
  position: absolute;
}
.cart__drawer .product__remove_btn{
  top: 14px;
  right: 0;
}
.cart__drawer .product__edit_btn {
  bottom: 14px;
  right: 0;
  display: flex;
}
.cart__drawer .edit__icon{
  display: flex;
}
.cart__drawer .remove__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart__drawer .tooltip {
  position: absolute;
  width: max-content;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: #fff;
  background-color: #333;
  padding: 2px 10px;
  border-radius: 3px;
  display: none;
}
.cart__drawer .tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #333;
  transform: rotate(45deg) translateY(-6px);
}

/* mini cart */
.mini__cart__groups{
  padding: 12px 20px;
}
.cart__drawer .mini__cart_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 10px 0;
  border: 1px solid #EBEBEB;
  
}
.cart__drawer .mini__cart {
  position: relative;
}
.cart__drawer .mini__cart_icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EBEBEB;
}

/* upsell items*/
.cart__drawer .mini__cart_upsell__wrapper {
  padding: 16px 20px;
}
.cart__drawer .mini__cart_upsell {
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.04);
}

.cart__drawer .upsell__title_wrapper {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart__drawer .upsell__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #333333;
  text-align: center;
  position: relative;
}
.cart__drawer .upsell__title::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background-color: #ECECEC;
}

.cart__drawer .upsell__items_row {
  background-color: #fff;
}
.cart__drawer .upsell__items_group {
  box-shadow: 0 1px 0 0 #ececec;
}

.cart__drawer .upsell__items {
  display: flex;
  overflow: hidden;
}

.cart__drawer .upsell__item {
  display: flex;
  gap: 15px;
  padding: 10px;
  min-width: 100%;
}
.cart__drawer .upsell__item_img img {
  width: 60px;
  height: 72px;
  display: block;
  object-fit: cover;
}

.cart__drawer .upsell__item_content {
  width: calc(100% - 75px);
  display: flex;
  justify-content: space-between;
}

.cart__drawer .item__title {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #333333;
  text-decoration: none;
}

.cart__drawer .item__price .price {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #555555;
}
.cart__drawer .item__price .old__price {
  position: relative;
  color: #999999;
}
.cart__drawer .item__quick_view__btn {
  position: relative;
}
.cart__drawer .quick__view_icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primaryColor);
}

.cart__drawer .upsell__item_contoller {
  height: 32px;
  padding: 0px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart__drawer .upsell__item_contoller {
  position: relative;
}
.cart__drawer .controller__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
}
.cart__drawer .prev__btn {
  left: 0;
}
.cart__drawer .next__btn {
  right: 0;
}
.cart__drawer .dot__controller {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart__drawer .dot__controller .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #868686;
  display: flex;
}

.cart__drawer .dot.active {
  background-color: #333333;
}

/* ======= cart drawer footer css =======*/
.cart__drawer .cart__drawer_footer {
  padding: 20px 20px 30px 20px;
  background-color: #F0F0F0;
}
.cart__drawer .subtotal__price {
  margin-bottom: 10px;
}
.cart__drawer .subtotal__price p,
.cart__drawer .subtotal__price span {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: #121212;
  display: block;
}

.cart__drawer .total__calculated_val {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #121212;
}
.cart__drawer .check__conditions {
  margin-top: 10px;
}

/* custom checkbox  css start */

.cart__drawer .checkbox__container {
  display: block;
  position: relative;
  padding-left: 23px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #868686;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cart__drawer .checkbox__container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cart__drawer .checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #ccc;
}

.cart__drawer .checkbox__container input:checked ~ .checkmark {
  background-color: #333333;
}

.cart__drawer .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.cart__drawer .checkbox__container input:checked ~ .checkmark:after {
  display: block;
}

.cart__drawer .checkbox__container .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* custom checkbox  css end */

/* btn */
.cart__drawer .btn,
.cart__drawer .popup__modal .btn {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #121212;
  border: none;
  background-color: transparent;
  cursor: pointer;
  text-transform: uppercase;
}
.cart__drawer .quick__view_btn,
.cart__drawer .checkout__btn,
.cart__drawer .popup__modal .btn {
  width: 100%;
  height: 40px;
}
.cart__drawer .quick__view_btn {
  font-weight: 400;
  border: 1px solid #000000;
}
.cart__drawer .checkout__btn {
  background-color: #121212;
  color: #fff;
}

/* ecommerce btn groups */
.cart__drawer .ecommerce__btn_groups {
  display: flex;
  gap: 10px;
}
.cart__drawer .ecommerce__btn_groups {
  margin-top: 20px;
}
.cart__drawer .ecommerce__btn_groups .quick__view_btn__wrapper,
.cart__drawer .ecommerce__btn_groups .checkout__btn_wrapper{
  width: calc(100% / 2 - 5px);
}

/* =======================  MODAL ================================ */

.cart__drawer .modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  visibility: hidden;
  opacity: 0;
  transition: .3s;
}
.cart__drawer .modal__overlay.open__note_modal{
  visibility: visible;
  opacity: 1;
}


/* order note modal */
.cart__drawer .popup__modal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition:.3s;
}

.cart__drawer .open__note_modal.order__note_modal{
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}



.cart__drawer .popup__modal .modal__container {
  padding: 20px 20px 30px 20px;
}
.cart__drawer .popup__modal .order__note_title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #121212;
  margin-bottom: 20px;
}

.cart__drawer .popup__modal .form__control {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #333;
  width: 100%;
  height: 40px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  outline: none;
  padding: 7px 15px;
}
.cart__drawer .popup__modal .form__control.textarea__control{
  color: #868686;
}

.cart__drawer .popup__modal .form__control::placeholder {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #555555;
}
.cart__drawer .popup__modal .textarea__control {
  padding: 10px;
  min-height: 130px;
  resize: none;
}
.cart__drawer .popup__modal .btn {
  color: #121212;
}
.cart__drawer .popup__modal .save__btn {
  background-color: #121212;
  color: var(--secondaryColor);
  margin-top: 20px;
}
.cart__drawer .popup__modal .cancel__btn {
  font-weight: 400;
  background-color: #fff;
  margin-top: 12px;
  border: 1px solid #EBEBEB;
}

/* gift__card_modal */

.cart__drawer .popup__modal .gift__box{
  width: 205px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  margin: auto;
}
.cart__drawer .popup__modal .gift__icon{
  display: flex;
}
.cart__drawer .popup__modal .gift__text{
  font-size:14px;
  line-height: 22px;
  font-weight: 400;
  color: #121212;
}
.cart__drawer .popup__modal .gift__text span{
  color: #868686;
}

/* coupon  */
.cart__drawer .coupon_title,
.cart__drawer .coupon__sub_title,
.cart__drawer .estimate__shipping_title{
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 12px;
}

.cart__drawer .coupon__sub_title{
  font-weight: 400;
  color: #868686;
}

/* estimate shipping */

.cart__drawer .popup__modal label{
   font-size: 14px;
   line-height: 20px;
   font-weight: 400;
   color: #555555;
   display: block;
}
.cart__drawer .popup__modal .input__wrapper,
.cart__drawer .estimate__shipping_modal .input__wrapper{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart__drawer .estimate__shipping_modal .input__wrapper{
  margin-bottom: 20px;
}
.cart__drawer .estimate__shipping_modal .save__btn{
  margin-top: unset;
}

.cart__drawer .estimate__shipping_modal .select__box{
  position: relative;
}
.cart__drawer select.form__control{
  appearance: none;
}
.cart__drawer .estimate__shipping_modal .appearance__icon{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  z-index: 1;
}


@media(min-width:494px){
  #card__drawer__modal{
    width: 430px;
  }

  .cart__drawer .cart__drawer_footer {
      height: 286px;
  }
  .cart__drawer .cart__drawer_body{
    margin-bottom: -18px;
    height: calc(100% - 65px - 282px);
  }
}

@media (min-width: 972px) {
  .cart__drawer .cart__drawer_close__btn,
  .cart__drawer .product__remove_btn,
  .cart__drawer .product__edit_btn,
  .cart__drawer .item__quick_view__btn,
  .cart__drawer .controller__btn,
  .cart__drawer .dot__controller .dot,
  .cart__drawer .mini__cart {
    cursor: pointer;
  }
  .cart__drawer .tooltip {
    display: flex;
    top: -10px;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(0px);
  }
  .cart__drawer .product__remove_btn:hover .tooltip {
    transform: translateY(-20px);
    visibility: visible;
    opacity: 1;
  }
  .cart__drawer .mini__cart:hover .tooltip {
    transform: translateY(-20px);
    visibility: visible;
    opacity: 1;
  }
  .cart__drawer .item__quick_view__btn .tooltip {
    right: 0;
  }
  .cart__drawer .item__quick_view__btn .tooltip::before {
    left: unset;
    right: 12px;
  }
  .cart__drawer .item__quick_view__btn:hover .tooltip {
    transform: translateY(-20px);
    visibility: visible;
    opacity: 1;
  }
}
