/**
 * What: The header's slide-out cart (Breakdance's mini cart) in the cart page's and checkout's look.
 * Why:  Owner, 2026-10-25: "restyle the slide-out cart to match the new cart page" — grey lines, the
 *       three text sizes, a product name of two lines at most, options on one line, and the total
 *       on the Checkout button (includes/mini-cart.php).
 * How:  Scoped to `.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body`: one class more than
 *       Breakdance's own mini-cart rules, which load after this file and would otherwise win. Nothing
 *       outside the slide-out changes. Loaded on every page, because the header is.
 */

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body {
  --bss-mc-title: 1.125rem;
  --bss-mc-text: 0.9375rem;
  --bss-mc-sub: 0.8125rem;
  --bss-mc-line: var(--bde-woo-forms__inputs-border-color, #d1d5db);
  font-size: var(--bss-mc-text);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas-topbar {
  border-bottom: 1px solid var(--bss-mc-line);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas-title {
  font-size: var(--bss-mc-title);
  font-weight: 700;
}

/* The footer: subtotal on one line, then the checkout button with the total on it. */
.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-offcanvas-footer {
  border-top: 1px solid var(--bss-mc-line);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  font-size: var(--bss-mc-text);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .woocommerce-mini-cart__total strong {
  font-weight: 400;
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .woocommerce-mini-cart__total .amount {
  font-weight: 700;
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .woocommerce-mini-cart__buttons a.bss-mini-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: var(--bde-button-border-radius, 3px);
  font-size: var(--bss-mc-text);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-mini-cart__amount {
  white-space: nowrap;
}

/* The amount on the button takes the button's own colour, not WooCommerce's price colour. */
.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-mini-cart__checkout .amount,
.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-mini-cart__checkout bdi {
  color: inherit;
}

/*
 * Each item is the shared product line (includes/product-line.php, templates/cart/mini-cart.php),
 * in the panel's own sizes. What is here is only what the panel adds: a rule under each item, the
 * Remove link in words, and Breakdance's quantity markup trimmed to its stepper — the line already
 * shows the count (the badge) and the line total (under the picture).
 */
.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-line {
  --bss-line-text: var(--bss-mc-text);
  --bss-line-sub: var(--bss-mc-sub);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bde-mini-cart-item {
  display: block;
  /* Top and bottom only: the panel's own side margin stays. */
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--bss-mc-line);
}

.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-mini-cart__remove .remove {
  display: inline;
  position: static;
  width: auto;
  height: auto;
  color: inherit;
  font-size: var(--bss-mc-sub);
  line-height: 1.3;
  text-decoration: underline;
  opacity: 1;
}

/* Breakdance prints the quantity twice (a stepper and a plain "1 × ₹X") and shows one: here only
   its stepper, without the amount beside it. */
.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-mini-cart__quantity .bde-mini-cart-quantity-simple,
.bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body .bss-mini-cart__quantity .bde-mini-cart-quantity > .amount {
  display: none;
}
