.basket-cart-drawer {
  --basket-drawer-top: 0px;
  position: fixed;
  top: var(--basket-drawer-top);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10020;
  visibility: hidden;
  pointer-events: none;
}

.basket-cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.basket-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(24, 22, 20, 0.34);
  opacity: 0;
  cursor: default;
  transition: opacity 0.25s ease;
}

.basket-cart-drawer.is-open .basket-cart-drawer__overlay {
  opacity: 1;
}

.basket-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 45px rgba(28, 24, 20, 0.15);
  outline: none;
  transform: translateX(102%);
  transition: transform 0.28s ease;
}

.basket-cart-drawer.is-open .basket-cart-drawer__panel {
  transform: translateX(0);
}

.basket-cart-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #ece8e2;
}

.basket-cart-drawer__header h2 {
  margin: 0 0 5px;
  color: #222;
  font-family: "Inter", sans-serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.basket-cart-drawer__header p {
  margin: 0;
  color: #777;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.basket-cart-drawer__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid #ded9d2;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 23px;
  font-weight: 300;
  line-height: 30px;
  cursor: pointer;
}

.basket-cart-drawer__contents {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 24px 18px;
}

.basket-cart-drawer .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}

.basket-cart-drawer .woocommerce-mini-cart-item {
  position: relative;
  min-height: 104px;
  margin: 0;
  padding: 16px 30px 16px 92px;
  border-bottom: 1px solid #eeeae4;
  font-family: "IBM Plex Sans", sans-serif;
}

.basket-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
  display: block;
  color: #242424;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.basket-cart-drawer .woocommerce-mini-cart-item img {
  position: absolute;
  top: 16px;
  left: 0;
  width: 76px;
  height: 88px;
  margin: 0;
  object-fit: cover;
  border-radius: 3px;
  background: #eee;
}

.basket-cart-drawer .woocommerce-mini-cart-item .remove {
  position: absolute;
  top: 14px;
  right: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #777 !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.basket-cart-drawer .woocommerce-mini-cart-item .remove:hover {
  background: #f3efea;
  color: #222 !important;
}

.basket-cart-drawer .woocommerce-mini-cart-item .quantity {
  display: block;
  margin-top: 8px;
  color: #686868;
  font-size: 12px;
}

.basket-cart-drawer .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #ddd8d1;
  color: #222;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
}

.basket-cart-drawer .woocommerce-mini-cart__total strong {
  font-weight: 500;
}

.basket-cart-drawer .woocommerce-mini-cart__buttons {
  display: none !important;
}

.basket-cart-drawer .woocommerce-mini-cart__empty-message {
  margin: 0;
  padding: 52px 10px;
  color: #777;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  text-align: center;
}

.basket-cart-drawer__actions {
  display: grid;
  gap: 9px;
  padding: 18px 24px 22px;
  border-top: 1px solid #ece8e2;
  background: #fff;
}

.basket-cart-drawer.is-empty .basket-cart-drawer__actions {
  display: none;
}

.basket-cart-drawer__checkout,
.basket-cart-drawer__cart-link,
.basket-cart-drawer__continue {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.basket-cart-drawer__checkout {
  border: 1px solid #292724;
  background: #292724;
  color: #fff;
}

.basket-cart-drawer__cart-link {
  border: 1px solid #cfc9c1;
  background: #fff;
  color: #292724;
}

.basket-cart-drawer__continue {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #6f6a64;
}

body.basket-cart-drawer-open {
  overflow: hidden;
}

[data-basket-cart-toggle] .cart-count {
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  top: -9px;
  right: -9px;
  padding: 1px 3px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  transform-origin: center;
  transition: background-color .2s ease, color .2s ease;
}

[data-basket-cart-toggle].is-cart-celebrating svg {
  animation: basket-cart-icon-hop .62s cubic-bezier(.2, .85, .3, 1);
  transform-origin: 50% 65%;
}

[data-basket-cart-toggle].is-cart-celebrating::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(38, 122, 67, .45);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: basket-cart-ring .62s ease-out both;
}

[data-basket-cart-toggle] .cart-count.is-cart-count-pop {
  animation: basket-cart-count-pop .68s cubic-bezier(.18, .9, .25, 1.25);
}

@keyframes basket-cart-icon-hop {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  28% { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
  52% { transform: translateY(1px) rotate(5deg) scale(.98); }
  72% { transform: translateY(-1px) rotate(-2deg) scale(1.02); }
}

@keyframes basket-cart-count-pop {
  0% {
    background: #333;
    opacity: .55;
    transform: scale(.62) rotate(-10deg);
  }
  38% {
    background: #267a43;
    opacity: 1;
    transform: scale(1.42) rotate(5deg);
  }
  68% {
    background: #267a43;
    transform: scale(.92) rotate(0deg);
  }
  100% {
    background: #333;
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes basket-cart-ring {
  0% { opacity: 0; transform: scale(.55); }
  28% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.35); }
}

body.basket-cart-drawer-open .joinchat,
body.basket-cart-drawer-open #qlwapp,
body.basket-cart-drawer-open .ht-ctc-chat,
body.basket-cart-drawer-open .floating-wpp,
body.basket-cart-drawer-open .wa__btn_popup,
body.basket-cart-drawer-open [class*="whatsapp-float"],
body.basket-cart-drawer-open [id*="whatsapp-float"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .basket-cart-drawer__panel {
    width: 100%;
  }

  .basket-cart-drawer__header {
    padding: 18px 16px 16px;
  }

  .basket-cart-drawer__header h2 {
    font-size: 21px;
  }

  .basket-cart-drawer__contents {
    padding: 6px 16px 16px;
  }

  .basket-cart-drawer__actions {
    padding: 14px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .basket-cart-drawer__panel,
  .basket-cart-drawer__overlay {
    transition: none;
  }

  [data-basket-cart-toggle].is-bumped,
  [data-basket-cart-toggle].is-cart-celebrating svg,
  [data-basket-cart-toggle] .cart-count.is-cart-count-pop,
  [data-basket-cart-toggle].is-cart-celebrating::after {
    animation: none;
  }
}
