/* ============================================================
   BeerHabits Cart UI
   Cart page layout, Woo cart blocks, mini-cart, cart drawer, drawer toast, and legacy cart panel.
   Checkout-specific styles live in checkout.css. Mobile viewport overrides live in mobile.css.
   ============================================================ */

/* Stage 8: cart page canvas and empty-cart guards moved from product.css. */

body.woocommerce-cart .cart-empty::before,
body.woocommerce-cart .wc-empty-cart-message::before {
	content: "";
	display: block;
	width: min(190px, 54vw);
	aspect-ratio: 1.16;
	margin: 0 auto 18px;
	background: url("../../images/cart/empty-cart.webp") center / contain no-repeat;
	filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.22));
}

body.woocommerce-cart .wc-empty-cart-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(520px, calc(100vw - 48px));
	margin: 28px auto 22px;
	padding: 52px 32px 48px;
	text-align: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 18px;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

body.woocommerce-cart .wc-empty-cart-message .cart-empty.woocommerce-info {
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.08rem;
	line-height: 1.42;
}

body.woocommerce-cart .wc-empty-cart-message .cart-empty strong,
body.woocommerce-cart .wc-empty-cart-message .cart-empty span {
	display: block;
}

body.woocommerce-cart .wc-empty-cart-message .cart-empty strong {
	margin-bottom: 8px;
	color: var(--bh-white);
	font-size: 1.16rem;
}

body.woocommerce-cart .wc-empty-cart-message .cart-empty span {
	color: rgba(230, 244, 250, 0.66);
	font-size: 0.92rem;
}

body.woocommerce-cart .wc-empty-cart-message .cart-empty.woocommerce-info::before {
	display: none;
}

body.woocommerce-cart .return-to-shop {
	margin: 0 auto 46px;
	text-align: center;
}

body.woocommerce-cart .return-to-shop .button.wc-backward {
	min-width: min(280px, calc(100vw - 48px));
	justify-content: center;
}

/* Stage 8: cart page table, totals and benefit layout moved from product.css. */



body.woocommerce-cart .entry-hero,
body.woocommerce-cart .entry-hero-container-inner,
body.woocommerce-cart .entry-header,
body.woocommerce-cart .kadence-breadcrumbs,
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-cart .page-title-wrap,
body.woocommerce-cart .page-title {
	display: none;
}

.bh-cart-hero {
	position: relative;
	margin: 0 auto 28px;
	max-width: 1280px;
	padding: 0 24px;
}
.bh-cart-hero__inner {
	padding: 28px 0 8px;

	min-height: 0;
}
.bh-cart-hero__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 14px;
}
.bh-cart-hero__breadcrumb a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.2s;
}
.bh-cart-hero__breadcrumb a:hover {
	color: var(--bh-accent-strong, var(--bh-accent-strong));
}
.bh-cart-hero__breadcrumb span {
	color: rgba(255, 255, 255, 0.40);
}
.bh-cart-hero__title {
	margin: 0 0 8px;
	font-size: var(--bh-type-h1);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	color: var(--bh-white);
	line-height: var(--bh-leading-h1);
	font-family: var(--bh-font-display);
	letter-spacing: 0;
	text-transform: none;
}
.bh-cart-hero__subtitle {
	margin: 0;
	font-size: 1.0rem;
	line-height: 1.5;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(92, 197, 255, 0.20);
	display: inline-block;
}

body.woocommerce-cart .woocommerce {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px 40px;
}

body.woocommerce-cart .woocommerce-cart-form {
	float: none;
	width: 100%;
	margin: 0;
}
body.woocommerce-cart .cart-collaterals {
	float: none;
	width: 100%;
	margin: 0;
}
body.woocommerce-cart .kadence-woo-cart-form-wrap {
	width: 100%;
	min-width: 0;
}

@media (min-width: 960px) {
	body.woocommerce-cart .woocommerce {
		display: block;
		max-width: 1200px;
		padding-left: 18px;
		padding-right: 18px;
	}
	body.woocommerce-cart .kadence-woo-cart-form-wrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
		gap: 26px;
		align-items: start;
	}
	body.woocommerce-cart .kadence-woo-cart-form-wrap > .woocommerce-cart-form {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	body.woocommerce-cart .kadence-woo-cart-form-wrap > .cart-collaterals {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	body.woocommerce-cart .bh-cart-hero {
		max-width: 1200px;
		margin-bottom: 32px;
		padding-left: 0;
		padding-right: 0;
	}
	body.woocommerce-cart .woocommerce-notices-wrapper {
		width: 100%;
		margin-bottom: 16px;
	}
	body.woocommerce-cart .bh-cart-benefits {
		width: 100%;
	}
}

@media (min-width: 961px) and (max-width: 1180px) {
	body.woocommerce-cart .kadence-woo-cart-form-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-cart .kadence-woo-cart-form-wrap > .woocommerce-cart-form {
		grid-column: 1;
		grid-row: 1;
	}

	body.woocommerce-cart .kadence-woo-cart-form-wrap > .cart-collaterals {
		grid-column: 1;
		grid-row: 2;
		justify-self: end;
		width: min(100%, 520px);
	}

	body.woocommerce-cart .cart_totals {
		position: static;
		top: auto;
	}
}

body.woocommerce-cart table.shop_table {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 18px;
	padding: 8px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
	width: 100%;
	color: rgba(255, 255, 255, 0.85);
}

body.woocommerce-cart table.shop_table.cart {
	table-layout: fixed;
}

body.woocommerce-cart table.shop_table.cart .product-remove {
	width: 42px;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail {
	width: 104px;
}

body.woocommerce-cart table.shop_table.cart .product-price {
	width: 84px;
}

body.woocommerce-cart table.shop_table.cart .product-quantity {
	width: 126px;
}

body.woocommerce-cart table.shop_table.cart .product-subtotal {
	width: 94px;
}
body.woocommerce-cart table.shop_table thead {
	background: transparent;
}
body.woocommerce-cart table.shop_table thead th {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	border-top: none;
	background: transparent;
}
body.woocommerce-cart table.shop_table tbody tr.cart_item {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	transition: background 0.2s ease;
}
body.woocommerce-cart table.shop_table tbody tr.cart_item:first-child {
	border-top: none;
}
body.woocommerce-cart table.shop_table tbody tr.cart_item:hover {
	background: rgba(255, 255, 255, 0.025);
}
body.woocommerce-cart table.shop_table td {
	padding: 18px 16px;
	border: none;
	vertical-align: middle;
	color: rgba(255, 255, 255, 0.85);
}

body.woocommerce-cart table.shop_table td.product-thumbnail {
	width: 100px;
}
body.woocommerce-cart table.shop_table td.product-thumbnail a {
	display: block;
	width: 90px;
	height: 90px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
}
body.woocommerce-cart table.shop_table td.product-thumbnail img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	display: block;
}

body.woocommerce-cart table.shop_table td.product-name a {
	color: var(--bh-white);
	font-size: 1.0rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.3;
}
body.woocommerce-cart table.shop_table td.product-name a:hover {
	color: var(--bh-accent-strong, var(--bh-accent-strong));
}

body.woocommerce-cart table.shop_table td.product-price,
body.woocommerce-cart table.shop_table td.product-subtotal {
	color: var(--bh-white);
	font-size: 1.0rem;
	font-weight: 700;
	text-align: right;
}

	body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: stretch;
	width: 132px;
	height: 46px;
	overflow: hidden;
	border: 1px solid rgba(126, 224, 255, 0.18);
	border-radius: 999px;
	background: rgba(4, 20, 32, 0.52);
}

body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap .bh-qty-minus,
body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap .bh-qty-plus,
body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap input.qty {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bh-white);
	text-align: center;
	font-weight: 700;
}

body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap input.qty[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap input.qty[type="number"]::-webkit-inner-spin-button,
body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap input.qty[type="number"]::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap .bh-qty-minus {
	border-right: 1px solid rgba(126, 224, 255, 0.12);
}

body.woocommerce-cart .woocommerce-cart-form .bh-qty-wrap .bh-qty-plus {
	border-left: 1px solid rgba(126, 224, 255, 0.12);
}

body.woocommerce-cart table.shop_table .product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.50);
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
body.woocommerce-cart table.shop_table .product-remove a.remove:hover {
	background: rgba(232, 64, 64, 0.15);
	border-color: rgba(232, 64, 64, 0.40);
	color: #ff8585;
	transform: scale(1.05);
}

body.woocommerce-cart table.shop_table tr.cart-buttons,
body.woocommerce-cart table.shop_table tr.actions {
	background: transparent;
}
body.woocommerce-cart .coupon {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
body.woocommerce-cart .coupon input.input-text,
body.woocommerce-cart .coupon #coupon_code {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
	color: var(--bh-white);
	border-radius: 10px;
	height: 44px;
	padding: 0 14px;
	min-width: 180px;
	font-weight: 600;
}
body.woocommerce-cart .coupon button.button {
	height: 44px;
	min-height: 44px;
	border: 1px solid rgba(92, 197, 255, 0.28);
	border-radius: 10px;
	padding: 0 18px;
	background: linear-gradient(135deg, #174663, #0d3047);
	color: var(--bh-white);
}

body.woocommerce-cart .coupon button.button:hover,
body.woocommerce-cart .coupon button.button:focus-visible {
	background: linear-gradient(135deg, #1a6087, #10405d);
}

body.woocommerce-cart button[name="update_cart"] {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--bh-white);
	border-radius: 10px;
	height: 44px;
	min-height: 44px;
	padding: 0 20px;
	transition: background 0.2s, border-color 0.2s;
}
body.woocommerce-cart button[name="update_cart"]:hover {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.24);
}

body.woocommerce-cart table.shop_table td.actions .coupon button.button,
body.woocommerce-cart table.shop_table td.actions button[name="update_cart"] {
	display: inline-flex;
}

body.woocommerce-cart .cart_totals {
	background:
	radial-gradient(circle at top right, rgba(15, 139, 203, 0.10), transparent 50%),
	linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
	position: sticky;
	top: 100px;
}
body.woocommerce-cart .cart_totals h2 {
	font-family: var(--bh-font-display);
	font-size: var(--bh-type-panel-title);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	line-height: var(--bh-leading-h3);
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, 0.50);
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stage 8: cart heading polish moved from polish.css into the cart owner. */
body.woocommerce-cart .woocommerce h2,
body.woocommerce-cart .woocommerce h3 {
	font-family: var(--bh-font-display);
	font-size: var(--bh-type-panel-title);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	line-height: var(--bh-leading-h3);
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}

body.woocommerce-cart .cart_totals table.shop_table_responsive,
body.woocommerce-cart .cart_totals table.shop_table {
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
}
body.woocommerce-cart .cart_totals table tr {
	border: none;
}
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	font-size: 0.92rem;
	background: transparent;
}
body.woocommerce-cart .cart_totals table th {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.65);
}
body.woocommerce-cart .cart_totals .order-total th {
	color: var(--bh-white);
	font-weight: 800;
	font-size: 1rem;
}
body.woocommerce-cart .cart_totals .order-total td {
	color: var(--bh-accent-strong, var(--bh-accent-strong));
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
}
body.woocommerce-cart .cart_totals tr.shipping td {
	color: #2ecc71;

}

body.woocommerce-cart .wc-proceed-to-checkout {
	margin: 18px 0 0;
	padding: 0;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	background: linear-gradient(135deg, #f7b84b, var(--bh-amber));
	border: 0;
	color: var(--bh-ink);
	font-size: 1rem;
	font-weight: 800;
	border-radius: 14px;
	box-shadow:
		0 8px 24px rgba(240, 165, 0, 0.26),
	inset 0 1px 0 rgba(255, 255, 255, 0.18);
	transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background: linear-gradient(135deg, #ffc55b, #e99a00);
	transform: translateY(-2px);
	box-shadow:
		0 10px 30px rgba(240, 165, 0, 0.34),
	inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.woocommerce-cart .bh-cart-continue-shopping {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 10px;
	border: 1px solid rgba(126, 224, 255, 0.18);
	border-radius: 14px;
	color: rgba(236, 247, 252, 0.78);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
}

body.woocommerce-cart .bh-cart-continue-shopping:hover,
body.woocommerce-cart .bh-cart-continue-shopping:focus-visible {
	border-color: rgba(126, 224, 255, 0.36);
	color: var(--bh-white);
}

.bh-cart-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 36px 0 0;
	padding: 22px 24px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 18px;
}
.bh-cart-benefits__item {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bh-cart-benefits__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(15, 139, 203, 0.10);
	border: 1px solid rgba(15, 139, 203, 0.20);
	border-radius: 12px;
	color: var(--bh-accent-strong, var(--bh-accent-strong));
}
.bh-cart-benefits__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.bh-cart-benefits__text strong {
	color: var(--bh-white);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 2px;
}
.bh-cart-benefits__text small {
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.3;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info {
	background: rgba(15, 139, 203, 0.10);
	border-left: 3px solid var(--bh-accent-strong, var(--bh-accent-strong));
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.92);
	padding: 14px 18px;
}

/* Coupon/note form-row labels — moved from shop.css, which had no other
   page actually needing this rule (confirmed live: only Cart renders
   .woocommerce form .form-row here). */
body.woocommerce-cart .woocommerce form .form-row label {
	color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
	body.woocommerce-cart .cart_totals {
		position: static;
		margin-top: 24px;
	}
	body.woocommerce-cart table.shop_table thead {
		display: none;
	}
	body.woocommerce-cart table.shop_table tbody tr.cart_item {
		display: grid;
		grid-template-columns: 80px 1fr;
		gap: 12px;
		padding: 14px;
	}
	body.woocommerce-cart table.shop_table tbody tr.cart_item td {
		padding: 4px 0;
		text-align: left;
	}
}



/* Stage 8: WooCommerce Blocks cart skin moved from shop.css. */

body.woocommerce-cart,
.editor-styles-wrapper {
	--bh-cart-bg: var(--bh-page-bg-flat, var(--bh-bg));
	--bh-cart-panel: var(--bh-panel-bg-strong, rgba(17, 43, 62, 0.86));
	--bh-cart-panel-soft: rgba(255, 255, 255, 0.055);
	--bh-cart-border: rgba(92, 197, 255, 0.16);
	--bh-cart-border-strong: rgba(92, 197, 255, 0.28);
	--bh-cart-text: rgba(245, 252, 255, 0.92);
	--bh-cart-muted: rgba(216, 234, 243, 0.66);
	--bh-cart-accent: var(--bh-accent, var(--bh-accent));
	--bh-cart-gold: #f4b535;
}
body.woocommerce-cart .entry-content,
.editor-styles-wrapper .wp-block-woocommerce-cart {
	width: min(1240px, calc(100vw - 44px));
	margin: 0 auto;
	padding: clamp(28px, 4vw, 58px) 0;
}

body.woocommerce-cart .cart_totals small.includes_tax {
	color: var(--bh-text-soft);
}
body.woocommerce-cart .entry-title,
.editor-styles-wrapper h1.wp-block-post-title {
	width: min(1240px, calc(100vw - 44px));
	margin: 0 auto;
	padding-top: clamp(26px, 4vw, 56px);
	color: var(--bh-white);
	font-family: var(--bh-font-display);
	font-size: var(--bh-type-h1);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	line-height: var(--bh-leading-h1);
	letter-spacing: 0;
	text-transform: none;
	text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}
body.woocommerce-cart .wc-block-cart,
.editor-styles-wrapper .wc-block-cart {
	position: relative;
	padding: clamp(18px, 3vw, 34px);
	border: 1px solid var(--bh-cart-border);
	border-radius: 34px;
	background:
	linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(92, 197, 255, 0.045)),
	rgba(5, 24, 38, 0.78);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
	overflow: hidden;
}
body.woocommerce-cart .wc-block-cart::before,
.editor-styles-wrapper .wc-block-cart::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
	radial-gradient(circle at 16% 0%, rgba(92, 197, 255, 0.12), transparent 26rem),
	radial-gradient(circle at 96% 10%, rgba(244, 181, 53, 0.08), transparent 24rem);
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
.editor-styles-wrapper .wc-block-cart__main,
.editor-styles-wrapper .wc-block-cart__sidebar {
	position: relative;
	z-index: 1;
}
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar,
body.woocommerce-cart .wc-block-components-order-summary,
body.woocommerce-cart .wc-block-components-totals-wrapper,
.editor-styles-wrapper .wc-block-cart-items,
.editor-styles-wrapper .wc-block-components-sidebar {
	border-color: var(--bh-cart-border);
	color: var(--bh-cart-text);
}
body.woocommerce-cart .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-components-totals-coupon,
body.woocommerce-cart .wc-block-components-order-summary-item,
.editor-styles-wrapper .wc-block-cart-items__header,
.editor-styles-wrapper .wc-block-cart-items__row {
	border-color: rgba(255, 255, 255, 0.10);
}
body.woocommerce-cart .wc-block-cart-items__header th,
body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-order-summary-item__description,
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-formatted-money-amount,
body.woocommerce-cart .wc-block-components-panel__button,
.editor-styles-wrapper .wc-block-cart,
.editor-styles-wrapper .wc-block-cart * {
	color: var(--bh-cart-text);
}
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata *,
body.woocommerce-cart .wc-block-components-totals-shipping__via,
body.woocommerce-cart .wc-block-components-totals-item__description,
body.woocommerce-cart .wc-block-components-panel__button{
	color: var(--bh-cart-muted);
}
body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart .wc-block-components-order-summary-item__image img,
.wc-block-grid__product-image img,
.editor-styles-wrapper .wc-block-cart-item__image img {
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}
body.woocommerce-cart .wc-block-components-quantity-selector,
.editor-styles-wrapper .wc-block-components-quantity-selector {
	min-height: 42px;
	border: 1px solid var(--bh-cart-border-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.065);
	overflow: hidden;
}
body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .wc-block-components-quantity-selector button{
	color: var(--bh-white);
	background: transparent;
}
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart .wc-block-components-product-low-stock-badge,
body.woocommerce-cart .wc-block-components-button.is-link{
	color: #80ddff;
}

body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar,
.editor-styles-wrapper .wc-block-cart .wc-block-components-sidebar {
	padding: clamp(20px, 2vw, 30px);
	border: 1px solid var(--bh-cart-border);
	border-radius: 28px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(92, 197, 255, 0.04));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button:not(.is-link),
.editor-styles-wrapper .wc-block-cart__submit-button {
	min-height: 54px;
	border: 0;
	border-radius: 17px;
	background: linear-gradient(135deg, #22b7f0, #0589c8);
	color: var(--bh-white);
	font-weight: 900;
	box-shadow: 0 16px 34px rgba(34, 174, 232, 0.30);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-components-button:not(.is-link):hover{
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 20px 44px rgba(34, 174, 232, 0.38);
}
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-textarea,
body.woocommerce-cart .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-cart .wc-block-components-country-input input,
body.woocommerce-cart .wc-block-components-state-input input,
body.woocommerce-cart .wc-block-components-address-form input{
	border: 1px solid var(--bh-cart-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--bh-white);
}
body.woocommerce-cart .wc-block-components-text-input label,
body.woocommerce-cart .wc-block-components-checkbox label,
body.woocommerce-cart .wc-block-components-radio-control__label,
body.woocommerce-cart .wc-block-components-address-card,
body.woocommerce-cart .wc-block-components-payment-method-label,
body.woocommerce-cart .wc-block-components-validation-error,
body.woocommerce-cart .wc-block-components-notice-banner{
	color: var(--bh-cart-text);
}
.wp-block-woocommerce-cart-cross-sells-block,
.wc-block-grid__products,
.editor-styles-wrapper .wp-block-woocommerce-cart-cross-sells-block {
	position: relative;
	z-index: 1;
}
.wp-block-woocommerce-cart-cross-sells-block h2,
.wp-block-woocommerce-cart-cross-sells-block h3,
body.woocommerce-cart .wc-block-cart__cross-sells-title{
	margin-top: 26px;
	color: var(--bh-white);
	font-family: var(--bh-font-display);
	font-size: var(--bh-type-h2);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	line-height: var(--bh-leading-h2);
	letter-spacing: 0;
	text-transform: none;
}
.wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.wc-block-grid__product {
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.055);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
.wc-block-grid__product-title,
.wc-block-grid__product-price {
	color: var(--bh-white);
}
.editor-styles-wrapper .wp-block-woocommerce-cart .block-list-appender {
	display: none;
}

@media (max-width: 768px) {
	body.woocommerce-cart .entry-content,
	.editor-styles-wrapper .wp-block-woocommerce-cart {
		width: min(100%, calc(100vw - 28px));
		padding-block: 22px;
	}
	body.woocommerce-cart .wc-block-cart,
	.editor-styles-wrapper .wc-block-cart {
		padding: 16px;
		border-radius: 24px;
	}
	.wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	body.woocommerce-cart.content-style-boxed article.entry.content-bg:not(.loop-entry) {
		width: 100%;
		margin-right: 0;
		margin-left: 0;
	}

	/* Stage 8: мобильная раскладка таблицы корзины перенесена из dark-surfaces.css. */
	body.woocommerce-cart table.shop_table.cart {
		display: block;
		width: 100%;
		border: 0;
		border-radius: 20px;
		background: transparent;
		box-shadow: none;
		overflow: visible;
	}

	body.woocommerce-cart table.shop_table.cart thead {
		display: none;
	}

	body.woocommerce-cart table.shop_table.cart tbody {
		display: grid;
		gap: 12px;
		width: 100%;
	}

	body.woocommerce-cart table.shop_table.cart tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr);
		grid-template-areas:
			"thumb name"
			"price price"
			"qty subtotal";
		gap: 8px 11px;
		width: 100%;
		min-height: 0;
		padding: 12px 40px 12px 12px;
		border: 1px solid rgba(126, 224, 255, 0.16);
		border-radius: 18px;
		background:
			radial-gradient(circle at 8% 12%, rgba(53, 202, 255, 0.10), transparent 32%),
			linear-gradient(180deg, rgba(18, 45, 63, 0.98), rgba(8, 28, 43, 0.98));
		box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
	}

	body.woocommerce-cart table.shop_table.cart td {
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
		color: rgba(255, 255, 255, 0.82);
		text-align: left;
	}

	body.woocommerce-cart table.shop_table.cart td::before {
		content: none;
		display: none;
	}

	body.woocommerce-cart table.shop_table.cart td.product-remove {
		position: absolute;
		top: 10px;
		right: 10px;
		z-index: 2;
	}

	body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid rgba(126, 224, 255, 0.18);
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.055);
		color: rgba(255, 255, 255, 0.72);
		font-size: 1rem;
		line-height: 1;
		text-decoration: none;
	}

	body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
		grid-area: thumb;
		align-self: start;
	}

	body.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
	body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
		display: block;
		width: 80px;
		height: 80px;
	}

	body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
		object-fit: cover;
		border: 1px solid rgba(126, 224, 255, 0.16);
		border-radius: 14px;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	}

	body.woocommerce-cart table.shop_table.cart td.product-name {
		grid-area: name;
		align-self: end;
		padding-right: 48px;
	}

	body.woocommerce-cart table.shop_table.cart td.product-name a {
		display: block;
		color: #fff;
		font-size: 0.92rem;
		font-weight: 800;
		line-height: 1.18;
		text-decoration: none;
		overflow-wrap: anywhere;
	}

	body.woocommerce-cart table.shop_table.cart td.product-price {
		grid-area: price;
		align-self: stretch;
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-width: 0;
		padding-top: 8px;
		border-top: 1px solid rgba(126, 224, 255, 0.10);
		text-align: right;
	}

	body.woocommerce-cart table.shop_table.cart td.product-price::before {
		content: attr(data-title);
		display: inline-block;
		color: rgba(255, 255, 255, 0.55);
		font-size: 0.68rem;
		font-weight: 800;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}

	body.woocommerce-cart table.shop_table.cart td.product-price .amount {
		color: rgba(255, 255, 255, 0.80);
		font-size: 0.86rem;
		font-weight: 800;
	}

	body.woocommerce-cart table.shop_table.cart td.product-quantity {
		grid-area: qty;
		align-self: center;
	}

	body.woocommerce-cart table.shop_table.cart td.product-quantity::before {
		content: "Kogus:";
		display: block;
		margin-bottom: 5px;
		color: rgba(255, 255, 255, 0.55);
		font-size: 0.68rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.03em;
	}

	body.woocommerce-cart table.shop_table.cart .bh-qty-wrap {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		width: 132px;
		height: 46px;
		min-height: 46px;
		border-radius: 999px;
		background: rgba(4, 20, 32, 0.45);
	}

	body.woocommerce-cart table.shop_table.cart .bh-qty-wrap .bh-qty-minus,
	body.woocommerce-cart table.shop_table.cart .bh-qty-wrap .bh-qty-plus,
	body.woocommerce-cart table.shop_table.cart .bh-qty-wrap input.qty {
		width: 100%;
		min-width: 0;
		height: 100%;
		font-size: 0.82rem;
	}

	body.woocommerce-cart table.shop_table.cart td.product-subtotal {
		grid-area: subtotal;
		align-self: end;
		justify-self: end;
		display: grid;
		grid-template-columns: auto auto;
		align-items: baseline;
		gap: 6px;
		text-align: right;
	}

	body.woocommerce-cart table.shop_table.cart td.product-subtotal::before {
		content: "Vahesumma:";
		display: inline-flex;
		margin-bottom: 0;
		color: rgba(255, 255, 255, 0.55);
		font-size: 0.68rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.03em;
	}

	body.woocommerce-cart table.shop_table.cart td.product-subtotal .amount {
		color: #fff;
		font-size: 0.92rem;
		font-weight: 900;
	}

	body.woocommerce-cart table.shop_table.cart tr:not(.cart_item),
	body.woocommerce-cart table.shop_table.cart td.actions {
		display: block;
		width: 100%;
	}

	body.woocommerce-cart table.shop_table.cart td.actions {
		display: grid;
		gap: 10px;
		margin-top: 2px;
		padding: 10px;
		border: 0;
		border-radius: 14px;
		background: rgba(7, 25, 39, 0.5);
	}

	body.woocommerce-cart .coupon {
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 104px;
		gap: 8px;
		width: 100%;
	}

	body.woocommerce-cart .woocommerce table.shop_table.cart td.actions .coupon > label.screen-reader-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	body.woocommerce-cart .coupon input.input-text,
	body.woocommerce-cart button[name="update_cart"] {
		width: 100%;
		min-width: 0;
		min-height: 42px;
		border-radius: 12px;
		text-align: center;
		float: none;
	}

	body.woocommerce-cart .woocommerce table.shop_table.cart td.actions .coupon input.input-text {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		min-width: 0;
		margin: 0;
		float: none;
	}

	body.woocommerce-cart .woocommerce table.shop_table.cart td.actions .coupon button.button {
		grid-column: 2;
		grid-row: 1;
		width: auto;
		min-width: 104px;
		min-height: 42px;
		margin: 0;
		padding-inline: 14px;
		float: none;
	}

	body.woocommerce-cart .coupon + button[name="update_cart"],
	body.woocommerce-cart button[name="update_cart"] {
		margin-top: 0;
	}

	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-cart .cart_totals {
		width: 100%;
		max-width: 100%;
		border-radius: 20px;
	}

	body.woocommerce-cart .cart_totals {
		position: static;
		padding: 18px;
	}

	body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
		min-height: 52px;
		border-radius: 14px;
		font-size: 0.96rem;
	}
}

body.bh-drawer-open {
	overflow: hidden;
}
.bh-cart-overlay {
	position: fixed;
	inset: 0px;
	background: rgba(13, 43, 62, 0.45);
	z-index: 10010;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	backdrop-filter: blur(2px);
}
.bh-cart-overlay.is-open {
	opacity: 1;
	pointer-events: all;
}
.bh-cart-drawer {
	position: fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	width: 400px;
	max-width: 100vw;
	background: var(--bh-white);
	box-shadow: rgba(10, 50, 72, 0.18) -8px 0px 48px;
	z-index: 10020;
	transform: translateX(100%);
	transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
}
.bh-cart-drawer.is-open {
	transform: translateX(0px);
}
.bh-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(11, 56, 82, 0.08);
	flex-shrink: 0;
}
.bh-cart-drawer__title {
	font-family: var(--bh-font-display);
	font-size: var(--bh-type-panel-title);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	line-height: var(--bh-leading-h3);
	letter-spacing: 0;
	text-transform: none;
	color: var(--bh-text, #0d2b3e);
	margin: 0px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bh-cart-drawer__count {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--bh-text-soft, #4a7085);
}
.bh-cart-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-width: medium;
	border-style: none;
	border-color: currentcolor;
	border-image: initial;
	background: rgba(11, 56, 82, 0.06);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.18s;
	color: var(--bh-text-soft, #4a7085);
	flex-shrink: 0;
}
.bh-cart-drawer__close:hover {
	background: rgba(11, 56, 82, 0.12);
}
.bh-cart-drawer__body {
	flex: 1 1 0%;
	overflow-y: auto;
}
.bh-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart {
	list-style: none;
	margin: 0px;
	padding: 0px;
}
.bh-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 24px;
	border-bottom: 1px solid rgba(11, 56, 82, 0.06);
	transition: background 0.18s;
}
.bh-cart-drawer .woocommerce-mini-cart-item:hover {
	background: rgba(11, 56, 82, 0.016);
}
.bh-cart-drawer .woocommerce-mini-cart-item a:first-child {
	display: block;
	flex-shrink: 0;
}
.bh-cart-drawer .woocommerce-mini-cart-item a,
.bh-cart-drawer__total-price {
	color: #fff;
}
.bh-cart-drawer .woocommerce-mini-cart-item img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid rgba(11, 56, 82, 0.06);
}
.bh-cart-drawer .woocommerce-mini-cart-item .mini_cart_item_name, .bh-cart-drawer .woocommerce-mini-cart-item a:not(.remove_from_cart_button):not(:first-child) {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--bh-text, #0d2b3e);
	text-decoration: none;
	display: block;
	margin-bottom: 4px;
	transition: color 0.18s;
}
.bh-cart-drawer .woocommerce-mini-cart-item a:not(.remove_from_cart_button):hover {
	color: var(--bh-accent, var(--bh-accent-deep));
}
.bh-cart-drawer .woocommerce-mini-cart-item .quantity {
	font-size: 0.82rem;
	color: var(--bh-text-soft, #4a7085);
}
.bh-cart-drawer .woocommerce-mini-cart-item .quantity .amount {
	font-weight: 700;
	color: var(--bh-text, #0d2b3e);
}
.bh-cart-drawer .remove_from_cart_button {
	color: rgba(11, 56, 82, 0.22);
	font-size: 1.1rem;
	text-decoration: none;
	transition: color 0.18s;
	flex-shrink: 0;
	margin-left: auto;
}
.bh-cart-drawer .remove_from_cart_button:hover {
	color: rgb(232, 64, 64);
}
.bh-cart-drawer .woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 56px 24px;
	color: var(--bh-text-soft, #4a7085);
	font-size: 0.95rem;
}
.bh-cart-drawer .woocommerce-mini-cart__total, .bh-cart-drawer .woocommerce-mini-cart__buttons {
	display: none;
}
.bh-cart-drawer__footer {
	padding: 20px 24px;
	border-top: 1px solid rgba(11, 56, 82, 0.08);
	flex-shrink: 0;
	background: var(--bh-white);
}
.bh-cart-drawer__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}
.bh-cart-drawer__total-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bh-text-soft, #4a7085);
}
.bh-cart-drawer__total-price {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--bh-text, #0d2b3e);
}
.bh-cart-drawer__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bh-cart-drawer__checkout {
	display: block;
	text-align: center;
	padding: 14px;
	background: var(--bh-accent, var(--bh-accent-deep));
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	box-shadow: rgba(15, 139, 203, 0.3) 0px 4px 18px;
	transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
	color: var(--bh-white);
	text-decoration: none;
}
.bh-cart-drawer__checkout:hover {
	background: var(--bh-accent-deep, #0b72a8);
	transform: translateY(-1px);
	box-shadow: rgba(15, 139, 203, 0.38) 0px 6px 24px;
}
.bh-cart-drawer__view-cart {
	display: block;
	text-align: center;
	padding: 12px;
	border: 1.5px solid rgba(11, 56, 82, 0.14);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: border-color 0.18s, color 0.18s;
	color: var(--bh-text, #0d2b3e);
	text-decoration: none;
}
.bh-cart-drawer__view-cart:hover {
	border-color: var(--bh-accent, var(--bh-accent-deep));
	color: var(--bh-accent, var(--bh-accent-deep));
}
.bh-cart-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--bh-white);
	border-left: 4px solid rgb(34, 197, 94);
	border-radius: 14px;
	box-shadow: rgba(10, 50, 72, 0.18) 0px 8px 36px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 10000;
	transform: translateY(120px);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s;
	max-width: 320px;
	min-width: 240px;
	pointer-events: none;
}
.bh-cart-toast.is-visible {
	transform: translateY(0px);
	opacity: 1;
	pointer-events: all;
}
.bh-cart-toast__icon {
	width: 34px;
	height: 34px;
	background: rgba(34, 197, 94, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: rgb(34, 197, 94);
}
.bh-cart-toast__text {
	flex: 1 1 0%;
	min-width: 0px;
}
.bh-cart-toast__name {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--bh-text, #0d2b3e);
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bh-cart-toast__view {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--bh-accent, var(--bh-accent-deep));
	text-decoration: none;
}
.bh-cart-toast__view:hover {
	text-decoration: underline;
}
.bh-cart-overlay {
	background: rgba(0, 0, 0, 0.55);
}
.bh-cart-drawer {
	color: rgba(255, 255, 255, 0.85);
	background: rgba(7, 24, 39, 0.98);
	box-shadow: rgba(0, 0, 0, 0.55) -8px 0px 64px;
}
.bh-cart-drawer__head {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}
.bh-cart-drawer__title {
	color: var(--bh-white);
}
.bh-cart-drawer__count {
	color: rgba(255, 255, 255, 0.55);
}
.bh-cart-drawer__close {
	position: relative;
	z-index: 3;
	width: 42px;
	height: 42px;
	box-shadow: rgba(0, 0, 0, 0.25) 0px 12px 26px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.14);
}
.bh-cart-drawer__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--bh-white);
}
.bh-cart-drawer__close svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke: currentcolor;
}
.bh-cart-drawer .woocommerce-mini-cart-item {
	border-bottom-color: rgba(255, 255, 255, 0.06);
}
.bh-cart-drawer .woocommerce-mini-cart-item:hover {
	background: rgba(255, 255, 255, 0.03);
}
.bh-cart-drawer .woocommerce-mini-cart-item img {
	border-color: rgba(255, 255, 255, 0.06);
}
.bh-cart-drawer .woocommerce-mini-cart-item .mini_cart_item_name, .bh-cart-drawer .woocommerce-mini-cart-item a:not(.remove_from_cart_button):not(:first-child) {
	color: rgba(255, 255, 255, 0.92);
}
.bh-cart-drawer .woocommerce-mini-cart-item .quantity {
	color: rgba(255, 255, 255, 0.55);
}
.bh-cart-drawer .woocommerce-mini-cart-item .quantity .amount {
	color: var(--bh-white);
}
.bh-cart-drawer .remove_from_cart_button {
	color: rgba(255, 255, 255, 0.3);
}
.bh-cart-drawer .woocommerce-mini-cart__empty-message {
	color: rgba(255, 255, 255, 0.55);
}
.bh-cart-drawer__footer {
	background: rgba(7, 24, 39, 0.98);
	border-top-color: rgba(255, 255, 255, 0.08);
}
.bh-cart-drawer__total-label {
	color: rgba(255, 255, 255, 0.65);
}
.bh-cart-drawer__total-price {
	color: var(--bh-white);
}
.bh-cart-drawer__view-cart {
	border-color: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.85);
}
.bh-cart-drawer__view-cart:hover {
	border-color: var(--bh-accent-strong);
	color: var(--bh-accent-strong);
}
.bh-cart-toast {
	backdrop-filter: blur(14px);
	background: rgba(7, 24, 39, 0.96);
	box-shadow: rgba(0, 0, 0, 0.55) 0px 8px 36px;
	border-left: 4px solid rgb(34, 197, 94);
}
.bh-cart-toast__name {
	color: var(--bh-white);
}
.bh-cart-toast__view {
	color: var(--bh-accent-strong);
}
.bh-cart {
	position: relative;
	z-index: 200;
}







@keyframes bh-badge-pop {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	60% {
		transform: scale(1.18);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
















.bh-mini-cart__item, .woocommerce-mini-cart-item.bh-mini-cart__item {
	position: relative;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	transition: background 0.24s, border-color 0.24s, transform 0.24s, box-shadow 0.24s;
	display: flex;
	align-items: stretch;
	gap: 18px;
	padding: 18px 20px;
	margin: 0px;
}
.bh-mini-cart__item:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(92, 197, 255, 0.18);
	transform: translateY(-1px);
	box-shadow: rgba(0, 0, 0, 0.22) 0px 8px 24px;
}
.bh-mini-cart__item.is-updating {
	opacity: 0.6;
	transition: opacity 0.18s;
}
.bh-mini-cart__image {
	flex-shrink: 0;
	display: block;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: rgba(255, 255, 255, 0.04) 0px 1px 0px inset;
}
.bh-mini-cart__image img {
	object-fit: cover;
	display: block;
	transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
	width: 80px;
	height: 80px;
	border-radius: 0px;
	margin: 0px;
}
.bh-mini-cart__item:hover .bh-mini-cart__image img {
	transform: scale(1.08);
}
.bh-mini-cart__body {
	flex: 1 1 0%;
	min-width: 0px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	padding-right: 36px;
}
.bh-mini-cart__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}
.bh-mini-cart__title-wrap {
	flex: 1 1 0%;
	min-width: 0px;
}
.bh-mini-cart__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.18s;
	letter-spacing: -0.005em;
	color: var(--bh-white);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	margin: 0px;
}
.bh-mini-cart__title:hover {
	color: var(--bh-accent-strong, var(--bh-accent-strong));
}
.bh-mini-cart__subtitle {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.48);
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0.01em;
	margin: 6px 0px 0px;
}
.bh-mini-cart__remove {
	align-items: center;
	justify-content: center;
	line-height: 1;
	opacity: 0.72;
	transition: opacity 0.22s, background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	width: 44px;
	height: 44px;
	margin: 0px;
	padding: 0px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.58);
	text-decoration: none;
	font-size: 0px;
}
.bh-mini-cart__item:hover .bh-mini-cart__remove {
	opacity: 1;
}
.bh-mini-cart__remove:hover {
	transform: none;
	background: rgba(232, 64, 64, 0.12);
	color: rgb(255, 133, 133);
}
.bh-mini-cart__remove svg {
	display: block;
	transition: transform 0.22s;
	width: 18px;
	height: 18px;
	stroke: currentcolor;
	fill: none;
}
.bh-mini-cart__remove svg * {
	stroke: currentcolor;
	fill: none;
}
.bh-mini-cart__remove::after, .bh-mini-cart__remove::before {
	content: none;
}


.bh-mini-cart__item:hover a.remove:not(.bh-mini-cart__remove) {
	opacity: 1;
}

.bh-mini-cart__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.bh-mini-cart__qty {
	display: inline-flex;
	align-items: center;
	gap: 0px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 10px;
	padding: 3px;
	box-shadow: rgba(255, 255, 255, 0.04) 0px 1px 0px inset;
}
.bh-mini-cart__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0px;
	border: 0px;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	border-radius: 7px;
	transition: background 0.18s, color 0.18s, transform 0.18s;
}
.bh-mini-cart__qty-btn:hover {
	background: rgba(92, 197, 255, 0.18);
	color: var(--bh-white);
}
.bh-mini-cart__qty-btn:active {
	transform: scale(0.92);
}
.bh-mini-cart__qty-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
.bh-mini-cart__qty-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 44px;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--bh-white);
	text-align: center;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bh-mini-cart__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.bh-mini-cart__price-total {
	color: var(--bh-white);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
}
.bh-mini-cart__price-unit {
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.bh-mini-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 40px 24px;
	text-align: center;
}
.bh-mini-cart__empty-icon {
	width: 128px;
	height: 112px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 22px;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 4px;
	overflow: hidden;
}
.bh-mini-cart__empty-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.bh-mini-cart__empty-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--bh-white);
	margin: 0px;
}
.bh-mini-cart__empty-desc {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 0px;
}
.bh-mini-cart__empty .bh-cart-btn {
	margin-top: 8px;
}







.bh-cart-btn {
	--bh-button-gap: 4px;
	--bh-button-min-height: 48px;
	--bh-button-padding: 0 10px;
	--bh-button-radius: 12px;
	--bh-button-font-size: 0.8rem;
	--bh-button-font-weight: 700;
	--bh-button-letter-spacing: 0;
	--bh-button-transition: background 0.26s ease,
	border-color 0.26s ease,
	transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
	box-shadow 0.26s ease,
	color 0.26s ease;
	position: relative;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	gap: var(--bh-button-gap);
	cursor: pointer;
	transition: var(--bh-button-transition);
	white-space: nowrap;
	text-align: center;
	display: inline-flex;
	min-height: var(--bh-button-min-height);
	padding: var(--bh-button-padding);
	font-size: var(--bh-button-font-size);
	font-weight: var(--bh-button-font-weight);
	letter-spacing: var(--bh-button-letter-spacing);
	text-decoration: none;
	border-radius: var(--bh-button-radius);
}
.bh-cart-btn > span {
	white-space: nowrap;
	overflow: visible;
}

@container (max-width: 200px) {
	.bh-cart-btn svg {
		display: none;
	}
}


.bh-cart-btn--primary {
	--bh-button-primary-bg: linear-gradient(180deg, var(--bh-accent) 0%, var(--bh-accent-deep) 100%);
	--bh-button-primary-border: 1px solid rgba(92, 197, 255, 0.30);
	--bh-button-primary-color: var(--bh-white);
	--bh-button-primary-shadow: 0 8px 20px rgba(15, 139, 203, 0.28),
	inset 0 1px 0 rgba(255, 255, 255, 0.16);
	background: var(--bh-button-primary-bg);
	border: var(--bh-button-primary-border);
	color: var(--bh-button-primary-color);
	box-shadow: var(--bh-button-primary-shadow);
}
.bh-cart-btn--primary:hover {
	transform: translateY(-2px);
	background: var(--bh-button-primary-hover-bg, linear-gradient(180deg, var(--bh-accent-strong) 0%, var(--bh-accent) 100%));
	box-shadow: var(--bh-button-primary-hover-shadow, 0 10px 28px rgba(15, 139, 203, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.26));
}
.bh-cart-btn--primary:active {
	transform: translateY(0px);
}
.bh-cart-btn--primary::after {
	content: "";
	position: absolute;
	top: 0px;
	left: -100%;
	width: 70%;
	height: 100%;
	background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
	transform: skewX(-20deg);
	transition: left 0.7s;
	pointer-events: none;
}
.bh-cart-btn--primary:hover::after {
	left: 130%;
}
.bh-cart-btn svg {
	flex-shrink: 0;
	opacity: 0.85;
	transition: transform 0.26s;
}
.bh-cart-btn:hover svg {
	transform: translateX(2px);
}






/* Stage 8: финальные тёмные поверхности mini-cart/drawer перенесены из dark-surfaces.css в cart owner. */
.bh-cart-drawer,
.bh-cart-drawer__footer,
.bh-cart-toast {
	border-color: var(--bh-surface-border);
	background: linear-gradient(165deg, #0e2c40, #061927);
	color: var(--bh-text, rgba(255,255,255,0.82));
}

.bh-cart-drawer .woocommerce-mini-cart-item{
	border-color: rgba(126, 224, 255, 0.12);
	background: rgba(255, 255, 255, 0.045);
}

/* Stage 8: cart drawer compact polish belongs to cart.css, not the legacy dark layer. */
.bh-cart-drawer {
	display: flex;
	flex-direction: column;
	width: min(390px, 100vw);
	max-width: 100vw;
	overflow: hidden;
	background:
		radial-gradient(circle at 16% 0%, rgba(92, 197, 255, 0.12), transparent 34%),
		linear-gradient(180deg, rgba(13, 45, 66, 0.98), rgba(4, 18, 29, 0.995));
	box-shadow: -18px 0 70px rgba(0, 0, 0, 0.58);
}

body.admin-bar .bh-cart-drawer {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

.bh-cart-drawer__head {
	min-height: 74px;
	padding: 20px 22px 14px;
	border-bottom: 1px solid rgba(126, 224, 255, 0.12);
	background: rgba(2, 13, 24, 0.22);
}

.bh-cart-drawer__title {
	gap: 7px;
	font-size: var(--bh-type-panel-title);
	line-height: var(--bh-leading-h3);
	letter-spacing: 0;
}

.bh-cart-drawer__count {
	font-size: 0.82rem;
	line-height: 1;
	transform: translateY(-2px);
}

.bh-cart-drawer__close {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.075);
}

.bh-cart-drawer__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 12px 12px 18px;
	overflow-y: auto;
	background:
		linear-gradient(180deg, rgba(92, 197, 255, 0.035), transparent 26%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 34%);
	scrollbar-width: thin;
}

.bh-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart,
.bh-cart-drawer .widget_shopping_cart_content .bh-mini-cart {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bh-cart-drawer .bh-mini-cart__item,
.bh-cart-drawer .woocommerce-mini-cart-item.bh-mini-cart__item {
	gap: 12px;
	align-items: center;
	min-height: 96px;
	padding: 12px 14px;
	border: 1px solid rgba(126, 224, 255, 0.13);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
		rgba(10, 39, 58, 0.74);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bh-cart-drawer .bh-mini-cart__image {
	width: 68px;
	height: 68px;
	border-radius: 14px;
}

.bh-cart-drawer .woocommerce-mini-cart-item .bh-mini-cart__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: inherit;
	object-fit: cover;
}

.bh-cart-drawer .bh-mini-cart__body {
	gap: 9px;
	padding-right: 50px;
}

.bh-cart-drawer .bh-mini-cart__title {
	font-size: 0.88rem;
	line-height: 1.22;
	-webkit-line-clamp: 2;
}

.bh-cart-drawer .bh-mini-cart__subtitle,
.bh-cart-drawer .variation {
	display: none;
}

.bh-cart-drawer .bh-mini-cart__remove {
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: transparent;
}

.bh-cart-drawer .bh-mini-cart__bottom {
	align-items: center;
	gap: 10px;
}

.bh-cart-drawer .bh-mini-cart__qty {
	border-color: rgba(126, 224, 255, 0.14);
	background: rgba(255, 255, 255, 0.055);
}

.bh-cart-drawer .bh-mini-cart__qty-btn {
	width: 44px;
	min-width: 44px;
	height: 44px;
}

.bh-cart-drawer .bh-mini-cart__qty-value {
	width: 32px;
	min-width: 32px;
	height: 44px;
}

.bh-cart-drawer .bh-mini-cart__price-total {
	font-size: 0.98rem;
	white-space: nowrap;
}

.bh-cart-drawer .bh-mini-cart__price-unit {
	font-size: 0.7rem;
	white-space: nowrap;
}

.bh-cart-drawer__trust {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
	padding: 12px;
	border: 1px solid rgba(126, 224, 255, 0.12);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(92, 197, 255, 0.085), rgba(246, 184, 73, 0.045)),
		rgba(4, 18, 29, 0.34);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.bh-cart-drawer__trust span {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 26px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.76rem;
	font-weight: 750;
	line-height: 1.25;
}

.bh-cart-drawer__trust span::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 999px;
	background: var(--bh-accent-strong, #5cc5ff);
	box-shadow: 0 0 12px rgba(92, 197, 255, 0.42);
}

.bh-cart-drawer__footer {
	flex: 0 0 auto;
	padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(126, 224, 255, 0.16);
	background:
		linear-gradient(180deg, rgba(13, 45, 66, 0.98), rgba(5, 20, 32, 0.995));
	box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.24);
}

.bh-cart-drawer__trust[hidden],
.bh-cart-drawer__footer[hidden] {
	display: none;
}

.bh-cart-drawer__total {
	margin-bottom: 14px;
}

.bh-cart-drawer__checkout,
.bh-cart-drawer__view-cart {
	min-height: 46px;
	border-radius: 18px;
}

@media (max-width: 640px) {
	.bh-cart-drawer {
		left: auto;
		right: 0;
		width: min(100vw, 390px);
	}

	body.admin-bar .bh-cart-drawer {
		top: var(--wp-admin--admin-bar--height, 46px);
		height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px));
	}

	.bh-cart-drawer__head {
		min-height: 66px;
		padding: 16px 18px 12px;
	}

	.bh-cart-drawer__body {
		padding: 10px 8px 14px;
	}

	.bh-cart-drawer .bh-mini-cart__item,
	.bh-cart-drawer .woocommerce-mini-cart-item.bh-mini-cart__item {
		min-height: 88px;
		padding: 10px 12px;
	}

	.bh-cart-drawer .bh-mini-cart__image {
		width: 62px;
		height: 62px;
	}

	.bh-cart-drawer .bh-mini-cart__title {
		font-size: 0.84rem;
	}

	.bh-cart-drawer__footer {
		padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	}
}

/* Cart page shell and dynamic Woo Blocks surfaces. */
.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-cart .wc-block-components-order-summary,
body.woocommerce-cart .wc-block-components-sidebar {
	border-color: var(--bh-surface-border);
	background-color: var(--bh-surface-panel-soft);
	color: var(--bh-text, rgba(255,255,255,0.82));
}

@media (max-width: 640px) {
	body.woocommerce-cart .content-container.site-container {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		padding-inline: var(--bh-mobile-gutter);
	}

	body.woocommerce-cart #primary,
	body.woocommerce-cart #main,
	body.woocommerce-cart .content-wrap,
	body.woocommerce-cart.content-style-boxed article.entry.content-bg:not(.loop-entry),
	body.woocommerce-cart .entry-content-wrap,
	body.woocommerce-cart .entry-content.single-content,
	body.woocommerce-cart .entry-content > .woocommerce {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		margin-right: 0;
		margin-left: 0;
	}

	body.woocommerce-cart .content-wrap {
		padding: 36px 0 56px;
	}

	body.woocommerce-cart .entry-content-wrap,
	body.woocommerce-cart .entry-content.single-content,
	body.woocommerce-cart .entry-content > .woocommerce {
		padding-inline: 0;
	}

	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .kadence-woo-cart-form-wrap,
	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-cart .cart_totals {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}

	body.woocommerce-cart .bh-cart-hero,
	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals {
		margin-inline: 0;
	}

	body.woocommerce-cart .bh-cart-hero h1,
	body.woocommerce-cart .entry-title {
		max-width: 100%;
		overflow-wrap: normal;
		word-break: normal;
	}
}

/* AIC-4: cart mobile UI moved from mobile.css. */
/*
 * Cart UI mobile overrides.
 * Базовые стили корзины и drawer находятся в pages/cart.css.
 */
@media (max-width: 768px) {
	body.bh-cart-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(2, 8, 16, 0.55);
		pointer-events: none;
		z-index: 180;
		animation: bh-cart-overlay-in 0.28s ease forwards;
	}

	@keyframes bh-cart-overlay-in {
		from { opacity: 0; }
		to { opacity: 1; }
	}
}

@media (max-width: 640px) {
	.bh-cart-drawer {
		width: 100vw;
	}

	.bh-cart-toast {
		left: 16px;
		right: 16px;
		max-width: none;
		bottom: 80px;
	}
}

@media (max-width: 480px) {
	.bh-cart-btn svg {
		display: none;
	}












}
