/**
 * WooCommerce Block Cart & Checkout — neutral Shopify-style polish.
 *
 * Light-mode lock, focus header, and shared .wc-block-components-* overrides.
 * Neutral greyscale only (ink CTAs, grey hairlines) — no brand purple/teal.
 *
 * @package HFM.Parts
 * @copyright ùrlar — https://www.urlar.co/
 */

/* ── Scope roots + neutral tokens ───────────────────────────────────── */

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

	--hfm-bg: #ffffff;
	--hfm-bg-1: #fafafa;
	--hfm-ink: #191919;
	--hfm-ink-2: #525252;
	--hfm-ink-3: #a3a3a3;
	--hfm-line: #e5e5e5;
	--hfm-line-2: #d4d4d4;
	--hfm-accent: #191919;
	--hfm-accent-2: #333333;
	--hfm-accent-ink: #ffffff;
	--hfm-accent-faint: #f5f5f5;
	--hfm-danger: #cc1818;
	--hfm-r: 8px;
	--hfm-r-2: 4px;
	--hfm-fs-title: 18px;
	--hfm-fs-body: 14px;
	--hfm-fs-input: 16px;
	--hfm-fs-label: 12px;
	--hfm-fs-total: 17px;
	--hfm-input-h: 50px;

	/* WC / Gutenberg form + button vars Blocks already read */
	--form--border-color: var(--hfm-line);
	--form--color-text: var(--hfm-ink);
	--wc-form-color-text: var(--hfm-ink);
	--button--color-background: var(--hfm-accent);
	--button--color-text: var(--hfm-accent-ink);

	color: var(--hfm-ink);
	background-color: var(--hfm-bg);
	font-family: inherit;
}

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

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

/* ── Hide product metadata descriptions ─────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-product-metadata__description,
.wp-block-woocommerce-checkout .wc-block-components-product-metadata__description,
.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-checkout .wc-block-components-product-metadata__description {
	display: none;
}

/* ── Layout / sidebar surface ───────────────────────────────────────── */

.wp-block-woocommerce-checkout .wc-block-components-sidebar,
.wp-block-woocommerce-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-sidebar,
.wc-block-cart .wc-block-components-sidebar {
	background: var(--hfm-bg-1);
	border-radius: var(--hfm-r);
	padding: 20px 16px;
	box-sizing: border-box;
}

.wp-block-woocommerce-checkout .wc-block-components-main,
.wp-block-woocommerce-cart .wc-block-components-main,
.wc-block-checkout .wc-block-components-main,
.wc-block-cart .wc-block-components-main {
	color: var(--hfm-ink);
}

/* ── Typography: steps ──────────────────────────────────────────────── */

.wp-block-woocommerce-checkout .wc-block-components-checkout-step,
.wc-block-checkout .wc-block-components-checkout-step {
	margin: 0 0 32px;
	padding: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-size: var(--hfm-fs-title);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--hfm-ink);
	margin: 0 12px 0 0;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description,
.wc-block-checkout .wc-block-components-checkout-step__description,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description-payments-aligned,
.wc-block-checkout .wc-block-components-checkout-step__description-payments-aligned {
	font-size: var(--hfm-fs-body);
	line-height: 1.4;
	color: var(--hfm-ink-2);
	margin: 4px 0 0;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__content,
.wc-block-checkout .wc-block-components-checkout-step__content {
	margin-top: 16px;
}

/* ── Links (neutral ink) ────────────────────────────────────────────── */

.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a,
.wc-block-cart a,
.wc-block-checkout a,
.wp-block-woocommerce-cart .wc-block-components-checkout-step a,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step a {
	color: var(--hfm-ink) !important;
	text-decoration: none;
}

.wp-block-woocommerce-cart a:hover,
.wp-block-woocommerce-checkout a:hover,
.wc-block-cart a:hover,
.wc-block-checkout a:hover {
	color: var(--hfm-ink);
	text-decoration: underline;
}

.wp-block-woocommerce-cart .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-name,
.wc-block-cart .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-name,
.wp-block-woocommerce-cart a.wc-block-components-product-name,
.wp-block-woocommerce-checkout a.wc-block-components-product-name,
.wc-block-cart a.wc-block-components-product-name,
.wc-block-checkout a.wc-block-components-product-name,
.wp-block-woocommerce-cart .wc-block-components-product-name a,
.wp-block-woocommerce-checkout .wc-block-components-product-name a,
.wc-block-cart .wc-block-components-product-name a,
.wc-block-checkout .wc-block-components-product-name a {
	font-size: var(--hfm-fs-body) !important;
	font-weight: 600 !important;
	line-height: 1.35;
	color: var(--hfm-ink) !important;
	text-decoration: none !important;
}

.wp-block-woocommerce-cart .wc-block-components-product-name a:hover,
.wp-block-woocommerce-checkout .wc-block-components-product-name a:hover,
.wc-block-cart .wc-block-components-product-name a:hover,
.wc-block-checkout .wc-block-components-product-name a:hover {
	text-decoration: underline !important;
}

/* ── Forms: text inputs ─────────────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-block-components-text-input,
.wc-block-cart .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-text-input {
	margin-top: 16px;
}

.wp-block-woocommerce-cart .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="password"],
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="tel"],
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="text"],
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="url"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="password"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="tel"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="text"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="url"],
.wc-block-cart .wc-block-components-text-input input[type="email"],
.wc-block-cart .wc-block-components-text-input input[type="password"],
.wc-block-cart .wc-block-components-text-input input[type="tel"],
.wc-block-cart .wc-block-components-text-input input[type="text"],
.wc-block-cart .wc-block-components-text-input input[type="url"],
.wc-block-checkout .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-text-input input[type="password"],
.wc-block-checkout .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-text-input input[type="url"] {
	background-color: var(--hfm-bg);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r);
	box-shadow: none;
	color: var(--hfm-ink);
	font-size: var(--hfm-fs-input);
	height: var(--hfm-input-h);
	line-height: 1.25;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-woocommerce-cart .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wc-block-cart .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-text-input label {
	color: var(--hfm-ink-2);
	font-size: var(--hfm-fs-label);
}

.wp-block-woocommerce-cart .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wc-block-cart .wc-block-components-text-input.is-active label,
.wc-block-checkout .wc-block-components-text-input.is-active label {
	font-size: var(--hfm-fs-label);
	color: var(--hfm-ink-2);
}

.wp-block-woocommerce-cart .wc-block-components-text-input:not(.is-active) label,
.wp-block-woocommerce-checkout .wc-block-components-text-input:not(.is-active) label,
.wc-block-cart .wc-block-components-text-input:not(.is-active) label,
.wc-block-checkout .wc-block-components-text-input:not(.is-active) label {
	font-size: var(--hfm-fs-input);
	color: var(--hfm-ink-3);
}

.wp-block-woocommerce-cart .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wc-block-cart .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-text-input input:focus {
	border-color: var(--hfm-ink);
	box-shadow: 0 0 0 1px var(--hfm-ink);
	outline: none;
	background-color: var(--hfm-bg);
	color: var(--hfm-ink);
}

.wp-block-woocommerce-cart .wc-block-components-text-input.has-error input,
.wp-block-woocommerce-checkout .wc-block-components-text-input.has-error input,
.wc-block-cart .wc-block-components-text-input.has-error input,
.wc-block-checkout .wc-block-components-text-input.has-error input {
	border-color: var(--hfm-danger);
	box-shadow: none;
}

.wp-block-woocommerce-cart .wc-block-components-text-input .wc-block-components-validation-error,
.wp-block-woocommerce-checkout .wc-block-components-text-input .wc-block-components-validation-error,
.wc-block-cart .wc-block-components-text-input .wc-block-components-validation-error,
.wc-block-checkout .wc-block-components-text-input .wc-block-components-validation-error,
.wp-block-woocommerce-cart .wc-block-components-validation-error,
.wp-block-woocommerce-checkout .wc-block-components-validation-error,
.wc-block-cart .wc-block-components-validation-error,
.wc-block-checkout .wc-block-components-validation-error {
	color: var(--hfm-danger);
	font-size: var(--hfm-fs-label);
}

/* ── Forms: selects ─────────────────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__container,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-cart .wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__container {
	background: var(--hfm-bg);
	border-radius: var(--hfm-r);
}

.wp-block-woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__select,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-cart .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
	background: var(--hfm-bg);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r);
	box-shadow: none;
	color: var(--hfm-ink);
	font-size: var(--hfm-fs-input);
	height: var(--hfm-input-h);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-cart .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--hfm-ink);
	box-shadow: 0 0 0 1px var(--hfm-ink);
}

.wp-block-woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__label,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-cart .wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--hfm-ink-2);
	font-size: var(--hfm-fs-label);
}

.wp-block-woocommerce-cart .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-cart .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r);
	color: var(--hfm-ink);
	font-size: var(--hfm-fs-input);
	height: var(--hfm-input-h);
	box-shadow: none;
}

.wp-block-woocommerce-cart .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wc-block-cart .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: var(--hfm-ink);
	box-shadow: 0 0 0 1px var(--hfm-ink);
	outline: none;
}

/* ── Checkbox ───────────────────────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-checkbox label,
.wp-block-woocommerce-checkout .wc-block-components-checkbox label,
.wc-block-cart .wc-block-components-checkbox label,
.wc-block-checkout .wc-block-components-checkbox label {
	font-size: var(--hfm-fs-body);
	color: var(--hfm-ink);
	line-height: 1.4;
}

.wp-block-woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__input,
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input,
.wc-block-cart .wc-block-components-checkbox .wc-block-components-checkbox__input,
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input {
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-2);
	background: var(--hfm-bg);
}

.wp-block-woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__input:checked,
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:checked,
.wc-block-cart .wc-block-components-checkbox .wc-block-components-checkbox__input:checked,
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:checked {
	background: var(--hfm-accent);
	border-color: var(--hfm-accent);
}

.wp-block-woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__input:focus,
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:focus,
.wc-block-cart .wc-block-components-checkbox .wc-block-components-checkbox__input:focus,
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:focus {
	outline: 2px solid var(--hfm-ink);
	outline-offset: 2px;
}

/* ── Radio / shipping / payment cards ───────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
.wc-block-cart .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control__option,
.wp-block-woocommerce-cart .wc-block-components-radio-control__option-layout,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option-layout,
.wc-block-cart .wc-block-components-radio-control__option-layout,
.wc-block-checkout .wc-block-components-radio-control__option-layout {
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r);
	padding: 14px 16px;
	margin: 0 0 8px;
	background: var(--hfm-bg);
	box-shadow: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__option:last-child,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option:last-child,
.wc-block-cart .wc-block-components-radio-control__option:last-child,
.wc-block-checkout .wc-block-components-radio-control__option:last-child {
	margin-bottom: 0;
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__option-checked,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option-checked,
.wc-block-cart .wc-block-components-radio-control__option-checked,
.wc-block-checkout .wc-block-components-radio-control__option-checked,
.wp-block-woocommerce-cart .wc-block-components-radio-control__option--checked-option-highlighted,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-cart .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-radio-control__option--checked-option-highlighted {
	border-color: var(--hfm-ink);
	background: var(--hfm-accent-faint);
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__label,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__label,
.wc-block-cart .wc-block-components-radio-control__label,
.wc-block-checkout .wc-block-components-radio-control__label {
	font-size: var(--hfm-fs-body);
	font-weight: 600;
	color: var(--hfm-ink);
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__secondary-label,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__secondary-label,
.wc-block-cart .wc-block-components-radio-control__secondary-label,
.wc-block-checkout .wc-block-components-radio-control__secondary-label,
.wp-block-woocommerce-cart .wc-block-components-radio-control__description,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__description,
.wc-block-cart .wc-block-components-radio-control__description,
.wc-block-checkout .wc-block-components-radio-control__description {
	font-size: 13px;
	color: var(--hfm-ink-2);
	font-weight: 400;
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__input,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__input,
.wc-block-cart .wc-block-components-radio-control__input,
.wc-block-checkout .wc-block-components-radio-control__input {
	border-color: var(--hfm-line-2);
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__input:checked,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked,
.wc-block-cart .wc-block-components-radio-control__input:checked,
.wc-block-checkout .wc-block-components-radio-control__input:checked {
	border-color: var(--hfm-ink);
}

.wp-block-woocommerce-cart .wc-block-components-radio-control__input:checked::before,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked::before,
.wc-block-cart .wc-block-components-radio-control__input:checked::before,
.wc-block-checkout .wc-block-components-radio-control__input:checked::before {
	background: var(--hfm-ink);
}

/* Address card */

.wp-block-woocommerce-checkout .wc-block-components-address-card,
.wc-block-checkout .wc-block-components-address-card {
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r);
	padding: 16px;
	box-shadow: none;
	font-size: var(--hfm-fs-body);
	line-height: 1.4;
	background: var(--hfm-bg);
}

.wp-block-woocommerce-checkout .wc-block-components-address-card__edit,
.wc-block-checkout .wc-block-components-address-card__edit {
	color: var(--hfm-ink-2);
	font-size: var(--hfm-fs-body);
}

/* ── Panels / coupon ────────────────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-panel,
.wp-block-woocommerce-checkout .wc-block-components-panel,
.wc-block-cart .wc-block-components-panel,
.wc-block-checkout .wc-block-components-panel {
	border-color: var(--hfm-line);
	border-width: 1px 0;
}

.wp-block-woocommerce-cart .wc-block-components-panel__button,
.wp-block-woocommerce-checkout .wc-block-components-panel__button,
.wc-block-cart .wc-block-components-panel__button,
.wc-block-checkout .wc-block-components-panel__button {
	font-size: var(--hfm-fs-body);
	font-weight: 500;
	color: var(--hfm-ink);
	padding: 14px 0;
	box-shadow: none;
}

.wp-block-woocommerce-cart .wc-block-components-panel__button:hover,
.wp-block-woocommerce-checkout .wc-block-components-panel__button:hover,
.wc-block-cart .wc-block-components-panel__button:hover,
.wc-block-checkout .wc-block-components-panel__button:hover,
.wp-block-woocommerce-cart .wc-block-components-panel__button:focus,
.wp-block-woocommerce-checkout .wc-block-components-panel__button:focus,
.wc-block-cart .wc-block-components-panel__button:focus,
.wc-block-checkout .wc-block-components-panel__button:focus {
	color: var(--hfm-ink);
	text-decoration: underline;
	box-shadow: none;
	outline: none;
}

.wp-block-woocommerce-cart .wc-block-components-panel__button:focus-visible,
.wp-block-woocommerce-checkout .wc-block-components-panel__button:focus-visible,
.wc-block-cart .wc-block-components-panel__button:focus-visible,
.wc-block-checkout .wc-block-components-panel__button:focus-visible {
	outline: 2px solid var(--hfm-ink);
	outline-offset: 2px;
}

/* ── Totals / order summary ─────────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-totals-item,
.wp-block-woocommerce-checkout .wc-block-components-totals-item,
.wc-block-cart .wc-block-components-totals-item,
.wc-block-checkout .wc-block-components-totals-item {
	font-size: var(--hfm-fs-body);
	color: var(--hfm-ink-2);
	padding: 10px 0;
	box-shadow: none;
	border: 0;
}

.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
.wc-block-cart .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-item__label {
	color: var(--hfm-ink-2);
	font-weight: 400;
}

.wp-block-woocommerce-cart .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wc-block-cart .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-totals-item__value {
	color: var(--hfm-ink);
	font-weight: 500;
}

.wp-block-woocommerce-cart .wc-block-components-totals-footer-item,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item,
.wc-block-cart .wc-block-components-totals-footer-item,
.wc-block-checkout .wc-block-components-totals-footer-item {
	font-size: var(--hfm-fs-total);
	font-weight: 600;
	color: var(--hfm-ink);
	padding: 14px 0 0;
	border-top: 1px solid var(--hfm-line);
	margin-top: 4px;
}

.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--hfm-ink);
	font-weight: 600;
	font-size: var(--hfm-fs-total);
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary,
.wc-block-checkout .wc-block-components-order-summary {
	padding: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item,
.wc-block-checkout .wc-block-components-order-summary-item {
	padding: 12px 0;
	border: 0;
	box-shadow: inset 0 -1px 0 var(--hfm-line);
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item:last-child,
.wc-block-checkout .wc-block-components-order-summary-item:last-child {
	box-shadow: none;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image,
.wc-block-checkout .wc-block-components-order-summary-item__image,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img,
.wc-block-checkout .wc-block-components-order-summary-item__image img,
.wp-block-woocommerce-cart .wc-block-cart-item__image img,
.wc-block-cart .wc-block-cart-item__image img {
	border-radius: var(--hfm-r-2);
}

.wp-block-woocommerce-checkout .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-product-metadata,
.wp-block-woocommerce-cart .wc-block-components-product-metadata,
.wc-block-cart .wc-block-components-product-metadata {
	font-size: 13px;
	color: var(--hfm-ink-2);
}

.wp-block-woocommerce-checkout .wc-block-components-product-price,
.wc-block-checkout .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-product-price,
.wc-block-cart .wc-block-components-product-price {
	font-size: var(--hfm-fs-body);
	font-weight: 600;
	color: var(--hfm-ink);
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title,
.wc-block-checkout .wc-block-components-checkout-order-summary__title {
	font-size: var(--hfm-fs-title);
	font-weight: 700;
	color: var(--hfm-ink);
}

/* ── Primary buttons (ink CTA) ──────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link),
.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-checkout .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
	background: var(--hfm-accent) !important;
	border: 1px solid var(--hfm-accent) !important;
	border-radius: var(--hfm-r) !important;
	box-shadow: none !important;
	color: var(--hfm-accent-ink) !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	min-height: var(--hfm-input-h) !important;
	padding: 12px 24px;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover,
.wc-block-cart .wc-block-components-button:not(.is-link):hover,
.wc-block-checkout .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
	background: var(--hfm-accent-2) !important;
	border-color: var(--hfm-accent-2) !important;
	color: var(--hfm-accent-ink) !important;
}

.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):focus,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):focus,
.wc-block-cart .wc-block-components-button:not(.is-link):focus,
.wc-block-checkout .wc-block-components-button:not(.is-link):focus,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus,
.wc-block-cart .wc-block-cart__submit-button:focus,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus,
.wc-block-checkout .wc-block-components-checkout-place-order-button:focus {
	box-shadow: 0 0 0 2px var(--hfm-bg), 0 0 0 4px var(--hfm-ink) !important;
	outline: none;
}

.wp-block-woocommerce-cart .wc-block-components-button.is-link,
.wp-block-woocommerce-checkout .wc-block-components-button.is-link,
.wc-block-cart .wc-block-components-button.is-link,
.wc-block-checkout .wc-block-components-button.is-link {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--hfm-ink) !important;
	font-weight: 500;
	min-height: 0;
	padding: 0;
	text-decoration: underline;
}

.wp-block-woocommerce-cart .wc-block-cart__submit,
.wc-block-cart .wc-block-cart__submit {
	margin: 0 0 16px;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
	width: 100%;
	justify-content: center;
}

/* ── Cart table ─────────────────────────────────────────────────────── */

.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row td,
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row td {
	vertical-align: middle;
	padding-top: 16px;
	padding-bottom: 16px;
	border-color: var(--hfm-line);
}

.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row + .wc-block-cart-items__row td,
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row + .wc-block-cart-items__row td {
	border-top: 1px solid var(--hfm-line);
}

.wp-block-woocommerce-cart .wc-block-cart-items__header,
.wc-block-cart .wc-block-cart-items__header {
	font-size: var(--hfm-fs-label);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hfm-ink-2);
	border-bottom: 1px solid var(--hfm-line);
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector,
.wc-block-cart .wc-block-components-quantity-selector {
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r);
	background: var(--hfm-bg);
	box-shadow: none;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.wc-block-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	color: var(--hfm-ink);
	font-size: var(--hfm-fs-body);
	font-weight: 600;
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link,
.wc-block-cart .wc-block-cart-item__remove-link {
	color: var(--hfm-ink-2);
	font-size: 13px;
}

/* Empty cart */

.wp-block-woocommerce-cart .wc-block-cart__empty-cart__title,
.wc-block-cart .wc-block-cart__empty-cart__title {
	font-size: var(--hfm-fs-title);
	font-weight: 700;
	color: var(--hfm-ink);
}

/* ── Notices ────────────────────────────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-components-notice-banner,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner,
.wc-block-cart .wc-block-components-notice-banner,
.wc-block-checkout .wc-block-components-notice-banner {
	border-radius: var(--hfm-r);
	border-width: 1px;
	box-shadow: none;
	font-size: var(--hfm-fs-body);
}

/* ── Mobile ─────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
	.wp-block-woocommerce-checkout .wc-block-components-sidebar,
	.wp-block-woocommerce-cart .wc-block-components-sidebar,
	.wc-block-checkout .wc-block-components-sidebar,
	.wc-block-cart .wc-block-components-sidebar {
		padding: 16px 12px;
		margin-bottom: 24px;
	}

	.wp-block-woocommerce-checkout .wc-block-components-checkout-step,
	.wc-block-checkout .wc-block-components-checkout-step {
		margin-bottom: 28px;
	}
}

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

.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: #191919;
	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: #191919;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

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

.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: #191919;
	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;
}
