/* CHF cart / checkout / account / login restyle (plugin 1.9.0). Loaded only with body.chf-cc-on.
   RESTYLE ONLY: colors, type, borders, corners, spacing. Checkout field sizes, layout widths and the
   chf-pickup-scheduling gutters are left alone; Stripe card iframes are never styled inside. */

body.chf-cc-on {
	--paper: oklch(97.6% 0.008 350);
	--blush: oklch(94.5% 0.022 350);
	--blush-deep: oklch(90% 0.035 350);
	--ink: oklch(24% 0.016 355);
	--ink-soft: oklch(40% 0.02 355);
	--accent: oklch(47% 0.155 12);
	--accent-dark: oklch(40% 0.14 12);
	--line: oklch(86% 0.02 350);
	--white: #fff;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 14px;
	background: var(--paper) !important;
}

/* ---- Page frame: plain paper, no patterned background or boxed Oxygen panels ---- */
body.chf-cc-on .ct-inner-content,
body.chf-cc-on .ct-section,
body.chf-cc-on .ct-section > .ct-section-inner-wrap {
	background-color: var(--paper) !important;
	background-image: none !important;
}
body.chf-cc-on .ct-inner-content,
body.chf-cc-on .ct-inner-content p,
body.chf-cc-on .ct-inner-content li,
body.chf-cc-on .ct-inner-content td,
body.chf-cc-on .ct-inner-content th,
body.chf-cc-on .ct-inner-content label,
body.chf-cc-on .ct-inner-content input,
body.chf-cc-on .ct-inner-content select,
body.chf-cc-on .ct-inner-content textarea,
body.chf-cc-on .ct-inner-content button {
	font-family: var(--sans);
}
body.chf-cc-on .ct-inner-content { color: var(--ink); }
body.chf-cc-on .ct-inner-content a { color: var(--accent); text-underline-offset: 3px; }
body.chf-cc-on .ct-inner-content a:hover { color: var(--accent-dark); }
body.chf-cc-on .ct-inner-content :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Shared field + button look (classic WooCommerce forms: cart coupon, login, lost password, account) */
body.chf-cc-on .woocommerce form .input-text,
body.chf-cc-on .woocommerce form input[type="text"],
body.chf-cc-on .woocommerce form input[type="email"],
body.chf-cc-on .woocommerce form input[type="password"],
body.chf-cc-on .woocommerce form input[type="tel"],
body.chf-cc-on .woocommerce form input[type="number"],
body.chf-cc-on .woocommerce form select,
body.chf-cc-on .woocommerce form textarea {
	min-height: 48px;
	padding: 0.65em 0.9em !important;
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	background: var(--white) !important;
	color: var(--ink) !important;
	font: 400 1rem/1.4 var(--sans) !important;
	box-shadow: none !important;
}
body.chf-cc-on .woocommerce form .input-text:focus,
body.chf-cc-on .woocommerce form input:focus,
body.chf-cc-on .woocommerce form select:focus,
body.chf-cc-on .woocommerce form textarea:focus {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px oklch(47% 0.155 12 / 0.18) !important;
	outline: none;
}
body.chf-cc-on .woocommerce form label {
	font: 600 0.95rem/1.3 var(--sans) !important;
	color: var(--ink) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
body.chf-cc-on .woocommerce form .required { color: var(--accent) !important; text-decoration: none; }
body.chf-cc-on .woocommerce input[type="checkbox"] { accent-color: var(--accent); }

body.chf-cc-on .woocommerce .button,
body.chf-cc-on .woocommerce button.button,
body.chf-cc-on .woocommerce a.button,
body.chf-cc-on .woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7em 1.5em !important;
	border-radius: 999px !important;
	border: 2px solid var(--accent) !important;
	background: transparent !important;
	color: var(--accent) !important;
	font: 600 0.95rem/1.2 var(--sans) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}
body.chf-cc-on .woocommerce .button:hover:not(:disabled):not(.disabled) { background: var(--accent) !important; color: var(--white) !important; }
body.chf-cc-on .woocommerce .button.alt,
body.chf-cc-on .woocommerce a.checkout-button,
body.chf-cc-on .woocommerce button.woocommerce-form-login__submit,
body.chf-cc-on .woocommerce .lost_reset_password button.button,
body.chf-cc-on .woocommerce button.woocommerce-Button,
body.chf-cc-on .woocommerce-MyAccount-content button.button[type="submit"] {
	background: var(--accent) !important;
	color: var(--white) !important;
}
body.chf-cc-on .woocommerce .button.alt:hover,
body.chf-cc-on .woocommerce a.checkout-button:hover,
body.chf-cc-on .woocommerce button.woocommerce-form-login__submit:hover,
body.chf-cc-on .woocommerce .lost_reset_password button.button:hover,
body.chf-cc-on .woocommerce button.woocommerce-Button:hover,
body.chf-cc-on .woocommerce-MyAccount-content button.button[type="submit"]:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
body.chf-cc-on .woocommerce .button:disabled,
body.chf-cc-on .woocommerce .button.disabled,
body.chf-cc-on .woocommerce .button:disabled[disabled] { opacity: 0.5 !important; cursor: not-allowed; }

/* Classic notices (cart updated, coupon errors, login errors) */
body.chf-cc-on .woocommerce-message,
body.chf-cc-on .woocommerce-info,
body.chf-cc-on .woocommerce-error {
	border: 0 !important;
	border-radius: var(--radius) !important;
	background: var(--blush) !important;
	color: var(--ink) !important;
	font: 400 1rem/1.5 var(--sans) !important;
	padding: 1rem 1.25rem 1rem 3rem !important;
}
body.chf-cc-on .woocommerce-message::before,
body.chf-cc-on .woocommerce-info::before { color: var(--accent) !important; }
body.chf-cc-on .woocommerce-error { background: oklch(95% 0.03 25) !important; }
body.chf-cc-on .woocommerce-error::before { color: oklch(48% 0.19 27) !important; }

/* ---- CART (classic [woocommerce_cart], Oxygen template 1129) ---- */
body.chf-cc-on .woocommerce-cart-form table.shop_table,
body.chf-cc-on .cart_totals table.shop_table {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	background: var(--white) !important;
	overflow: hidden;
	margin: 0 0 1.5rem !important;
}
body.chf-cc-on .woocommerce-cart-form table.shop_table th,
body.chf-cc-on .woocommerce-cart-form table.shop_table td,
body.chf-cc-on .cart_totals table.shop_table th,
body.chf-cc-on .cart_totals table.shop_table td {
	border-color: var(--line) !important;
	padding: 1rem 1.1rem !important;
	vertical-align: middle;
	background: transparent !important;
}
body.chf-cc-on .woocommerce-cart-form table.shop_table thead th {
	font: 600 0.78rem/1.3 var(--sans) !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: var(--ink-soft) !important;
	background: var(--paper) !important;
}
body.chf-cc-on .woocommerce-cart-form td.product-name > a {
	font: 500 1.15rem/1.3 var(--serif) !important;
	color: var(--ink) !important;
	text-decoration: none;
}
body.chf-cc-on .woocommerce-cart-form td.product-name > a:hover { color: var(--accent) !important; }
body.chf-cc-on .woocommerce-cart-form dl.variation,
body.chf-cc-on .woocommerce-cart-form dl.variation dt,
body.chf-cc-on .woocommerce-cart-form dl.variation dd,
body.chf-cc-on .woocommerce-cart-form dl.variation p { font: 400 0.9rem/1.45 var(--sans) !important; color: var(--ink-soft) !important; margin: 0 !important; }
body.chf-cc-on .woocommerce-cart-form dl.variation { margin-top: 0.35rem !important; }
body.chf-cc-on .woocommerce-cart-form dl.variation dt { font-weight: 600 !important; }
body.chf-cc-on .woocommerce-cart-form td.product-thumbnail img { width: 72px !important; height: 72px; object-fit: cover; border-radius: 10px; }
body.chf-cc-on .woocommerce-cart-form td.product-price,
body.chf-cc-on .woocommerce-cart-form td.product-subtotal,
body.chf-cc-on .cart_totals td { font: 600 1rem/1.3 var(--sans) !important; font-variant-numeric: tabular-nums; color: var(--ink) !important; }
body.chf-cc-on .woocommerce-cart-form td.product-subtotal { color: var(--accent) !important; }
body.chf-cc-on .woocommerce-cart-form .quantity input.qty { width: 5em !important; text-align: center; padding: 0.55em 0.4em !important; }
body.chf-cc-on .woocommerce-cart-form a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	border: 1px solid var(--line);
	color: var(--accent) !important;
	background: var(--white) !important;
	font-size: 1.4rem !important;
	line-height: 1 !important;
	text-decoration: none !important;
}
body.chf-cc-on .woocommerce-cart-form a.remove:hover { background: var(--accent) !important; color: var(--white) !important; border-color: var(--accent); }
body.chf-cc-on .woocommerce-cart-form td.actions { background: var(--paper) !important; }
body.chf-cc-on .woocommerce-cart-form td.actions .coupon { display: inline-flex; flex-wrap: nowrap; gap: 10px; align-items: center; }
body.chf-cc-on .woocommerce-cart-form td.actions .coupon .input-text { width: 14em !important; margin: 0 !important; }
body.chf-cc-on .woocommerce-cart-form td.actions .coupon .button { margin: 0 !important; }

body.chf-cc-on .cart-collaterals .cart_totals {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--radius);
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: 0 24px 60px -36px oklch(24% 0.05 355 / 0.5);
}
body.chf-cc-on .cart_totals h2 {
	font: 500 1.6rem/1.2 var(--serif) !important;
	color: var(--ink) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 0 1rem !important;
}
body.chf-cc-on .cart_totals table.shop_table { border: 0 !important; border-radius: 0 !important; margin-bottom: 1rem !important; }
body.chf-cc-on .cart_totals table.shop_table th { font: 600 0.95rem/1.3 var(--sans) !important; color: var(--ink-soft) !important; text-transform: none !important; letter-spacing: 0 !important; padding-left: 0 !important; }
body.chf-cc-on .cart_totals table.shop_table td { text-align: right; padding-right: 0 !important; }
body.chf-cc-on .cart_totals tr.order-total td,
body.chf-cc-on .cart_totals tr.order-total td * { font-size: 1.25rem !important; color: var(--accent) !important; }
body.chf-cc-on .wc-proceed-to-checkout { padding: 0 !important; }
body.chf-cc-on .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 54px; font-size: 1.05rem !important; margin: 0 !important; }
@media (max-width: 767px) {
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive tr td::before { font: 600 0.85rem/1.3 var(--sans); color: var(--ink-soft); }
	body.chf-cc-on .woocommerce-cart-form td.actions .coupon { display: flex; flex-wrap: wrap; }
	body.chf-cc-on .woocommerce-cart-form td.actions .coupon .input-text { flex: 1 1 10em; width: auto !important; }
	body.chf-cc-on .woocommerce-cart-form td.actions > .button { width: 100%; margin-top: 10px !important; }
}

/* ---- CHECKOUT (WooCommerce Checkout block) ---- */
body.chf-cc-on .wp-block-woocommerce-checkout,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-text-input input,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-text-input label,
body.chf-cc-on .wp-block-woocommerce-checkout select,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkbox__label,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control__label,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-totals-item,
body.chf-cc-on .wp-block-woocommerce-checkout p { font-family: var(--sans) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout { color: var(--ink); }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-title,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-express-payment__title {
	font-family: var(--serif) !important;
	font-weight: 500 !important;
	color: var(--ink) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title { font-size: 1.45rem !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-step__description,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice { color: var(--ink-soft) !important; }

/* Text inputs + selects: only border, corner, color (sizes and floating labels stay WooCommerce's) */
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-text-input input,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-select-input select,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-blocks-components-select__select,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-textarea,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-step__content > select,
body.chf-cc-on .wp-block-woocommerce-checkout #contact select {
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	background-color: var(--white) !important;
	color: var(--ink) !important;
	box-shadow: none !important;
}
body.chf-cc-on .wp-block-woocommerce-checkout .wc-blocks-components-select__container { border-radius: 10px !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
body.chf-cc-on .wp-block-woocommerce-checkout select:focus,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-textarea:focus {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px oklch(47% 0.155 12 / 0.18) !important;
	outline: none !important;
}
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-text-input label,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-blocks-components-select__label { color: var(--ink-soft) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkbox__input { accent-color: var(--accent); border-color: var(--line) !important; border-radius: 4px !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkbox__input:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkbox__mark { fill: var(--white) !important; }

/* Validation: keep a clear error red (meaning first), only the type changes */
body.chf-cc-on .wp-block-woocommerce-checkout .has-error input,
body.chf-cc-on .wp-block-woocommerce-checkout .has-error select { border-color: oklch(48% 0.19 27) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-validation-error,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-validation-error p { font: 500 0.875rem/1.4 var(--sans) !important; color: oklch(48% 0.19 27) !important; }

/* Express pay (Apple / Google / Amazon / Link): container only. The wallet buttons are Stripe iframes and the
   pickup plugin's lock overlay (#chf-express-overlay) + notice sit on top; both are left exactly as they are. */
body.chf-cc-on .wc-block-components-express-payment--checkout { border-color: var(--line) !important; border-radius: var(--radius) !important; }
body.chf-cc-on .chf-express-notice { border-radius: 10px !important; font-family: var(--sans) !important; }
body.chf-cc-on .wc-block-components-express-payment-continue-rule { color: var(--ink-soft) !important; }

/* Payment methods: card container only (Stripe fields inside are iframes, untouched) */
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option { border-color: var(--line) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked { border-radius: var(--radius) !important; overflow: hidden; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after { border-color: var(--accent) !important; border-radius: var(--radius) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked { border-color: var(--accent) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked::before { background: var(--accent) !important; }

/* Place order */
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
	min-height: 56px;
	border-radius: 999px !important;
	border: 2px solid var(--accent) !important;
	background: var(--accent) !important;
	color: var(--white) !important;
	font: 600 1.05rem/1.2 var(--sans) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled) { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled { opacity: 0.6 !important; }

/* Order summary card */
body.chf-cc-on .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	background: var(--white) !important;
	overflow: hidden;
}
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text { font-size: 1.3rem !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img { border-radius: 8px; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity { background: var(--accent) !important; border-color: var(--white) !important; color: var(--white) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-product-name { font: 500 1rem/1.3 var(--serif) !important; color: var(--ink) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-product-metadata,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-product-details { color: var(--ink-soft) !important; font-family: var(--sans) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-product-price { font-variant-numeric: tabular-nums; color: var(--ink) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font: 600 1.2rem/1.3 var(--sans) !important; color: var(--accent) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-panel__button { color: var(--accent) !important; font-family: var(--sans) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-button {
	border-radius: 999px !important;
	background: transparent !important;
	border: 2px solid var(--accent) !important;
	color: var(--accent) !important;
	font: 600 0.95rem/1.2 var(--sans) !important;
}

/* Block notices (errors, info) */
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-components-notice-banner { border-radius: var(--radius) !important; font-family: var(--sans) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-checkout__terms,
body.chf-cc-on .wp-block-woocommerce-checkout .wc-block-checkout__terms * { font-family: var(--sans) !important; color: var(--ink-soft); }

/* ---- MY ACCOUNT: login + lost password (logged out) ---- */
body.chf-cc-on.woocommerce-account .woocommerce > h2 {
	font: 500 clamp(2rem, 3.6vw, 2.6rem)/1.1 var(--serif) !important;
	color: var(--ink) !important;
	text-transform: none !important;
	letter-spacing: -0.01em !important;
	margin: 0 0 1.25rem !important;
}
body.chf-cc-on form.woocommerce-form-login,
body.chf-cc-on form.lost_reset_password,
body.chf-cc-on form.woocommerce-ResetPassword,
body.chf-cc-on form.woocommerce-form-register {
	max-width: 30rem;
	margin: 0 0 2rem !important;
	padding: clamp(1.25rem, 4vw, 2rem) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	background: var(--white) !important;
	box-shadow: 0 24px 60px -36px oklch(24% 0.05 355 / 0.5);
}
body.chf-cc-on form.woocommerce-form-login .form-row,
body.chf-cc-on form.lost_reset_password .form-row { margin: 0 0 1rem !important; padding: 0 !important; width: 100% !important; float: none !important; }
body.chf-cc-on form.woocommerce-form-login label,
body.chf-cc-on form.lost_reset_password label { display: block; margin-bottom: 0.4rem; }
body.chf-cc-on form.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 0.5rem; margin: 0 1rem 0 0 !important; font-weight: 400 !important; }
body.chf-cc-on form.woocommerce-form-login .woocommerce-form-login__submit { margin: 0.25rem 0 0 !important; min-width: 9rem; float: none !important; }
body.chf-cc-on form.woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
body.chf-cc-on .woocommerce form .password-input { display: block; position: relative; }
body.chf-cc-on .woocommerce form .password-input input { padding-right: 3rem !important; }
body.chf-cc-on .woocommerce form .show-password-input { color: var(--ink-soft) !important; background: transparent !important; border: 0 !important; top: 50% !important; transform: translateY(-50%); right: 0.6rem !important; }
body.chf-cc-on .woocommerce-LostPassword { margin: 0.5rem 0 0 !important; }
body.chf-cc-on .woocommerce-LostPassword a { font-weight: 600; }
body.chf-cc-on form.lost_reset_password > p:first-child { color: var(--ink-soft) !important; }

/* ---- MY ACCOUNT: logged-in pages (written from the WooCommerce markup; see STATUS for what was not seen) ---- */
body.chf-cc-on .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 1.5rem !important; padding: 0 !important; display: grid; gap: 10px; }
body.chf-cc-on .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none !important; }
body.chf-cc-on .woocommerce-MyAccount-navigation li a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1em !important;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--ink) !important;
	font: 600 0.95rem/1.2 var(--sans) !important;
	text-decoration: none !important;
	text-align: center;
}
body.chf-cc-on .woocommerce-MyAccount-navigation li a:hover { border-color: var(--accent); color: var(--accent) !important; }
body.chf-cc-on .woocommerce-MyAccount-navigation li.is-active a { background: var(--accent); border-color: var(--accent); color: var(--white) !important; }
body.chf-cc-on .woocommerce-MyAccount-content { color: var(--ink-soft); }
body.chf-cc-on .woocommerce-MyAccount-content h2,
body.chf-cc-on .woocommerce-MyAccount-content h3,
body.chf-cc-on .woocommerce-MyAccount-content legend { font: 500 1.5rem/1.2 var(--serif) !important; color: var(--ink) !important; text-transform: none !important; }
body.chf-cc-on .woocommerce-MyAccount-content table.shop_table {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	background: var(--white) !important;
	overflow: hidden;
}
body.chf-cc-on .woocommerce-MyAccount-content table.shop_table th,
body.chf-cc-on .woocommerce-MyAccount-content table.shop_table td { border-color: var(--line) !important; padding: 0.85rem 1rem !important; font-family: var(--sans) !important; }
body.chf-cc-on .woocommerce-MyAccount-content table.shop_table thead th { font: 600 0.78rem/1.3 var(--sans) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft) !important; background: var(--paper) !important; }
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-Address,
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-customer-details address {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
body.chf-cc-on .woocommerce-MyAccount-content address { font-style: normal; line-height: 1.6; color: var(--ink); }
body.chf-cc-on .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
body.chf-cc-on .woocommerce-MyAccount-content form.edit-account { max-width: 40rem; }
body.chf-cc-on .woocommerce-MyAccount-content fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
body.chf-cc-on .woocommerce-MyAccount-content mark { background: var(--blush); color: var(--ink); padding: 0 0.25em; border-radius: 4px; }
/* ===== Round 2 (Mario 10-02) ===== */

/* Space above and below the content on cart, checkout and every account page (nothing touches header / footer) */
body.chf-cc-on.woocommerce-cart .ct-inner-content .woocommerce,
body.chf-cc-on.woocommerce-account .ct-inner-content .woocommerce,
body.chf-cc-on.woocommerce-cart .ct-section .woocommerce,
body.chf-cc-on.woocommerce-account .ct-section .woocommerce { padding-top: clamp(2rem, 5vw, 3.5rem) !important; padding-bottom: clamp(3rem, 6vw, 4.5rem) !important; }
body.chf-cc-on .wp-block-woocommerce-checkout { padding-top: clamp(2rem, 5vw, 3.5rem) !important; padding-bottom: clamp(3rem, 6vw, 4.5rem) !important; }

/* Login + lost password (logged out): centered card */
body.chf-cc-on.woocommerce-account:not(.logged-in) .woocommerce > h2 { text-align: center; }
body.chf-cc-on.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
body.chf-cc-on.woocommerce-account:not(.logged-in) form.lost_reset_password { margin-left: auto !important; margin-right: auto !important; }

/* Account content: no old Oxygen/WooCommerce box (square corners, dark border) around it */
body.chf-cc-on .woocommerce-MyAccount-content,
body.chf-cc-on .woocommerce-MyAccount-navigation {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
}
body.chf-cc-on .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
/* Forms on account pages = white rounded cards */
body.chf-cc-on .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
body.chf-cc-on .woocommerce-MyAccount-content form:has(.woocommerce-address-fields),
body.chf-cc-on .woocommerce-MyAccount-content form#add_payment_method {
	padding: clamp(1.25rem, 3vw, 2rem) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	background: var(--white) !important;
	max-width: 44rem;
}
body.chf-cc-on .woocommerce-MyAccount-content .form-row { padding: 0 !important; margin: 0 0 1rem !important; }
body.chf-cc-on .woocommerce-MyAccount-content .form-row label { display: block; margin-bottom: 0.4rem; }
body.chf-cc-on .woocommerce-MyAccount-content #account_display_name_description { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); }
body.chf-cc-on .woocommerce-MyAccount-content #account_display_name_description em { font-style: normal; }
/* Password change: title above the fields, never on top of them */
body.chf-cc-on .woocommerce-MyAccount-content fieldset { position: relative; padding: 1.25rem 1.5rem 0.5rem !important; margin: 1.5rem 0 !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--paper) !important; }
body.chf-cc-on .woocommerce-MyAccount-content fieldset legend {
	float: left;
	width: 100%;
	position: static !important;
	margin: 0 0 1rem !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 1.25rem !important;
	line-height: 1.3 !important;
}
body.chf-cc-on .woocommerce-MyAccount-content fieldset legend + * { clear: both; }
/* select2 / selectWoo (country + state on the address forms) */
body.chf-cc-on .woocommerce .select2-container .select2-selection--single { height: 48px !important; border: 1px solid var(--line) !important; border-radius: 10px !important; background: var(--white) !important; }
body.chf-cc-on .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px !important; padding-left: 0.9em !important; color: var(--ink) !important; font-family: var(--sans); }
body.chf-cc-on .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px !important; right: 6px !important; }
body.chf-cc-on .select2-dropdown { border-color: var(--line) !important; border-radius: 10px !important; overflow: hidden; }
/* Add payment method / pay box (Stripe fields inside are iframes: container only) */
body.chf-cc-on .woocommerce #payment,
body.chf-cc-on .woocommerce #add_payment_method #payment { border-radius: var(--radius) !important; background: var(--paper) !important; }
body.chf-cc-on .woocommerce #payment ul.payment_methods { border-color: var(--line) !important; }
body.chf-cc-on .woocommerce #payment div.payment_box { border-radius: 10px !important; background: var(--white) !important; }
body.chf-cc-on .woocommerce #payment div.payment_box::before { border-bottom-color: var(--white) !important; }
/* View order: order details + customer details */
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table,
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-table--order-details { border-radius: var(--radius) !important; overflow: hidden; }
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-customer-details address { border-radius: var(--radius) !important; border-color: var(--line) !important; }
body.chf-cc-on .woocommerce-MyAccount-content ol.commentlist.notes li { border-radius: var(--radius); }
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-Address-title .edit { font-weight: 600; }
/* Any notice or table left on account pages: same corners */
body.chf-cc-on.woocommerce-account .woocommerce-info,
body.chf-cc-on.woocommerce-account .woocommerce-message,
body.chf-cc-on.woocommerce-account .woocommerce-error,
body.chf-cc-on.woocommerce-account table { border-radius: var(--radius) !important; }
body.chf-cc-on.woocommerce-account table { border-collapse: separate !important; border-spacing: 0; overflow: hidden; }

/* Address forms: WooCommerce's inner address box (dark top border, square) inside our card -> no second box */
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-address-fields,
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
}
body.chf-cc-on .woocommerce-MyAccount-content form > h2,
body.chf-cc-on .woocommerce-MyAccount-content form > h3 { border: 0 !important; padding: 0 !important; margin: 0 0 1rem !important; }
/* View order: the pickup date/time list (additional checkout fields) as a rounded card */
body.chf-cc-on .woocommerce-MyAccount-content dl.wc-block-components-additional-fields-list {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	padding: 0.5rem 1.25rem !important;
	background: var(--white) !important;
	overflow: hidden;
}
body.chf-cc-on .woocommerce-MyAccount-content dl.wc-block-components-additional-fields-list dt,
body.chf-cc-on .woocommerce-MyAccount-content dl.wc-block-components-additional-fields-list dd { border-color: var(--line) !important; }

/* Account nav: one rounded background only (no square li background behind the pill) */
body.chf-cc-on .woocommerce-MyAccount-navigation ul li,
body.chf-cc-on .woocommerce-MyAccount-navigation ul li.is-active,
body.chf-cc-on .woocommerce-MyAccount-navigation ul li:hover {
	background: none !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
}
body.chf-cc-on .woocommerce-MyAccount-navigation ul li a::before,
body.chf-cc-on .woocommerce-MyAccount-navigation ul li a::after { display: none !important; }

/* Account layout: desktop = nav in a left column, content on the right; phone/tablet = compact pill row */
@media (min-width: 900px) {
	body.chf-cc-on.woocommerce-account.logged-in .ct-inner-content .woocommerce,
	body.chf-cc-on.woocommerce-account.logged-in .ct-section .woocommerce {
		display: grid !important;
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 3.5rem);
		align-items: start;
	}
	body.chf-cc-on .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 1; position: sticky; top: calc(96px + var(--wp-admin--admin-bar--height, 0px)); }
	body.chf-cc-on .woocommerce-MyAccount-content { grid-column: 2; grid-row: 1; min-width: 0; }
	body.chf-cc-on .woocommerce-MyAccount-navigation ul { display: grid !important; gap: 8px !important; margin: 0 !important; }
	body.chf-cc-on .woocommerce-MyAccount-navigation li a { justify-content: flex-start !important; padding: 0 1.1em !important; min-height: 44px; }
}
@media (max-width: 899px) {
	body.chf-cc-on.woocommerce-account .ct-inner-content .woocommerce,
	body.chf-cc-on.woocommerce-account .ct-section .woocommerce { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; max-width: 100%; }
	body.chf-cc-on .woocommerce-MyAccount-navigation { margin: 0 0 1.25rem !important; max-width: 100%; }
	body.chf-cc-on .woocommerce-MyAccount-navigation ul {
		display: flex !important;
		flex-wrap: nowrap;
		gap: 8px !important;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
		padding: 2px 0 8px !important;
		margin: 0 !important;
	}
	body.chf-cc-on .woocommerce-MyAccount-navigation li { flex: none; }
	body.chf-cc-on .woocommerce-MyAccount-navigation li a { min-height: 44px; padding: 0 1em !important; white-space: nowrap; font-size: 0.9rem !important; }
}

/* ---- CART: two columns on desktop (table left, narrow totals right), one column below 1000 px ---- */
body.chf-cc-on .woocommerce-cart-form table.shop_table th,
body.chf-cc-on .woocommerce-cart-form table.shop_table td { padding: 0.75rem 0.8rem !important; }
body.chf-cc-on .woocommerce-cart-form td.product-thumbnail img { width: 60px !important; height: 60px; }
body.chf-cc-on .woocommerce-cart-form td.product-name > a { font-size: 1.05rem !important; overflow-wrap: anywhere; }
body.chf-cc-on .woocommerce-cart-form td.actions { text-align: left; }
body.chf-cc-on .woocommerce-cart-form td.actions > .button { float: right; }
body.chf-cc-on .cart-collaterals { width: auto !important; }
body.chf-cc-on .cart-collaterals .cart_totals { width: auto !important; float: none !important; }
body.chf-cc-on .cart-collaterals .cross-sells { width: auto !important; float: none !important; }
@media (min-width: 1000px) {
	body.chf-cc-on.woocommerce-cart .ct-inner-content .woocommerce,
	body.chf-cc-on.woocommerce-cart .ct-section .woocommerce {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 320px);
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
		align-items: start;
		max-width: 1160px;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
		box-sizing: border-box;
	}
	body.chf-cc-on.woocommerce-cart .woocommerce > * { grid-column: 1; }
	body.chf-cc-on.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
	body.chf-cc-on.woocommerce-cart .woocommerce > .woocommerce-message,
	body.chf-cc-on.woocommerce-cart .woocommerce > .woocommerce-info,
	body.chf-cc-on.woocommerce-cart .woocommerce > .woocommerce-error { grid-column: 1 / -1; grid-row: 1; }
	body.chf-cc-on.woocommerce-cart .woocommerce > form.woocommerce-cart-form { grid-column: 1; grid-row: 2; min-width: 0; }
	body.chf-cc-on.woocommerce-cart .woocommerce > .cart-collaterals { display: contents; }
	body.chf-cc-on .cart-collaterals .cart_totals {
		grid-column: 2;
		grid-row: 2 / span 3;
		position: sticky;
		top: calc(100px + var(--wp-admin--admin-bar--height, 0px));
		padding: 1.25rem !important;
	}
	body.chf-cc-on .cart-collaterals .cross-sells { grid-column: 1; grid-row: 3; }
	body.chf-cc-on .cart_totals h2 { font-size: 1.35rem !important; }
	body.chf-cc-on .woocommerce-cart-form table.shop_table { margin-bottom: 0 !important; }
}
@media (max-width: 999px) {
	body.chf-cc-on .woocommerce-cart-form td.actions > .button { float: none; }
	body.chf-cc-on .cart-collaterals { margin-top: 1.5rem; }
}

/* Checkout, collapsible order summary above the form (Mario 10-02, fixed again 10-02): one clean card.
   WooCommerce gives its title a 16 px top margin plus top/bottom borders (made for a full-bleed row); inside our
   card that showed as an empty strip and a stray line. Applies in EVERY layout state except is-large (desktop,
   summary in the sidebar, left unchanged): is-mobile, is-small, is-medium and any future state. */
body.chf-cc-on .wc-block-components-sidebar-layout.wc-block-checkout:not(.is-large) .wp-block-woocommerce-checkout-order-summary-block:not(.checkout-order-summary-block-fill-wrapper) .wc-block-components-checkout-order-summary__title {
	margin: 0 !important;
	border: 0 !important;
	padding: 14px 18px !important;
	min-height: 56px;
	align-items: center;
}
body.chf-cc-on .wc-block-components-sidebar-layout.wc-block-checkout:not(.is-large) .wp-block-woocommerce-checkout-order-summary-block:not(.checkout-order-summary-block-fill-wrapper) .wc-block-components-checkout-order-summary__content {
	border-top: 1px solid var(--line) !important;
	margin: 0 !important;
	padding: 4px 0 8px !important;
}
body.chf-cc-on .wc-block-components-sidebar-layout.wc-block-checkout:not(.is-large) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
body.chf-cc-on .wc-block-components-sidebar-layout.wc-block-checkout:not(.is-large) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel,
body.chf-cc-on .wc-block-components-sidebar-layout.wc-block-checkout:not(.is-large) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item {
	padding-left: 18px !important;
	padding-right: 18px !important;
}
body.chf-cc-on .wc-block-components-sidebar-layout.wc-block-checkout:not(.is-large) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper { border-color: var(--line) !important; }
/* The second summary WooCommerce shows above "Place order" on phones: no card around its own bordered box */
body.chf-cc-on .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
	border: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	overflow: visible !important;
}
body.chf-cc-on .checkout-order-summary-block-fill { border-color: var(--line) !important; border-radius: var(--radius) !important; background: var(--white) !important; overflow: hidden; }

/* ===== Round 3 (Mario 10-02) ===== */

/* Cart on phones: no gap + stray line above the first product row; coupon field, Apply and Update same width */
@media (max-width: 767px) {
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive,
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive tbody { padding: 0 !important; margin-top: 0 !important; border-spacing: 0 !important; }
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive tbody { display: block; }
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive tr { margin: 0 !important; }
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive tbody > tr:first-child,
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive tbody > tr:first-child > td:first-child { border-top: 0 !important; }
	body.chf-cc-on .woocommerce-cart-form table.shop_table_responsive caption { display: none; }
	body.chf-cc-on .woocommerce-cart-form td.actions .coupon {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
		float: none !important;
	}
	body.chf-cc-on .woocommerce-cart-form td.actions .coupon label.screen-reader-text { position: absolute !important; }
	body.chf-cc-on .woocommerce-cart-form td.actions .coupon .input-text,
	body.chf-cc-on .woocommerce-cart-form td.actions .coupon .button,
	body.chf-cc-on .woocommerce-cart-form td.actions > .button {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		float: none !important;
		box-sizing: border-box;
	}
	body.chf-cc-on .woocommerce-cart-form td.actions > .button { margin-top: 10px !important; }
}

/* Account text: the site body font and wine-red links (accent on paper = 6.92:1) */
body.chf-cc-on .woocommerce-MyAccount-content,
body.chf-cc-on .woocommerce-MyAccount-content p,
body.chf-cc-on .woocommerce-MyAccount-content li,
body.chf-cc-on .woocommerce-MyAccount-content address,
body.chf-cc-on .woocommerce-MyAccount-content td,
body.chf-cc-on .woocommerce-MyAccount-content th,
body.chf-cc-on .woocommerce-MyAccount-content dt,
body.chf-cc-on .woocommerce-MyAccount-content dd,
body.chf-cc-on .woocommerce-MyAccount-content span:not([class*="icon"]),
body.chf-cc-on .woocommerce-MyAccount-content mark,
body.chf-cc-on .woocommerce-MyAccount-content time,
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-info,
body.chf-cc-on .woocommerce-MyAccount-content .woocommerce-message {
	font-family: var(--sans) !important;
}
body.chf-cc-on .woocommerce-MyAccount-content p,
body.chf-cc-on .woocommerce-MyAccount-content li { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
body.chf-cc-on .woocommerce-MyAccount-content a:not(.button) { color: var(--accent) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.chf-cc-on .woocommerce-MyAccount-content a:not(.button):hover { color: var(--accent-dark) !important; }
body.chf-cc-on .woocommerce-MyAccount-content strong { color: var(--ink); }
body.chf-cc-on .woocommerce-MyAccount-content #account_display_name_description,
body.chf-cc-on .woocommerce-MyAccount-content #account_display_name_description em { color: var(--ink-soft) !important; font-size: 0.875rem; line-height: 1.45; }

/* Account nav on phones: no white strip, no visible scrollbar, soft fade where the row can still scroll */
@media (max-width: 899px) {
	body.chf-cc-on .woocommerce-MyAccount-navigation { position: relative; }
	body.chf-cc-on .woocommerce-MyAccount-navigation ul {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 2px 0 !important;
		scroll-padding-inline: 24px;
	}
	body.chf-cc-on .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.chf-cc-on .woocommerce-MyAccount-navigation::before,
	body.chf-cc-on .woocommerce-MyAccount-navigation::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		width: 36px;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.2s ease;
		z-index: 1;
	}
	body.chf-cc-on .woocommerce-MyAccount-navigation::before { left: 0; background: linear-gradient(to right, var(--paper), oklch(97.6% 0.008 350 / 0)); }
	body.chf-cc-on .woocommerce-MyAccount-navigation::after { right: 0; background: linear-gradient(to left, var(--paper), oklch(97.6% 0.008 350 / 0)); }
	body.chf-cc-on .woocommerce-MyAccount-navigation.chf-can-left::before,
	body.chf-cc-on .woocommerce-MyAccount-navigation.chf-can-right::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body.chf-cc-on .woocommerce .button { transition: none; }
}
