/**
 * WooCommerce Block Cart & Checkout — light-mode overrides + focus chrome.
 *
 * Cart and checkout use forced light colour scheme (see urlar_hfm_checkout_light_mode).
 * Legacy dark-theme rules were removed to reduce CSS payload.
 *
 * @package HFM.Parts
 * @copyright ùrlar — https://www.urlar.co/
 */

/* ── Hide product metadata descriptions in block cart/checkout ── */
.wc-block-components-product-metadata__description {
	display: none;
}

/* ── Force light mode on block cart & checkout ───────────────── */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	.wp-block-woocommerce-checkout,
	.wp-block-woocommerce-cart {
		background-color: #ffffff;
		color: #1e1e1e;
	}

	.wp-block-woocommerce-checkout *,
	.wp-block-woocommerce-cart * {
		color-scheme: light;
	}
}

/* ── Shopify-style minimal checkout header (payment step) ─────── */

/* Hide the native site header entirely; we render our own minimal one.
   Site uses a GenerateBlocks header (.gb-site-header); native classes kept as fallbacks. */
.hfm-checkout-focus .gb-site-header,
.hfm-checkout-focus .site-header,
.hfm-checkout-focus #masthead {
	display: none !important;
}

.hfm-checkout-header {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
	padding: 0 24px;
}

.hfm-checkout-header__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.hfm-checkout-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #111;
	line-height: 0;
}

.hfm-checkout-header__logo-svg {
	display: block;
	height: 28px;
	width: auto;
}

.hfm-checkout-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: #111;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.hfm-checkout-header__cart:hover,
.hfm-checkout-header__cart:focus-visible {
	background: #f3f3f3;
	color: #111;
}

.hfm-checkout-header__cart-icon {
	display: block;
}

.hfm-checkout-header__cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.hfm-checkout-header {
		padding: 0 16px;
	}
	.hfm-checkout-header__inner {
		padding: 14px 0;
	}
	.hfm-checkout-header__logo-svg {
		height: 22px;
	}
}

.hfm-checkout-light.woocommerce-cart .site-header {
	background: #fcfcfc;
}
