.mini-cart-overlay {
  z-index: 59;
}

.modal-cart.cart-drawer,
.cart-drawer-panel.cart-drawer {
  position: fixed;
  top: 0 !important;
  bottom: 0;
  left: 0 !important;
  right: auto !important;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0 !important;
  margin: 0;
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%) !important;
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s linear,
    visibility 0.45s linear;
  z-index: 60;
  overflow: hidden;
}

@media only screen and (min-width: 1024px) {
  .modal-cart.cart-drawer,
  .cart-drawer-panel.cart-drawer {
    width: 420px;
    min-width: 0 !important;
    max-width: 92vw;
    transform: translateX(-110%) !important;
  }

  .modal-cart.cart-drawer.active,
  .cart-drawer-panel.cart-drawer.active {
    transform: translateX(0) !important;
  }
}

.modal-cart.cart-drawer.active,
.cart-drawer-panel.cart-drawer.active {
  transform: translateX(0) !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer .drawer-header {
  flex-shrink: 0;
  border-bottom: 1px solid #e2e1e1;
}

.cart-drawer .drawer-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-drawer .drawer-title svg {
  width: 18px;
  height: 18px;
  fill: #00cd67;
}

@media only screen and (min-width: 1024px) {
  .cart-drawer .drawer-title svg {
    width: 22px;
    height: 22px;
  }
}

.cart-drawer .drawer-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e1e1;
  background-color: #f9f9f9;
  transition: all 0.2s linear;
}

.cart-drawer .drawer-close:hover {
  background-color: #ff0000;
}

.cart-drawer .drawer-close:hover i {
  color: #ffffff !important;
}

.cart-drawer .drawer-list {
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
}

.cart-drawer .drawer-list::-webkit-scrollbar {
  width: 5px;
}

.cart-drawer .drawer-list::-webkit-scrollbar-track {
  background: #f0f0f1;
}

.cart-drawer .drawer-list::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 10px;
}

.cart-drawer .drawer-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #f0f0f1;
  border-radius: 14px;
  padding: 0.8rem;
}

.cart-drawer .drawer-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: #f9f9f9;
}

@media only screen and (min-width: 1024px) {
  .cart-drawer .drawer-item img {
    width: 92px;
    height: 92px;
  }
}

.cart-drawer .drawer-item .flex-grow-1 {
  min-width: 0;
}

.cart-drawer .drawer-item .drawer-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #424242;
  margin: 0;
}

.cart-drawer .drawer-item .drawer-item-title a {
  color: inherit;
}

.cart-drawer .drawer-item .drawer-item-sub {
  font-size: 12px;
  color: #888888;
}

.cart-drawer .drawer-item .drawer-item-price {
  color: #1c33b1;
  font-weight: 800;
}

.cart-drawer .drawer-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 108px;
  border: 1px solid #e2e1e1;
  border-radius: 10px;
  padding: 2px 4px;
  background-color: #fff;
}

.cart-drawer .drawer-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #686767;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s linear;
}

.cart-drawer .drawer-qty button:hover {
  background-color: #f0f0f1;
}

.cart-drawer .drawer-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-drawer .drawer-qty input {
  width: 32px;
  border: none;
  outline: none;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #424242;
  background: transparent;
}

.cart-drawer .drawer-qty .loader {
  width: 14px;
  height: 14px;
  border-width: 3px;
}

.cart-drawer .drawer-item-remove {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  color: #a4a4a4;
  background: transparent;
  transition: all 0.2s linear;
}

.cart-drawer .drawer-item-remove:hover {
  color: #ff0000;
  background-color: #ff000014;
}

.cart-drawer .drawer-item-remove i {
  color: #a4a4a4;
}

.cart-drawer .drawer-item-remove:hover i {
  color: #ff0000;
}

.cart-drawer .drawer-item-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-drawer .drawer-empty {
  text-align: center;
  justify-content: center;
  min-height: 180px;
}

.cart-drawer .drawer-footer {
  flex-shrink: 0;
  border-top: 1px solid #e2e1e1;
  background-color: #ffffff;
}

.cart-drawer .drawer-footer .drawer-total {
  font-size: 16px;
  font-weight: 800;
  color: #424242;
}

.cart-drawer .drawer-footer .drawer-total-price {
  color: #1c33b1;
}

.cart-drawer .drawer-footer-actions .drawer-go-checkout,
.cart-drawer .drawer-footer-actions .drawer-continue {
  flex: 1;
  min-width: 0;
  width: auto;
  font-size: 14px;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.cart-drawer .drawer-go-checkout,
.cart-drawer .drawer-continue {
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(90deg, rgb(0, 74, 138) 0%, rgb(0, 170, 235) 100%);
  transition: all 0.25s linear;
}

.cart-drawer .drawer-go-checkout:hover,
.cart-drawer .drawer-continue:hover {
  color: #ffffff;
  box-shadow: 0 0 8px 0 rgba(51, 136, 255, 0.5);
}

.cart-drawer .drawer-go-checkout:active,
.cart-drawer .drawer-continue:active {
  transform: translate(0, 0.15em);
}

@media only screen and (max-width: 1023.98px) {
  .cart-drawer .drawer-go-checkout,
  .cart-drawer .drawer-continue {
    flex-grow: 1;
  }
}

#mini-cart-app[v-cloak] {
  display: none;
}
