/* Melanin Bliss Commerce Core 2.5.0 — balanced cards, no card-inside-card clutter */
:root{--mbcc-primary:#844d00;--mbcc-dark:#3e2723;--mbcc-ivory:#f6f3ee;--mbcc-line:rgba(132,77,0,.16);--mbcc-shadow:0 16px 38px rgba(62,39,35,.08)}
body.single-product,body.woocommerce-cart,body.woocommerce-checkout{background:#fff;color:var(--mbcc-dark)}
.single-product div.product,.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce,.wc-block-cart,.wc-block-checkout{width:min(92%,1220px);margin-inline:auto;font-family:var(--mb-font-body,"Portal","Inter",Arial,sans-serif);color:var(--mbcc-dark)}
.single-product div.product{padding:clamp(34px,4.6vw,58px) 0}.single-product div.product .product_title,.single-product .related.products>h2,.mbcc-commerce-intro h1{font-family:var(--mb-font-heading,"Portal","Open Sans",Arial,sans-serif);color:var(--mbcc-dark);letter-spacing:-.035em}
/* Two primary product cards. */
.single-product .woocommerce-product-gallery,.single-product div.product .summary{padding:clamp(18px,2.5vw,28px)!important;background:#fff!important;border:1px solid var(--mbcc-line)!important;border-radius:22px!important;box-shadow:var(--mbcc-shadow)!important}
.single-product .woocommerce-product-gallery img{border-radius:16px;background:var(--mbcc-ivory)}
.single-product div.product p.price,.single-product div.product span.price{color:var(--mbcc-primary);font-weight:700}
/* Summary content remains editorial inside the summary card. */
.mbcc-option-copy{margin:18px 0 20px;padding:0 0 0 18px;border-left:2px solid var(--mbcc-primary);background:transparent!important;box-shadow:none!important}.mbcc-option-label{display:block;margin-bottom:8px;color:var(--mbcc-primary);font-size:.76rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.mbcc-option-intro{margin:0 0 10px;color:var(--mbcc-dark);line-height:1.7}.mbcc-option-note{margin:0;color:rgba(62,39,35,.72);font-size:.92rem;line-height:1.65}.mbcc-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.mbcc-badges span{padding:7px 11px;border:1px solid rgba(132,77,0,.22);border-radius:999px;color:var(--mbcc-dark);font-size:.75rem;background:transparent;box-shadow:none}
.single-product div.product form.cart .button,.single-product .products .button,.mbcc-view-product,.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,.woocommerce-checkout #place_order,.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{background:var(--mbcc-primary)!important;color:#fff!important;border:1px solid var(--mbcc-primary)!important;border-radius:999px!important;padding:14px 22px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important}
/* Tabs are one primary card; tab content is not another card. */
.single-product .woocommerce-tabs{clear:both;margin-top:clamp(30px,4vw,48px);padding:clamp(18px,2.6vw,30px);border:1px solid var(--mbcc-line);border-radius:22px;background:#fff;box-shadow:var(--mbcc-shadow)}.single-product .woocommerce-tabs ul.tabs{display:flex!important;gap:24px;margin:0 0 20px!important;padding:0!important;border:0!important}.single-product .woocommerce-tabs ul.tabs:before,.single-product .woocommerce-tabs ul.tabs li:before,.single-product .woocommerce-tabs ul.tabs li:after{display:none!important}.single-product .woocommerce-tabs ul.tabs li{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.single-product .woocommerce-tabs ul.tabs li a{padding:9px 0!important;color:rgba(62,39,35,.62)!important;font-weight:700!important;border-bottom:2px solid transparent}.single-product .woocommerce-tabs ul.tabs li.active a{color:var(--mbcc-dark)!important;border-bottom-color:var(--mbcc-primary)}.single-product .woocommerce-tabs .panel{padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--mbcc-dark);line-height:1.75}.mbcc-tab-copy h3{margin-top:1.3rem}.mbcc-tab-copy ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 30px;padding-left:1.1rem}
/* Related products keep individual product cards. */
.single-product .related.products{clear:both;padding:clamp(32px,4.4vw,54px) 0 10px}.single-product .related.products ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.single-product .related.products li.product{width:auto!important;margin:0!important;padding:16px 16px 18px!important;background:#fff!important;border:1px solid var(--mbcc-line)!important;border-radius:18px!important;box-shadow:var(--mbcc-shadow)!important}.single-product .related.products li.product img{border-radius:14px;margin-bottom:14px!important;background:var(--mbcc-ivory)}.single-product .related.products li.product .button{margin-top:12px!important;text-align:center}
.mbcc-commerce-intro{width:min(92%,1220px);margin:clamp(22px,3.5vw,38px) auto 20px;padding:0 0 18px;border-bottom:1px solid var(--mbcc-line);text-align:left}.mbcc-commerce-intro>span{display:block;color:var(--mbcc-primary);font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700}.mbcc-commerce-intro h1{font-size:clamp(2rem,4vw,3.6rem);margin:.25em 0 .15em}.mbcc-commerce-intro p{color:rgba(62,39,35,.74);margin:0}.mbcc-progress{display:flex;gap:18px;margin-top:16px}.mbcc-progress b{font-size:.78rem;color:rgba(62,39,35,.48);font-weight:600}.mbcc-progress b.is-active{color:var(--mbcc-primary)}
/* Cart and checkout keep their main sections as cards. Nested table rows/fields remain flat. */
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{padding-bottom:clamp(34px,4.5vw,56px)}.woocommerce-cart table.shop_table,.woocommerce-cart .cart_totals,.woocommerce-checkout .woocommerce-billing-fields,.woocommerce-checkout .woocommerce-shipping-fields,.woocommerce-checkout #order_review,.wc-block-cart__main,.wc-block-cart__sidebar,.wc-block-checkout__main,.wc-block-checkout__sidebar{background:#fff;border:1px solid var(--mbcc-line);border-radius:20px;box-shadow:var(--mbcc-shadow);padding:clamp(18px,2.5vw,28px)}.woocommerce-cart table.shop_table th,.woocommerce-cart table.shop_table td,.woocommerce-checkout table.shop_table th,.woocommerce-checkout table.shop_table td{color:var(--mbcc-dark);border-color:rgba(132,77,0,.12)!important;background:transparent!important;box-shadow:none!important}.woocommerce-cart input,.woocommerce-cart select,.woocommerce-cart textarea,.woocommerce-checkout input,.woocommerce-checkout select,.woocommerce-checkout textarea{background:#fff!important;color:var(--mbcc-dark)!important;border:1px solid rgba(132,77,0,.24)!important;border-radius:10px!important;padding:12px 13px!important;box-shadow:none!important}.mbcc-trust{margin:16px 0 0;padding:12px 0 0;border-top:1px solid var(--mbcc-line);color:rgba(62,39,35,.72);line-height:1.55;background:transparent!important;box-shadow:none!important}
@media(max-width:900px){.single-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.single-product div.product .summary,.single-product .woocommerce-product-gallery{width:100%!important;float:none!important}.mbcc-tab-copy ul{grid-template-columns:1fr}}
@media(max-width:640px){.single-product div.product,.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{width:94%}.single-product div.product{padding:24px 0}.single-product .woocommerce-product-gallery,.single-product div.product .summary{padding:16px!important;border-radius:16px!important}.single-product .woocommerce-tabs{margin-top:24px;padding:16px;border-radius:16px}.single-product .woocommerce-tabs ul.tabs{gap:14px;overflow-x:auto}.single-product .related.products{padding-top:30px}.single-product .related.products ul.products{grid-template-columns:1fr 1fr;gap:12px}.single-product .related.products li.product{padding:10px!important;border-radius:14px!important}.single-product .related.products li.product .button{font-size:.75rem;padding:10px 7px!important}.mbcc-commerce-intro{width:94%;margin-top:18px}.mbcc-progress{gap:12px}.woocommerce-cart table.shop_table,.woocommerce-cart .cart_totals,.woocommerce-checkout .woocommerce-billing-fields,.woocommerce-checkout .woocommerce-shipping-fields,.woocommerce-checkout #order_review{padding:15px;border-radius:16px}.wc-block-cart__main,.wc-block-cart__sidebar,.wc-block-checkout__main,.wc-block-checkout__sidebar{padding:14px;border-radius:16px}}


/* v2.3 — only the new related-products section is visible on single-product pages. */
body.single-product .related.products:not(.mbcc-related-products),
body.single-product section.related.products:not(.mbcc-related-products),
body.single-product .woocommerce .related.products:not(.mbcc-related-products){display:none!important}
body.single-product .mbcc-related-products{display:block!important;clear:both!important;width:100%!important;margin:0!important;padding:clamp(34px,5vw,64px) 0!important;background:#fff!important;color:var(--mbcc-dark)!important}
body.single-product .mbcc-related-inner{width:min(92%,1220px)!important;margin:0 auto!important}
body.single-product .mbcc-related-heading{margin:0 0 clamp(20px,3vw,32px)!important;font-family:var(--mb-font-heading,"Portal","Open Sans",Arial,sans-serif)!important;font-size:clamp(2rem,4vw,3.35rem)!important;line-height:1.08!important;letter-spacing:-.04em!important;color:var(--mbcc-dark)!important;text-transform:none!important}
body.single-product .mbcc-related-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(16px,2vw,24px)!important;margin:0!important;padding:0!important}
body.single-product .mbcc-related-card{display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;padding:14px!important;background:#fff!important;border:1px solid var(--mbcc-line)!important;border-radius:20px!important;box-shadow:var(--mbcc-shadow)!important;overflow:hidden!important}
body.single-product .mbcc-related-media{display:block!important;aspect-ratio:1/1!important;border-radius:14px!important;overflow:hidden!important;background:var(--mbcc-ivory)!important}
body.single-product .mbcc-related-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;border-radius:0!important}
body.single-product .mbcc-related-body{display:flex!important;flex:1!important;flex-direction:column!important;padding:16px 4px 2px!important;background:transparent!important;box-shadow:none!important}
body.single-product .mbcc-related-title{margin:0 0 9px!important;font-family:var(--mb-font-heading,"Portal","Open Sans",Arial,sans-serif)!important;font-size:clamp(1.05rem,1.6vw,1.35rem)!important;line-height:1.28!important;font-weight:700!important;text-transform:capitalize!important;color:var(--mbcc-dark)!important}
body.single-product .mbcc-related-title a{color:inherit!important;text-decoration:none!important}
body.single-product .mbcc-related-price{margin:0 0 16px!important;color:var(--mbcc-primary)!important;font-size:1.05rem!important;font-weight:700!important}
body.single-product .mbcc-related-price *{color:inherit!important}
body.single-product .mbcc-related-cta{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;margin:auto 0 0!important;padding:13px 16px!important;border:1px solid var(--mbcc-primary)!important;border-radius:999px!important;background:var(--mbcc-primary)!important;color:#fff!important;font-weight:700!important;line-height:1.15!important;text-align:center!important;text-decoration:none!important;box-shadow:none!important}
body.single-product .mbcc-related-cta:hover,body.single-product .mbcc-related-cta:focus{background:var(--mbcc-dark)!important;border-color:var(--mbcc-dark)!important;color:#fff!important}
@media(max-width:900px){body.single-product .mbcc-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body.single-product .mbcc-related-products{padding:28px 0!important}body.single-product .mbcc-related-inner{width:94%!important}body.single-product .mbcc-related-grid{grid-template-columns:1fr!important;gap:14px!important}body.single-product .mbcc-related-card{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:14px!important;padding:12px!important;border-radius:16px!important}body.single-product .mbcc-related-media{aspect-ratio:1/1!important}body.single-product .mbcc-related-body{padding:4px 0!important}body.single-product .mbcc-related-title{font-size:1rem!important;margin-bottom:6px!important}body.single-product .mbcc-related-price{font-size:.98rem!important;margin-bottom:10px!important}body.single-product .mbcc-related-cta{padding:10px 12px!important;font-size:.78rem!important}}


/* ============================================================
   v2.5.0 — Bundle-only coupon UX (product ID 3932)
   ============================================================ */
body.mbcc-bundle-coupon-eligible.woocommerce-cart .woocommerce-cart-form .coupon{
  display:none!important;
}

.mbcc-bundle-coupon-panel{
  width:min(92%,1220px)!important;
  margin:18px auto 26px!important;
  padding:clamp(18px,2.6vw,28px)!important;
  border:1px solid rgba(132,77,0,.18)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#fff 0%,#fbf7f1 100%)!important;
  box-shadow:0 16px 38px rgba(62,39,35,.08)!important;
  color:var(--mbcc-dark)!important;
}

.mbcc-bundle-coupon-panel--cart{
  margin-top:0!important;
}

.mbcc-bundle-coupon-head{
  margin:0 0 16px!important;
}

.mbcc-bundle-coupon-eyebrow{
  display:block!important;
  margin:0 0 5px!important;
  color:var(--mbcc-primary)!important;
  font-size:.72rem!important;
  font-weight:800!important;
  letter-spacing:.17em!important;
  text-transform:uppercase!important;
}

.mbcc-bundle-coupon-head h2{
  margin:0 0 6px!important;
  color:var(--mbcc-dark)!important;
  font-family:var(--mb-font-heading,"Portal","Open Sans",Arial,sans-serif)!important;
  font-size:clamp(1.25rem,2vw,1.7rem)!important;
  line-height:1.2!important;
  letter-spacing:-.025em!important;
}

.mbcc-bundle-coupon-head p{
  margin:0!important;
  max-width:680px!important;
  color:rgba(62,39,35,.70)!important;
  font-size:.92rem!important;
  line-height:1.6!important;
}

.mbcc-bundle-coupon-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:stretch!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

.mbcc-bundle-coupon-form input[name="coupon_code"]{
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  margin:0!important;
  padding:12px 15px!important;
  border:1px solid rgba(132,77,0,.28)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--mbcc-dark)!important;
  font-size:16px!important;
  box-shadow:none!important;
  outline:none!important;
}

.mbcc-bundle-coupon-form input[name="coupon_code"]:focus{
  border-color:var(--mbcc-primary)!important;
  box-shadow:0 0 0 3px rgba(132,77,0,.10)!important;
}

.mbcc-bundle-coupon-form button,
.mbcc-bundle-coupon-form .button{
  min-height:50px!important;
  margin:0!important;
  padding:12px 24px!important;
  border:1px solid var(--mbcc-primary)!important;
  border-radius:12px!important;
  background:var(--mbcc-primary)!important;
  color:#fff!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  box-shadow:none!important;
}

.mbcc-bundle-coupon-form button:hover,
.mbcc-bundle-coupon-form .button:hover{
  background:var(--mbcc-dark)!important;
  border-color:var(--mbcc-dark)!important;
  color:#fff!important;
}

.mbcc-applied-coupons{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:7px!important;
  margin:0 0 12px!important;
  color:rgba(62,39,35,.70)!important;
  font-size:.82rem!important;
}

.mbcc-applied-coupons strong{
  display:inline-flex!important;
  align-items:center!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:rgba(132,77,0,.10)!important;
  color:var(--mbcc-primary)!important;
  font-size:.76rem!important;
  text-transform:uppercase!important;
}

/* WooCommerce Cart / Checkout Blocks: force the native coupon option visible
   if another theme/plugin has hidden it. */
body.mbcc-bundle-coupon-eligible .wc-block-components-totals-coupon,
body.mbcc-bundle-coupon-eligible .wc-block-components-totals-coupon__content,
body.mbcc-bundle-coupon-eligible .wc-block-components-totals-coupon__button{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}

body.mbcc-bundle-coupon-ineligible .wc-block-components-totals-coupon{
  display:none!important;
}

@media(max-width:640px){
  .mbcc-bundle-coupon-panel{
    width:94%!important;
    margin:14px auto 20px!important;
    padding:16px!important;
    border-radius:16px!important;
  }
  .mbcc-bundle-coupon-form{
    grid-template-columns:1fr!important;
  }
  .mbcc-bundle-coupon-form button,
  .mbcc-bundle-coupon-form .button{
    width:100%!important;
  }
}

/* ============================================================
   v2.6.0 — Friendly discount confirmation + updated-total focus
   ============================================================ */
.mbcc-bundle-coupon-message{
  display:none!important;
  margin:14px 0 0!important;
  padding:12px 14px!important;
  border-radius:12px!important;
  font-size:.88rem!important;
  line-height:1.5!important;
}
.mbcc-bundle-coupon-message:not(:empty){display:block!important}
.mbcc-bundle-coupon-message.is-success{
  border:1px solid rgba(42,122,71,.22)!important;
  background:#f2faf4!important;
  color:#245c35!important;
}
.mbcc-bundle-coupon-message.is-error{
  border:1px solid rgba(163,60,48,.22)!important;
  background:#fff4f2!important;
  color:#8b332a!important;
}
.mbcc-bundle-coupon-form button.is-loading,
.mbcc-bundle-coupon-form .button.is-loading{
  opacity:.72!important;
  cursor:wait!important;
}
.mbcc-discount-confirmation-row td{
  padding-top:14px!important;
  border-top:0!important;
}
.mbcc-discount-confirmation{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto!important;
  gap:10px 12px!important;
  align-items:center!important;
  width:100%!important;
  padding:12px 14px!important;
  border:1px solid rgba(42,122,71,.22)!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#f1faf4,#fbfffc)!important;
  color:#244d31!important;
}
.mbcc-discount-check{
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:36px!important;
  border-radius:50%!important;
  background:#2f7c49!important;
  color:#fff!important;
  font-weight:800!important;
  font-size:1rem!important;
}
.mbcc-discount-copy strong{
  display:block!important;
  margin:0 0 2px!important;
  color:#214a2f!important;
  font-size:.9rem!important;
}
.mbcc-discount-copy small{
  display:block!important;
  color:#58705f!important;
  font-size:.76rem!important;
  line-height:1.35!important;
}
.mbcc-discount-saving{
  display:block!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#2f6f43!important;
  font-size:.76rem!important;
  white-space:nowrap!important;
  border:1px solid rgba(42,122,71,.15)!important;
}
.mbcc-discount-saving strong{color:#245c35!important}

/* The section WooCommerce just recalculated receives a temporary visual focus
   so customers instantly see the new discounted total. */
#order_review.mbcc-price-focus,
.cart_totals.mbcc-price-focus,
.wc-block-checkout__sidebar.mbcc-price-focus,
.wc-block-cart__sidebar.mbcc-price-focus{
  position:relative!important;
  border-color:rgba(132,77,0,.58)!important;
  box-shadow:0 0 0 4px rgba(132,77,0,.10),0 22px 56px rgba(62,39,35,.14)!important;
  animation:mbccPriceFocus 1.15s ease 2!important;
}
#order_review.mbcc-price-focus .order-total,
.cart_totals.mbcc-price-focus .order-total,
.wc-block-checkout__sidebar.mbcc-price-focus .wc-block-components-totals-footer-item,
.wc-block-cart__sidebar.mbcc-price-focus .wc-block-components-totals-footer-item{
  background:rgba(132,77,0,.07)!important;
}
@keyframes mbccPriceFocus{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.008)}
}

@media(max-width:640px){
  .mbcc-discount-confirmation{
    grid-template-columns:34px minmax(0,1fr)!important;
  }
  .mbcc-discount-saving{
    grid-column:1 / -1!important;
    justify-self:start!important;
    margin-left:46px!important;
  }
}


/* ============================================================
   v2.7.0 — dynamic coupon code sync + product-level discount price
   ============================================================ */
tr.mbcc-duplicate-coupon-row{
  display:none!important;
}
.mbcc-product-discount-price{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  line-height:1.2!important;
}
.mbcc-product-discount-values{
  display:inline-flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
.mbcc-product-discount-values del{
  color:rgba(62,39,35,.55)!important;
  font-size:.92em!important;
  font-weight:500!important;
  text-decoration-thickness:1.5px!important;
}
.mbcc-product-discount-values ins{
  color:var(--mbcc-primary)!important;
  font-size:1.08em!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.mbcc-product-discount-price small{
  display:block!important;
  color:#2f6f43!important;
  font-size:.68rem!important;
  font-weight:700!important;
  line-height:1.35!important;
}
.mbcc-success-code{
  display:inline-flex!important;
  margin:0 4px!important;
  padding:2px 7px!important;
  border-radius:999px!important;
  background:rgba(42,122,71,.10)!important;
  color:#245c35!important;
  font-size:.78em!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
.woocommerce-checkout-review-order-table tr.cart_item td.product-total,
.woocommerce-cart-form__cart-item td.product-subtotal{
  vertical-align:middle!important;
}
@media(max-width:640px){
  .mbcc-product-discount-values{gap:6px!important}
  .mbcc-product-discount-price small{font-size:.64rem!important}
}
