/*
 * Buldog Product Bundles — cart / checkout / account tables.
 * Loaded only on cart, checkout, account pages (see BPB_Assets::needs_cart_styles()).
 */

/* Bundle discount rows in cart product list */
tr.bpb-bundle-discount-row.bpb-cart-discount.bpb-bundle-discount:not(.bpb-bundle-frame) > td {
	border: 1px solid #ddd !important;
	border-radius: 8px;
	padding: 12px 10px !important;
}

.woocommerce-cart-form__contents tr.bpb-bundle-discount-row:not(.bpb-bundle-frame) > td[colspan],
.woocommerce-checkout-review-order-table tbody tr.bpb-bundle-discount-row:not(.bpb-bundle-frame) > td[colspan] {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 12px 10px !important;
}

.woocommerce-cart-form__contents tr.bpb-bundle-discount-row + tr.bpb-bundle-discount-row > td[colspan],
.woocommerce-checkout-review-order-table tbody tr.bpb-bundle-discount-row + tr.bpb-bundle-discount-row > td[colspan] {
	margin-top: 0;
}

/* Cart and checkout discount fee rows */
.cart_totals tr.fee.bpb-cart-discount th,
.cart_totals tr.fee.bpb-cart-discount td,
.woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount th,
.woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td,
.cart_totals tr.fee:has(.bpb-cart-discount-amount) th,
.cart_totals tr.fee:has(.bpb-cart-discount-amount) td,
.woocommerce-checkout-review-order-table tr.fee:has(.bpb-cart-discount-amount) th,
.woocommerce-checkout-review-order-table tr.fee:has(.bpb-cart-discount-amount) td,
.elementor-widget-woocommerce-cart .cart_totals tr.fee.bpb-cart-discount th,
.elementor-widget-woocommerce-cart .cart_totals tr.fee.bpb-cart-discount td,
.elementor-widget-woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) th,
.elementor-widget-woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) td,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee:has(.bpb-cart-discount-amount) th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee:has(.bpb-cart-discount-amount) td {
	border: 1px solid #E2E8F0 !important;
	margin: 10px auto;
	border-radius: 8px;
	padding: 15px 10px !important;
	color: #303030;
	font-weight: 600;
	font-size: 1.3em;
}

.cart_totals tr.fee.bpb-cart-discount td .amount,
.woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td .amount,
.cart_totals tr.fee:has(.bpb-cart-discount-amount) td .amount,
.woocommerce-checkout-review-order-table tr.fee:has(.bpb-cart-discount-amount) td .amount,
.elementor-widget-woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) td .amount,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee:has(.bpb-cart-discount-amount) td .amount {
	color: #303030 !important;
	font-weight: 700;
}

.bpb-has-cart-discount .cart_totals tr.order-total th,
.bpb-has-cart-discount .cart_totals tr.order-total td,
.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.order-total th,
.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.order-total td,
.elementor-widget-woocommerce-cart.bpb-has-cart-discount .cart_totals tr.order-total th,
.elementor-widget-woocommerce-cart.bpb-has-cart-discount .cart_totals tr.order-total td,
.elementor-widget-woocommerce-checkout-page.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.order-total th,
.elementor-widget-woocommerce-checkout-page.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.order-total td {
	font-size: 1.5rem !important;
	font-weight: 700;
}

.bpb-has-cart-discount .cart_totals tr.order-total td .amount,
.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.order-total td .amount,
.elementor-widget-woocommerce-checkout-page.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.order-total .woocommerce-Price-amount {
	font-size: 1.55rem !important;
	font-weight: 700;
}

.bpb-has-cart-discount .cart_totals tr.cart-subtotal th,
.bpb-has-cart-discount .cart_totals tr.cart-subtotal td,
.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.cart-subtotal th,
.bpb-has-cart-discount .woocommerce-checkout-review-order-table tr.cart-subtotal td {
	font-size: 1em;
	font-weight: 500;
}

/* Cart page responsive discount row */
.woocommerce-cart .cart_totals tr.fee.bpb-cart-discount td,
.woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) td,
.elementor-widget-woocommerce-cart .cart_totals tr.fee.bpb-cart-discount td,
.elementor-widget-woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) td,
.cart_totals tr.fee.bpb-cart-discount td,
.woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td {
	width: 100%;
}

.woocommerce-cart .cart_totals tr.fee.bpb-cart-discount td::before,
.woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) td::before,
.elementor-widget-woocommerce-cart .cart_totals tr.fee.bpb-cart-discount td::before,
.elementor-widget-woocommerce-cart .cart_totals tr.fee:has(.bpb-cart-discount-amount) td::before {
	color: #303030 !important;
}

.cart_totals tr.fee.bpb-cart-discount td::before,
.woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td::before,
.elementor-widget-woocommerce-cart .cart_totals tr.fee.bpb-cart-discount td::before,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount td::before {
	content: none !important;
	display: none !important;
}

/* Cart/checkout discount fee cell */
.bpb-cart-discount-cell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	text-align: start;
	font-size: 14px;
	font-weight: 500;
}

.woocommerce-shipping-totals th {
	display: none !important;
}

.bpb-cart-discount-cell-label {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
}

.bpb-cart-discount-cell-amount {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 700;
}

.cart_totals tr.fee.bpb-cart-discount > td[colspan],
.woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount > td[colspan],
.elementor-widget-woocommerce-cart .cart_totals tr.fee.bpb-cart-discount > td[colspan],
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.fee.bpb-cart-discount > td[colspan] {
	width: 100%;
	flex: 1 1 100%;
	max-width: 100%;
}

.cart_totals tr.cart-discount td,
.woocommerce-checkout-review-order-table tr.cart-discount td,
.elementor-widget-woocommerce-cart .cart_totals tr.cart-discount td,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.cart-discount td {
	flex: 0 0 auto;
	white-space: nowrap;
}
