/* ==========================================================================
   Cart off-canvas drawer, filled state - Figma to frontend
   ClickUp: 86eypb6jt
   Config investigated: no Customizer control styles the mini-cart line-item
   layout, quantity control, or panel title. Blocksy's Companion Pro renders
   plain WooCommerce mini-cart markup here, so a scoped stylesheet is the
   correct L4/L5 layer per the Blocksy implementation hierarchy.
   ========================================================================== */

:root {
	--bcd-heading-font: "Nominee", var(--theme-headings-font-family, var(--theme-font-family, sans-serif));
	--bcd-body-font: "Kobe1.1", var(--theme-font-family, sans-serif);
	--bcd-green: #247B4E;
	--bcd-text: #353638;
	--bcd-muted: #6B7280;
	--bcd-border: #E4E5E7;
}

/* Panel title - "Your Cart (N)" */
#woo-cart-panel .ct-panel-heading {
	font-family: var(--bcd-heading-font);
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	color: var(--bcd-text);
}

#woo-cart-panel .ct-panel-heading .total-items {
	display: none !important;
}

/* Cart line item layout */
#woo-cart-panel .woocommerce-mini-cart li.mini_cart_item {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px !important;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bcd-border);
}

#woo-cart-panel .woocommerce-mini-cart li.mini_cart_item:last-of-type {
	border-bottom: none;
}

#woo-cart-panel .mini_cart_item img {
	width: 72px;
	height: 72px;
	min-width: 72px;
	object-fit: cover;
	border-radius: 8px;
}

/* Hide WC's default remove (x) icon; replaced by the "Remove" text link */
#woo-cart-panel .mini_cart_item > a.remove {
	display: none !important;
}

#woo-cart-panel .mini_cart_item a.product-title {
	font-family: var(--bcd-body-font);
	font-weight: 700;
	font-size: 15px;
	line-height: 20px;
	color: var(--bcd-text) !important;
	text-decoration: none;
}

#woo-cart-panel .mini_cart_item .quantity.bcd-qty-row {
	font-family: var(--bcd-body-font);
	font-size: 13px;
	line-height: 18px;
	color: var(--bcd-muted);
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.bcd-qty-price {
	font-family: var(--bcd-body-font);
	font-weight: 500;
	font-size: 14px;
	color: var(--bcd-text);
}

.bcd-qty-price .woocommerce-Price-amount {
	font-family: var(--bcd-body-font);
	font-weight: 500;
	font-size: 14px;
	color: var(--bcd-text);
}

/* Quantity stepper */
.bcd-qty-stepper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--bcd-border);
	border-radius: 8px;
	padding: 3px 8px;
}

.bcd-qty-btn {
	width: 16px;
	height: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bcd-text);
}

.bcd-qty-btn:hover {
	color: var(--bcd-green);
}

.bcd-qty-btn:focus-visible {
	outline: 2px solid var(--bcd-green);
	outline-offset: 2px;
	border-radius: 2px;
}

.bcd-qty-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.bcd-qty-value {
	font-family: var(--bcd-body-font);
	font-weight: 700;
	font-size: 13px;
	color: var(--bcd-text);
	min-width: 14px;
	text-align: center;
}

.bcd-remove-link {
	font-family: var(--bcd-body-font);
	font-size: 12px;
	line-height: 18px;
	color: var(--bcd-muted) !important;
	text-decoration: underline !important;
	cursor: pointer;
}

.bcd-remove-link:hover,
.bcd-remove-link:focus-visible {
	color: var(--bcd-text) !important;
}

.bcd-remove-link:focus-visible {
	outline: 2px solid var(--bcd-green);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	#woo-cart-panel .mini_cart_item img {
		width: 56px;
		height: 56px;
		min-width: 56px;
	}
}
