@keyframes modalSlideIn {
 from {
  opacity: 0;
  transform: scale(0.8);
 }
 to {
  opacity: 1;
  transform: scale(1);
 }
}

.cart-modal-overlay {
 align-items: center;
 background: rgba(0, 0, 0, 0.7);
 display: flex;
 height: 100%;
 justify-content: center;
 left: 0;
 position: fixed;
 top: 0;
 width: 100%;
 z-index: 999999;
}

.cart-modal {
 animation: modalSlideIn 0.3s ease-out;
 background: white;
 border-radius: 30px;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 height: 100%;
 max-height: 775px;
 max-width: 754px;
 overflow-y: auto;
 position: relative;
 width: 95%;
}

.cart-modal::-webkit-scrollbar {
 font-size: 0;
 height: 0;
 width: 0;
 z-index: -1;
}

.cart-modal-header {
 padding: 77px 120px 50px 120px;
 position: relative;
}

.cart-modal-header::before {
 background: url("../images/cat.svg") no-repeat center center / contain;
 content: "";
 display: block;
 height: 107px;
 position: absolute;
 right: 20px;
 top: 60px;
 width: 139px;
 z-index: 1;
}

.modal-text-center {
 position: relative;
 text-align: center;
 z-index: 2;
}

.cart-modal-header h3 {
 color: #000;
 font-size: 32px;
 font-weight: 700;
 line-height: 1.4;
 margin: 0;
 text-align: center;
 text-transform: uppercase;
}

.cart-modal-header h3 span {
 color: #569a8f;
}

.modal-header-text {
 color: #000;
 font-size: 20px;
 font-weight: 700;
 line-height: 1;
 margin: 15px 0 0 0;
}

.cart-modal-close {
 align-items: center;
 background: #f8f9fa;
 border: none;
 border-radius: 50%;
 color: #000;
 cursor: pointer;
 display: flex;
 font-size: 0;
 height: 46px;
 justify-content: center;
 padding: 0;
 position: absolute;
 right: 15px;
 top: 15px;
 transition: all 0.2s ease;
 width: 46px;
}

.cart-modal-close::before,
.cart-modal-close:after {
 background: currentColor;
 content: "";
 display: block;
 height: 2px;
 left: 50%;
 position: absolute;
 top: 50%;
 transform: translate(-50%, -50%);
 width: 24px;
}

.cart-modal-close::before {
 transform: translate(-50%, -50%) rotate(-45deg);
}

.cart-modal-close:after {
 transform: translate(-50%, -50%) rotate(45deg);
}

.cart-modal-close:hover {
 color: #d37856;
}

.cart-modal-body {
 padding: 0 77px 65px 77px;
}

.cart-modal-buttons {
 display: flex;
 gap: 15px;
 justify-content: center;
 margin-top: 60px;
}

.cart-modal-btn {
 border: none;
 border-radius: 10px;
 cursor: pointer;
 font-size: 16px;
 font-weight: bold;
 height: 53px;
 padding: 15px 25px;
 text-transform: uppercase;
 transition: all 0.2s ease;
}

.cart-modal-btn.continue-shopping {
 background: #f8f9fa;
 border: 2px solid #000;
 color: #000;
 max-width: 228px;
 width: 100%;
}

.cart-modal-btn.continue-shopping:hover {
 background: #e9ecef;
 border-color: #bbb;
}

.cart-modal-btn.go-to-cart {
 background: #d37856;
 border: 2px solid #d37856;
 color: white;
 max-width: 247px;
 width: 100%;
}

.cart-modal-btn.go-to-cart:hover {
 background: #a05e46;
 border-color: #a05e46;
}

div.cart-modal-preloader.show {
 height: 394px;
}

div.cart-modal-preloader.show::before {
 background: url("../images/spinner.gif") no-repeat center center / cover;
 box-sizing: border-box;
 content: "";
 height: 50px;
 left: 50%;
 position: absolute;
 top: 50%;
 transform: translate(-50%, -50%);
 width: 50px;
 z-index: 22;
}

body.modal-open {
 overflow: hidden;
}

.cart-modal-products-list {
 display: flex;
 gap: 30px;
 justify-content: center;
}

.cart-modal-products-list .product-box {
 display: flex;
 flex-direction: column;
 max-width: 195px;
 position: relative;
}

.cart-modal-products-list .product-box .product-title {
 -webkit-box-orient: vertical;
 color: #000;
 display: -webkit-box;
 font-weight: 700;
 -webkit-line-clamp: 2;
 margin-top: 5px;
 overflow: hidden;
 text-overflow: ellipsis;
}

.cart-modal-products-list .product-box-link:hover .product-title {
 color: #d37856;
}

.cart-modal-products-list .price .woocommerce-Price-amount {
 color: #569a8f;
 display: block;
 font-size: 18px;
 font-weight: 700;
 margin-top: 2px;
 text-decoration: none !important;
}

.cart-modal-products-list .product-box form {
 margin: auto 0 0 0;
}

.cart-modal-products-list .product-box .product-count-label {
 background: #05a2db;
 border: 5px solid #05a2db;
 border-radius: 7px;
 color: #fff;
 font-size: 11px;
 left: calc(100% / 2 - 50px);
 position: absolute;
 text-align: center;
 text-transform: uppercase;
 top: -13px;
 width: 100px;
}

.cart-modal-products-list .product-box .product-image {
 border-radius: 20px;
 height: 210px;
}

.cart-modal-products-list .qib-button-wrapper {
 gap: 7px;
 justify-content: center !important;
 margin-bottom: 6px;
 margin-right: 0;
 margin-top: 10px;
 width: 100%;
}

.cart-modal-products-list .qib-button-wrapper button {
 background-color: #fff !important;
 width: 50px !important;
}

.single_add_to_cart_button.button.ss-modal {
 background-color: #d37856 !important;
 border: 1px solid #d37856 !important;
 border-radius: 10px !important;
 font-size: 14px;
 height: 39px;
 padding: 10px !important;
 transition: all 0.3s linear;
 width: 100%;
}

.single_add_to_cart_button.button.ss-modal:hover {
 background-color: #a05e46 !important;
 border-color: #a05e46 !important;
}

.ss-modal-product-link {
 align-items: center;
 background-color: #fff;
 border: 1px solid #569a8f;
 border-radius: 10px;
 color: #569a8f;
 display: flex;
 font-size: 14px;
 font-weight: 700;
 height: 39px;
 justify-content: center;
 line-height: 1;
 margin-top: 6px;
 padding: 5px;
 text-align: center;
 text-transform: uppercase;
 transition: all 0.3s ease-in;
 transition: all 0.3s linear;
 width: 100%;
}

.ss-modal-product-link:hover {
 background-color: #569a8f;
 color: #fff;
}

.cart-modal .qib-button-wrapper .qib-button,
.cart-modal .qib-button-wrapper .quantity input.input-text.qty.text {
 align-items: center;
 background: #f8f9fa !important;
 border: none;
 border-color: #f8f9fa !important;
 border-radius: 7px !important;
 display: flex;
 font-size: 20px !important;
 height: 31px !important;
 justify-content: center;
 width: 55px !important;
}

.cart-modal .qib-button-wrapper .wqpmb_quantity {
 height: auto !important;
}

.cart-modal .qib-button-wrapper .quantity input.input-text.qty.text {
 text-align: end;
}

.cart-modal .qib-button-wrapper .qib-button:hover,
.cart-modal .qib-button-wrapper .quantity input.input-text.qty.text:hover {
 background: #cacbcc !important;
}

.cart-modal .prev,
.cart-modal .next {
 display: none;
}

@media (max-width: 700px) {
 .cart-modal-header {
  padding: 41px 25px 26px 25px;
 }

 .cart-modal-header h3 {
  font-size: 22px;
 }

 .cart-modal-header h3 span {
  display: block;
 }

 .modal-header-text {
  font-size: 12px;
 }

 .cart-modal-header::before {
  height: 50px;
  right: 5px;
  top: 40px;
  width: 55px;
 }

 .cart-modal-btn {
  max-width: 100% !important;
  width: 100% !important;
 }

 .cart-modal-close {
  height: 36px;
  right: 16px;
  top: 5px;
  width: 36px;
 }

 .cart-modal-body {
  padding: 0 33px 36px 33px;
 }

 .cart-modal-products-list {
  justify-content: flex-start;
 }

 .cart-modal-products-list .product-box {
  flex: 0 0 auto;
  width: 100%;
 }

 .cart-modal #related-products {
  transition: all 0.4s ease-in-out;
 }

 .cart-modal-products {
  margin: 0 auto;
  max-width: calc(179px + 80px);
  padding: 0 40px;
  position: relative;
  width: 100%;
 }

 .cart-modal-products-list .product-box .product-count-label {
  position: relative;
  top: 12px;
 }

 .cart-modal-buttons {
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
 }

 .cart-modal .prev,
 .cart-modal .next {
  align-items: center;
  background-color: #d37856;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  width: 30px;
  z-index: 9999;
 }

 .cart-modal .prev.hidden,
 .cart-modal .next.hidden {
  opacity: 0.5;
  pointer-events: none;
 }

 .cart-modal .cart-modal-preloader {
  margin: 0 auto;
  overflow: hidden;
  position: relative;
 }

 .cart-modal .prev::before,
 .cart-modal .next::before {
  border: 2px solid #fff;
  border-bottom: 0;
  border-left: 0;
  content: "";
  display: block;
  height: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 12px;
 }

 .cart-modal .next::before {
  left: 13px;
 }

 .cart-modal .prev::before {
  left: 17px;
  transform: translate(-50%, -50%) rotate(225deg);
 }

 .cart-modal .prev {
  left: -2px;
 }

 .cart-modal .next {
  right: -2px;
 }

 .cart-modal-products-list .product-box .product-image,
 .cart-modal-products-list .product-box .product-title,
 .cart-modal-products-list .product-box .ss-modal-product-link,
 .cart-modal-products-list .product-box form {
  margin: 0 auto;
  width: 100%;
 }

 .cart-modal-products-list .product-box .product-title {
  margin: 5px auto 0;
 }

 .cart-modal-products-list .product-box .ss-modal-product-link {
  margin: 10px auto 0;
 }

 .cart-modal-products-list .product-box form {
  margin: 0 auto;
 }

 .cart-modal .qib-button-wrapper .qib-button,
 .cart-modal .qib-button-wrapper .quantity input.input-text.qty.text {
  font-size: 16px !important;
  height: 33px !important;
 }
}

@media (max-width: 370px) {
 .cart-modal-products {
  padding: 0 30px;
 }

 .cart-modal .prev {
  left: -10px;
 }

 .cart-modal .next {
  right: -10px;
 }
}
