/* html.bs-drawer-open {
  overflow: hidden;
} */


#mini-cart-section {
  position: relative;
  /* ensures absolute child anchors correctly */
}

.bs-drawer-overlay {
  border: none !important;
}

.bs-drawer:focus-visible {
  border: none !important;
}

.bs-drawer {
  position: absolute;
  right: 0;
  top: 100%;
  /* below the mini-cart-section */
  width: min(340px, 90vw);
  max-height: min(65vh, 700px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 9999;
  border: none !important;
  padding: 10px;
}

.html.bs-drawer-open .bs-drawer,
.bs-drawer-open .bs-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bs-drawer.bs-drawer--wide {
  width: min(680px, 96vw);
}

/* Header and close button */
.bs-drawer-header {
  display: flex;
  align-items: center;
  justify-content: end;
  border-bottom: 1px solid #eee;
}

.bs-drawer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.bs-drawer-close {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px;
}

.bs-drawer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.bs-drawer-close {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}


.bs-drawer-body {
  max-height: calc(65vh - 56px);
  overflow: auto;
}

/* Optional: style Woo mini-cart a bit tighter inside the drawer */
.bs-drawer .widget_shopping_cart .buttons a {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  display: block;
}

.bs-drawer .widget_shopping_cart .buttons a.checkout {
  margin-bottom: 0;
}


/* mini cart  */

.widget_shopping_cart_content ul.woocommerce-mini-cart {
  height: 35VH;
  overflow-y: auto;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

.cart_list.product_list_widget {

  border-radius: 15px;
  padding: 10px !important;
}

.mini_cart_item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(2, 6, 23, .06);
  padding: 10px !important;
  margin-bottom: 15px !important;
}

ul.product_list_widget li a,
ul.product_list_widget li a:visited,
ul.product_list_widget li a:hover {
  font-size: 13px;
  color: #2f2f2f;
}

ul.product_list_widget li .quantity {
  font-size: 13px;
}

.remove.remove_from_cart_button {
  font-size: 18px !important;
}


.widget_shopping_cart .total {
  margin-top: 20px;
  border-top: none;
  font-size: 14px;
}

a.button.wc-forward {
  background-color: #fff !important;
  color: #1b99d7 !important;
  border: 1px solid #1b99d7 !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
}

a.button.checkout.wc-forward {
  background-color: #1b99d7 !important;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 5px;
}

a.send-offer-request.mini-card-btn {
  background-color: #2f2f2f !important;
  color: #fff !important;
}



/* --- Two-column auto layout inside the drawer --- */
.widget_shopping_cart_content {
  display: grid;
  grid-template-columns: 1fr;
  /* default single column */
  gap: 16px;
  align-items: start;
  min-width: 0;
  /* critical to allow shrinking */
}


.bs-drawer.bs-drawer--wide .widget_shopping_cart_content,
.bs-drawer:has(.widget_shopping_cart_content > .mini-cart-content):has(.widget_shopping_cart_content > .offer-mini-cart) .widget_shopping_cart_content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* Each column is a vertical stack (list + totals/buttons) */
.widget_shopping_cart_content>.mini-cart-content,
.widget_shopping_cart_content>.offer-mini-cart {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  min-width: 0;
  /* <-- important */
}

/* Tidy the ULs inside each column */
.widget_shopping_cart_content ul.woocommerce-mini-cart {
  margin: 0;
  min-width: 0;
}

/* Make action buttons fill the column width */
.widget_shopping_cart_content .buttons a,
.widget_shopping_cart_content .mt-3 a {
  width: 100%;
  text-align: center;
  display: block;
}

ul.cart_list li img,
ul.product_list_widget li img {
  max-width: 100%;
  height: auto;
}


/* 7) Your existing mini-cart cosmetics (kept) */
.cart_list.product_list_widget {

  border-radius: 15px;
  padding: 10px !important;
}

.mini_cart_item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(2, 6, 23, .06);
  padding: 10px !important;
  margin-bottom: 15px !important;
}

ul.product_list_widget li a,
ul.product_list_widget li a:visited,
ul.product_list_widget li a:hover {
  font-size: 13px;
  color: #2f2f2f;
}

ul.product_list_widget li .quantity {
  font-size: 13px;
}

.remove.remove_from_cart_button {
  font-size: 18px !important;
}

.widget_shopping_cart .cart_list li a.remove-from-mini-cart,
.bs-offer-remove-mini
 {
  position: absolute !important;
  left: unset !important;
  right: -7px !important;
  top: -7px !important;
  /* border: 1px solid #8d8c8c; */
}

ul.cart_list li img,
ul.product_list_widget li img {
  width: 60px !important;
  max-width: 100%;
  height: auto;
}

ul.cart_list,
ul.product_list_widget {
  list-style: none outside;
}

.widget_shopping_cart .cart_list li {
  position: relative !important;
}

ul.cart_list li::after,
ul.cart_list li::before,
ul.product_list_widget li::after,
ul.product_list_widget li::before {
  content: " ";
  display: table;
}

.widget_shopping_cart .total {
  margin-top: 5px;
  margin-bottom: 5px;
  border-top: none;
  font-size: 14px;
}

ul.cart_list li a,
ul.product_list_widget li a {
  display: block;
  font-weight: 700;
}


ul.cart_list li a,
ul.product_list_widget li a {
  display: block;
  font-weight: 700;
}

ul.cart_list li img,
ul.product_list_widget li img {
  float: right;
  margin-left: 4px;
  width: 32px;
  height: auto;
  box-shadow: none;
}


.mini-cart-content-left{
  background-color: #f6f6f6;
}

.mini-cart-content-right{
  background-color: #e2f4fd;
}
.widget_shopping_cart .buttons::after,
.widget_shopping_cart .buttons::before,
 .widget_shopping_cart .buttons::after,
.widget_shopping_cart .buttons::before {
  content: " ";
  display: table;
}


a.remove {
  display: block;
  font-size: 1.5em;
  height: 1em;
  width: 1em;
  text-align: center;
  line-height: 1;
  border-radius: 100%;
  color: var(--wc-red) !important;
  text-decoration: none;
  font-weight: 700;
  border: 0;
}


.send-offer-request.mini-card-btn{
  margin: 0PX !important;
}


.woocommerce-mini-cart__buttons{
  padding: 5px;
  margin-bottom: 0px !important;
}
a.button.wc-forward {
  background-color: #fff !important;
  color: #2f2f2f !important;
  border: 1px solid #1b99d7 !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
}

a.button.checkout.wc-forward {
  background-color: #2f2f2f !important;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 5px;
}

a.send-offer-request.mini-card-btn {
  background-color: #1b99d7 !important;
  color: #fff !important;
  border: 1px solid #1b99d7 !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
}

.offer-mini-cart {
  padding-left: 10px;
  border-left: 2px dashed #8d8c8c;
  height: 100%;
}

/* Responsive: always stack on smaller viewports */

@media (max-width: 900px) {
  .bs-drawer {
    width: min(96vw, 560px);
  }

  .widget_shopping_cart_content {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .bs-drawer,
  .bs-drawer-overlay {
    transition: none !important;
  }
}