/* Cart tier table (classic + block) */
.tcd-cart-tiers { margin: 0 0 1.5em; }
.tcd-cart-tiers__current { margin: 0 0 .5em; }
.tcd-tier-table { width: 100%; border-collapse: collapse; margin: 0 0 .5em; }
.tcd-tier-table th, .tcd-tier-table td { padding: .5em .75em; border: 1px solid rgba(0,0,0,.1); text-align: left; }
.tcd-tier-table .tcd-tier--current td { background: #edf7ed; font-weight: 600; }
.tcd-cart-tiers__next { margin: 0 0 .35em; }
.tcd-cart-tiers__next:last-child { margin-bottom: 0; }

/* Cart block banner */
.tcd-block-panel { margin: 0 0 1.5em; }
.tcd-block-panel[hidden] { display: none; }
.tcd-block-banner { background: #edf7ed; border-left: 4px solid #2e7d32; padding: .75em 1em; margin: 0 0 1em; }

/* Product volume table */
.tcd-volume-pricing { margin: 1em 0 1.5em; }
.tcd-volume-pricing__title { margin: 0 0 .5em; }
.tcd-volume-pricing__summary del { opacity: .6; }
.tcd-volume-pricing__summary ins { text-decoration: none; font-weight: 700; }
.tcd-volume-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.tcd-volume-table th, .tcd-volume-table td { padding: .4em .6em; border: 1px solid rgba(0,0,0,.1); text-align: left; }
.tcd-volume-table--compact { font-size: 12px; margin: 0; }

/* Shop badge + tooltip */
.tcd-badge { position: absolute; top: 8px; right: 8px; z-index: 5; display: inline-block; cursor: help; }
li.product, .wc-block-grid__product { position: relative; }
.tcd-badge__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #d63638; color: #fff; font-weight: 700; font-size: 14px; }
.tcd-badge__tooltip { display: none; position: absolute; top: 34px; right: 0; width: 240px; padding: 8px; background: #fff; color: #1e1e1e; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); text-align: left; }
.tcd-badge:hover .tcd-badge__tooltip, .tcd-badge:focus .tcd-badge__tooltip, .tcd-badge:focus-within .tcd-badge__tooltip { display: block; }
.tcd-badge__title { display: block; margin-bottom: 4px; font-size: 13px; }

/* Guest price hiding */
.tcd-hidden-price { font-style: italic; }

/* Mini cart discount lines (inherit the theme's subtotal row styling) */
.tcd-mini-cart-discount .tcd-mini-cart-discount__amount { color: #2e7d32; }
.tcd-mini-cart-after { font-weight: 700; }

/* Mini cart rows added by script (copies of the theme's subtotal row) */
.tcd-mini-row--discount .woocommerce-Price-amount, .tcd-mini-row--discount .amount { color: #2e7d32; }
.tcd-mini-row--simple { display: flex; justify-content: space-between; gap: 1em; margin: .35em 0; }

/*
 * Elementor Pro Menu Cart (side cart). Themes such as Vamtam/Bijoux lay out the cart
 * as a one-column grid and pin every .elementor-menu-cart__subtotal to grid-row 2 and
 * the buttons to grid-row 3. Our rows are copies of the subtotal row, so without this
 * they all land in row 2 side by side and squeeze the product list into a narrow column.
 * Give each row its own grid row and stack them as one block under the subtotal.
 */
.elementor-menu-cart__main .widget_shopping_cart_content:has(> .tcd-mini-row) {
	grid-template-rows: 1fr repeat(4, min-content);
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__main .widget_shopping_cart_content > .elementor-menu-cart__subtotal:has(+ .tcd-mini-row) {
	padding-bottom: 6px;
	border-bottom-width: 0;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__main .widget_shopping_cart_content > .tcd-mini-row {
	grid-column: 1;
	padding-top: 6px;
	padding-bottom: 6px;
	border-top-width: 0;
	border-bottom-width: 0;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__main .widget_shopping_cart_content > .tcd-mini-row--discount {
	grid-row: 3;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__main .widget_shopping_cart_content > .tcd-mini-row--after {
	grid-row: 4;
	padding-bottom: 30px;
	border-bottom-width: var(--subtotal-divider-bottom-width, 1px);
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__main .widget_shopping_cart_content:has(> .tcd-mini-row) > .elementor-menu-cart__footer-buttons {
	grid-row: 5;
}
.elementor-menu-cart__main .tcd-mini-row--discount .amount,
.elementor-menu-cart__main .tcd-mini-row--after .amount { white-space: nowrap; }
