.wdc-mini-discount,.wdc-mini-discount-sync{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0;padding:6px 0;font-size:14px;line-height:1.4}.wdc-mini-discount strong,.wdc-mini-discount-sync strong,.wdc-discount-total{font-weight:600}.wdc-mini-discount-sync{border-top:1px solid rgba(0,0,0,.08)}.wdc-discount-total{white-space:nowrap}

/* WooCommerce renders each internal automatic coupon; show one consolidated Discount row instead. */
.woocommerce-cart .cart-discount[class*="coupon-wdc-auto-"],.woocommerce-checkout .cart-discount[class*="coupon-wdc-auto-"]{display:none!important}

/* WoodMart mobile cart hides table headings and right-aligns the cell.
   Give our summary row its own two-column grid, restoring the native TH
   instead of injecting a pseudo-heading into the right-hand amount cell. */
.wdc-mobile-discount-label{display:none!important}
@media screen and (max-width: 782px){
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    align-items:center!important;
    width:100%!important;
    box-sizing:border-box!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary > th,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary > th{
    display:block!important;
    grid-column:1!important;
    width:auto!important;
    min-width:0!important;
    float:none!important;
    padding-left:0!important;
    padding-right:6px!important;
    margin:0!important;
    text-align:left!important;
    color:#111!important;
    font-weight:600!important;
    visibility:visible!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary > td,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary > td{
    display:block!important;
    grid-column:2!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    float:none!important;
    margin:0!important;
    padding-left:6px!important;
    padding-right:0!important;
    text-align:right!important;
    box-sizing:border-box!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary > td::before,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary > td::before{
    content:none!important;
    display:none!important;
  }
  body.woocommerce-cart .cart_totals tr.wdc-summary .wdc-mobile-discount-label{display:none!important;}
}

/* WoodMart mobile cart: avoid a second short border under the Discount label.
   Keep exactly one divider on the entire summary row. */
@media screen and (max-width: 782px){
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary{
    border-bottom:1px solid #e5e5e5!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary > th,
  body.woocommerce-cart .cart_totals table.shop_table tr.wdc-summary > td,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary > th,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.wdc-summary > td{
    border-bottom:0!important;
    box-shadow:none!important;
  }
}

/* WoodMart side drawer: consistent full-width two-column discount row across browsers.
   Applies both to native mini-cart fragments and the AJAX-sync fallback. */
.cart-widget-side .wdc-mini-discount,
.cart-widget-side .wdc-mini-discount-sync,
.wd-cart-footer .wdc-mini-discount,
.wd-cart-footer .wdc-mini-discount-sync,
.widget_shopping_cart .wdc-mini-discount,
.widget_shopping_cart .wdc-mini-discount-sync,
.woocommerce-mini-cart__total ~ .wdc-mini-discount,
.woocommerce-mini-cart__total ~ .wdc-mini-discount-sync {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  column-gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  clear:both!important;
  float:none!important;
  flex:0 0 100%!important;
  text-align:left!important;
}
.cart-widget-side .wdc-mini-discount > span,
.cart-widget-side .wdc-mini-discount-sync > span,
.widget_shopping_cart .wdc-mini-discount > span,
.widget_shopping_cart .wdc-mini-discount-sync > span {
  display:block!important;
  grid-column:1!important;
  justify-self:start!important;
  min-width:0!important;
  float:none!important;
  text-align:left!important;
  margin:0!important;
}
.cart-widget-side .wdc-mini-discount > strong,
.cart-widget-side .wdc-mini-discount-sync > strong,
.widget_shopping_cart .wdc-mini-discount > strong,
.widget_shopping_cart .wdc-mini-discount-sync > strong {
  display:block!important;
  grid-column:2!important;
  justify-self:end!important;
  float:none!important;
  text-align:right!important;
  white-space:nowrap!important;
  margin:0!important;
}


/* v1.7.1: WoodMart cart shipping - label on the left, amount on the right.
   Suppress location/calculator UI only when a global tier rule applies, never on checkout. */
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping th,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td {
  vertical-align:middle!important;
}
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping th {
  text-align:left!important;
}
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td {
  text-align:right!important;
}
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td ul#shipping_method,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td ul.woocommerce-shipping-methods {
  margin:0!important;padding:0!important;
}
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td ul#shipping_method li,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td ul.woocommerce-shipping-methods li {
  margin:0!important;padding:0!important;list-style:none!important;
}
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td ul#shipping_method label,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td ul.woocommerce-shipping-methods label {
  margin:0!important;display:inline!important;
}
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td .woocommerce-shipping-destination,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td .woocommerce-shipping-calculator,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td .shipping-calculator-button,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td .shipping-calculator-form,
body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping td .woocommerce-shipping-estimate-html {
  display:none!important;
}
@media (max-width:782px){
  body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping {
    display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
    align-items:center!important;column-gap:12px!important;
  }
  body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping > th,
  body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping > td {
    display:block!important;width:auto!important;min-width:0!important;
    margin:0!important;float:none!important;
  }
  body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping > th {grid-column:1!important;text-align:left!important;}
  body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping > td {grid-column:2!important;text-align:right!important;}
  body.woocommerce-cart.wdc-simple-shipping-cart .cart_totals tr.shipping > td::before {content:none!important;display:none!important;}
}

/* Cart-only discount milestone, isolated from totals/shipping layout. */
.woocommerce-cart .wdc-cart-progress{margin:0 0 18px;padding:15px;border:1px solid #eee;border-radius:7px;background:#fff;box-sizing:border-box;width:100%;}
.woocommerce-cart .wdc-cart-progress-message{color:#242424;font-size:13px;line-height:1.5;margin-bottom:10px;overflow-wrap:anywhere;}
.woocommerce-cart .wdc-cart-progress-track{height:9px;border-radius:100px;overflow:hidden;width:100%;}
.woocommerce-cart .wdc-cart-progress-fill{display:block;height:100%;border-radius:inherit;transition:width .25s ease;}

/* Progress is a standalone block after the product table, not within Cart Totals. */
body.woocommerce-cart .woocommerce-cart-form > .wdc-cart-progress,
body.woocommerce-cart .wdc-cart-progress {margin:16px 0 24px;}
