/* Side cart (Shoptimizer mini cart drawer) restyled in the 3D Bazaar design. Loaded after the drawer's own rules. */
html body .shoptimizer-mini-cart-wrap {
  display: flex;
  flex-direction: column;
  width: 440px;
  right: -460px;
  font-family: "DM Sans", sans-serif;
  color: #16211d;
  background: #fff;
  box-shadow: none;
}
html body.drawer-open .shoptimizer-mini-cart-wrap {
  box-shadow: -16px 0 50px rgba(20, 48, 66, 0.22);
}
@media (max-width: 480px) {
  html body .shoptimizer-mini-cart-wrap {
    width: 100%;
    right: -100%;
  }
}

/* Heading */
html body .shoptimizer-mini-cart-wrap .cart-drawer-heading {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 22px 24px 18px;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #143042;
  background: #fff;
  border-bottom: 1px solid #e6eef3;
}
html body .shoptimizer-mini-cart-wrap .cart-drawer-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2ea3f2, #7cc8fb);
}
.d3b_cart_pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #2ea3f2;
  border-radius: 999px;
}
.d3b_cart_pill[hidden] {
  display: none;
}

/* Close button */
html body .shoptimizer-mini-cart-wrap .close-drawer {
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #143042;
  background: #f1f6f9;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
html body .shoptimizer-mini-cart-wrap .close-drawer:hover,
html body .shoptimizer-mini-cart-wrap .close-drawer:focus-visible {
  color: #fff;
  background: #2ea3f2;
  transform: rotate(90deg);
}
html body .shoptimizer-mini-cart-wrap .close-drawer span {
  width: 20px;
  height: 20px;
}
html body .shoptimizer-mini-cart-wrap .close-drawer svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Body */
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart_content {
  min-height: 0;
  height: 100%;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart.cart_list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 6px 24px;
  list-style: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c6d3da transparent;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart.cart_list::before {
  display: none;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item {
  position: relative;
  min-height: 106px;
  margin: 0;
  padding: 18px 34px 18px 92px;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid #e6eef3;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item:last-child {
  border-bottom: 0;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item > a:not(.remove) {
  display: block;
  margin: 0;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #143042;
  text-decoration: none;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item > a:not(.remove):hover {
  color: #2ea3f2;
}
html body .shoptimizer-mini-cart-wrap .product_list_widget img {
  position: absolute;
  top: 18px;
  left: 0;
  float: none;
  width: 72px;
  max-width: 72px;
  height: 72px;
  margin: 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e3eef5;
  border-radius: 10px;
}
html body .shoptimizer-mini-cart-wrap .product_list_widget li .quantity {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
  font-size: 13.5px;
  color: #65706b;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart .woocommerce-mini-cart-item .amount {
  font-weight: 700;
  color: #143042;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item dl.variation {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #65706b;
}

/* Remove (trash) button */
html body .widget_shopping_cart .product_list_widget li a.remove {
  top: 16px;
  right: 0;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0;
  color: #8a97a0;
  background: transparent;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}
html body .widget_shopping_cart .product_list_widget li a.remove::before {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .widget_shopping_cart .product_list_widget li a.remove:hover,
html body .widget_shopping_cart .product_list_widget li a.remove:focus-visible {
  color: #e5484d;
  background: #fff1f1;
}

/* Totals + buttons */
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart p.total {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  padding: 18px 24px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #65706b;
  background: #f5fbff;
  border-top: 1px solid #cdeafc;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart p.total strong {
  float: none;
  font-weight: 600;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart p.total .woocommerce-Price-amount {
  float: none;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #143042;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart p.total::after {
  content: "Shipping and taxes are calculated at checkout.";
  flex: 1 0 100%;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: #65706b;
}
html body .shoptimizer-mini-cart-wrap .widget_shopping_cart p.buttons {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin: 0;
  padding: 12px 24px 24px;
  background: #f5fbff;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart__buttons a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin: 0;
  padding: 0 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #143042;
  background: #fff;
  border: 1.5px solid #cdeafc;
  border-radius: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart__buttons a.button:hover {
  color: #2ea3f2;
  background: #fff;
  border-color: #2ea3f2;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart__buttons a.button.checkout {
  color: #fff;
  background: #2ea3f2;
  border-color: #2ea3f2;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart__buttons a.button.checkout:hover {
  color: #fff;
  background: #1d8fd9;
  border-color: #1d8fd9;
}

/* Empty cart */
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart__empty-message {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 24px 40px;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #143042;
  border-top: 0;
}
html body .shoptimizer-mini-cart-wrap .woocommerce-mini-cart__empty-message::before {
  top: 38%;
  width: 96px;
  height: 96px;
  background: #cdeafc;
}
