/* Native Astra mini-cart only. No product/cart/checkout template changes.
   The drawer lives outside #masthead; keep the same opt-in body gate. */
.srh-header-preview #masthead .ast-site-header-cart .widget_shopping_cart {
  width: 340px;
  max-width: calc(100vw - 32px);
  transition: none;
}
@media (min-width: 922px) {
  .srh-header-preview #masthead .ast-site-header-cart:focus-within .widget_shopping_cart {
    right: 0;
    left: auto;
    opacity: 1;
    visibility: visible;
  }
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) {
  color: #123c32;
  background: #f4f8f5;
  font: 500 14px/1.5 'SRH Header Manrope', sans-serif;
  overflow-wrap: break-word;
  word-break: normal;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart {
  padding: 0 20px !important;
  margin: 0;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0 !important;
  padding: 18px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #74b3ac55 !important;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item > a:not(.remove) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: calc(100% - 44px);
  padding: 0 !important;
  margin: 0;
  color: #123c32 !important;
  font: 700 16px/1.45 'SRH Header Manrope', sans-serif;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item img {
  position: static !important;
  float: none !important;
  display: block;
  width: 96px !important;
  max-width: 100% !important;
  height: 64px !important;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 8px !important;
  transform: none !important;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item .variation {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: 6px 12px;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  font: 500 14px/1.5 'SRH Header Manrope', sans-serif;
}
/* Woo's clearfix pseudo-elements must not occupy Grid cells. */
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .variation::before,
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .variation::after { content: none; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .variation :is(dt, dd) {
  float: none !important;
  clear: none !important;
  display: block;
  width: auto !important;
  min-width: 0;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
  color: #123c32;
  font: inherit;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .variation dt { font-weight: 700; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .variation dd p { margin: 0; font: inherit; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item > .quantity { margin: 0; font: inherit; color: #123c32; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-Price-amount { white-space: nowrap; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total {
  display: grid !important;
  grid-template-columns: minmax(max-content, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px !important;
  margin: 0 !important;
  border-top: 1px solid #74b3ac55 !important;
  font: 700 15px/1.5 'SRH Header Manrope', sans-serif;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total :is(strong, .amount) {
  width: auto !important;
  padding: 0 !important;
  margin: 0;
  color: #123c32;
  font: inherit;
  white-space: nowrap;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total strong { text-align: left; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__total .amount { text-align: right; }
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px !important;
  margin: 0 !important;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons a.button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px !important;
  margin: 0 !important;
  border: 1px solid #568f80 !important;
  border-radius: 4px;
  background: transparent !important;
  color: #123c32 !important;
  font: 700 14px/1.4 'SRH Header Manrope', sans-serif;
  text-align: center;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart__buttons a.checkout {
  background: #155247 !important;
  color: #fff !important;
  border-color: #155247 !important;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) .woocommerce-mini-cart-item a.remove {
  position: absolute;
  top: 14px !important;
  right: 0 !important;
  left: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px !important;
  border: 0 !important;
  color: #155247 !important;
  background: transparent !important;
  opacity: 1;
}
.srh-header-preview :is(#masthead .ast-site-header-cart .widget_shopping_cart, #astra-mobile-cart-drawer) :is(a, button, input):focus-visible { outline: 2px solid #568f80 !important; outline-offset: 2px; }
.srh-header-preview #astra-mobile-cart-drawer .astra-cart-drawer-header { background: #155247; color: #fff; border: 0; }
.srh-header-preview #astra-mobile-cart-drawer .astra-cart-drawer-title { color: #fff; }
.srh-header-preview #astra-mobile-cart-drawer .astra-cart-drawer-close { color: #fff; }
/* Keep Woo's own scrolling list and anchored totals/buttons in the drawer. */
.srh-header-preview #astra-mobile-cart-drawer .woocommerce-mini-cart { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.srh-header-preview #astra-mobile-cart-drawer :is(.woocommerce-mini-cart__total, .woocommerce-mini-cart__buttons) { flex: 0 0 auto; }
