/* ==========================================================================
   FH Shop UI — site-wide font, buttons, notices, forms, cart, checkout
   ========================================================================== */

/* ---------- Font ---------- */
body.fh-font {
	--e-global-typography-primary-font-family: var(--fh-font);
	--e-global-typography-secondary-font-family: var(--fh-font);
	--e-global-typography-text-font-family: var(--fh-font-body);
	--e-global-typography-accent-font-family: var(--fh-font-body);
	font-family: var(--fh-font-body);
}
/* Headings: Fraunces. Everything else (text, buttons, forms, labels): Montserrat */
body.fh-font :is(h1, h2, h3, h4, h5, h6) { font-family: var(--fh-font); font-optical-sizing: auto; }
body.fh-font :is(button, input, select, textarea, .button),
body.fh-font .select2-container,
body.fh-font [class*="wc-block-components"] { font-family: var(--fh-font-body); }
body.fh-font :is(h1, h2) { letter-spacing: -.015em; }

/* ---------- Buttons: shared shape ---------- */
body.fh-buttons .woocommerce :is(a, button, input).button:not(.fh-btn),
body.fh-buttons :is(a, button, input).button.alt:not(.fh-btn),
body.fh-buttons .woocommerce #respond input#submit,
body.fh-buttons .woocommerce-Button,
body.fh-buttons .wp-block-button__link,
body.fh-buttons .wp-element-button,
body.fh-buttons .comment-form .submit,
body.fh-buttons .search-form .search-submit,
body.fh-buttons .wc-block-components-button:not(.is-link),
body.fh-el-buttons .elementor-widget-button:not(.fh-keep) .elementor-button,
body.fh-el-buttons .elementor-field-type-submit .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border: 1.5px solid var(--fh-primary);
	border-radius: 999px;
	background: var(--fh-primary);
	color: #fff;
	font-family: var(--fh-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
body.fh-buttons .woocommerce :is(a, button, input).button:not(.fh-btn):is(:hover, :focus-visible),
body.fh-buttons :is(a, button, input).button.alt:not(.fh-btn):is(:hover, :focus-visible),
body.fh-buttons .woocommerce #respond input#submit:is(:hover, :focus-visible),
body.fh-buttons .woocommerce-Button:is(:hover, :focus-visible),
body.fh-buttons .wp-block-button__link:is(:hover, :focus-visible),
body.fh-buttons .wp-element-button:is(:hover, :focus-visible),
body.fh-buttons .comment-form .submit:is(:hover, :focus-visible),
body.fh-buttons .search-form .search-submit:is(:hover, :focus-visible),
body.fh-buttons .wc-block-components-button:not(.is-link):is(:hover, :focus-visible),
body.fh-el-buttons .elementor-widget-button:not(.fh-keep) .elementor-button:is(:hover, :focus-visible),
body.fh-el-buttons .elementor-field-type-submit .elementor-button:is(:hover, :focus-visible) {
	border-color: var(--fh-primary-dark);
	background: var(--fh-primary-dark);
	color: #fff;
}

/* Secondary: plain WooCommerce buttons (Update cart, Apply coupon, View cart…) */
body.fh-buttons .woocommerce :is(a, button, input).button:not(.alt):not(.fh-btn):not(.checkout-button):not(.single_add_to_cart_button),
body.fh-el-buttons .elementor-widget-button.fh-btn-outline .elementor-button {
	border-color: #000;
	background: #fff;
	color: #000;
}
body.fh-buttons .woocommerce :is(a, button, input).button:not(.alt):not(.fh-btn):not(.checkout-button):not(.single_add_to_cart_button):is(:hover, :focus-visible),
body.fh-el-buttons .elementor-widget-button.fh-btn-outline .elementor-button:is(:hover, :focus-visible) {
	border-color: #000;
	background: #000;
	color: #fff;
}
body.fh-el-buttons .elementor-widget-button.fh-btn-dark .elementor-button { border-color: #000; background: #000; color: #fff; }
body.fh-el-buttons .elementor-widget-button.fh-btn-dark .elementor-button:is(:hover, :focus-visible) { border-color: var(--fh-primary); background: var(--fh-primary); color: #fff; }

body.fh-buttons .woocommerce :is(a, button, input).button:is(:disabled, .disabled),
body.fh-buttons .woocommerce :is(a, button, input).button:is(:disabled, .disabled):hover { opacity: .45; cursor: not-allowed; }

/* Hello theme's default pink on unstyled buttons becomes black */
body.fh-buttons button:not([class]),
body.fh-buttons input[type="submit"]:not([class]) { border-color: #000; border-radius: 999px; color: #000; }
body.fh-buttons button:not([class]):is(:hover, :focus),
body.fh-buttons input[type="submit"]:not([class]):is(:hover, :focus) { background-color: #000; color: #fff; }

/* Woo's loading/added icon font on buttons */
body.fh-buttons .woocommerce :is(a, button).button.loading::after {
	position: static;
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: 0;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	font-family: inherit;
	content: "";
	animation: fh-spin .7s linear infinite;
}
body.fh-buttons .woocommerce :is(a, button).button.loading { opacity: .8; padding-right: 26px; }

/* ---------- Notices ---------- */
body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
body.fh-cart-ui .wc-block-components-notice-banner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 24px;
	padding: 16px 20px 16px 54px;
	border: 0;
	border-radius: 14px;
	background: var(--fh-soft);
	color: #000;
	font-size: 15px;
	line-height: 1.45;
	list-style: none;
}
body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
	position: absolute;
	top: 50%;
	left: 20px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: #000;
	font-family: inherit;
	content: "";
	-webkit-mask: var(--fh-notice-ico) center / contain no-repeat;
	mask: var(--fh-notice-ico) center / contain no-repeat;
}
body.fh-cart-ui .woocommerce-message {
	--fh-notice-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	background: var(--fh-primary-soft);
}
body.fh-cart-ui .woocommerce-message::before { background: var(--fh-primary); }
body.fh-cart-ui .woocommerce-info {
	--fh-notice-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}
body.fh-cart-ui .woocommerce-error {
	--fh-notice-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
	flex-direction: column;
	align-items: flex-start;
	background: #fdeeec;
	color: #7a1a12;
}
body.fh-cart-ui .woocommerce-error::before { top: 18px; margin-top: 0; background: #b42318; }
body.fh-cart-ui .woocommerce-error li { margin: 0; }
body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info) .button,
body.fh-buttons .woocommerce :is(.woocommerce-message, .woocommerce-info) a.button:not(.fh-btn) {
	order: 2;
	float: none;
	min-height: 38px;
	margin: 0 0 0 auto;
	padding: 0 16px;
	font-size: 14px;
}

/* ---------- Form fields (checkout, account, coupons) ---------- */
body.fh-cart-ui .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
body.fh-cart-ui .woocommerce form .form-row label {
	display: block;
	margin: 0 0 7px;
	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
body.fh-cart-ui .woocommerce form .form-row label.checkbox,
body.fh-cart-ui .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
body.fh-cart-ui .woocommerce form .form-row .required { color: var(--fh-primary); text-decoration: none; border: 0; }
body.fh-cart-ui .woocommerce form .form-row .optional { color: var(--fh-muted); font-weight: 400; }

body.fh-cart-ui .woocommerce form .form-row :is(input.input-text, textarea, select),
body.fh-cart-ui .woocommerce :is(#coupon_code, .coupon .input-text),
body.fh-cart-ui .woocommerce form.checkout_coupon input.input-text,
body.fh-cart-ui .woocommerce-cart .shipping-calculator-form :is(input.input-text, select) {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid var(--fh-line);
	border-radius: 12px;
	outline: 0;
	background: #fff;
	color: #000;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
body.fh-cart-ui .woocommerce form .form-row textarea { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.5; }
body.fh-cart-ui .woocommerce form .form-row :is(input.input-text, textarea, select):hover { border-color: #c9d1cc; }
body.fh-cart-ui .woocommerce form .form-row :is(input.input-text, textarea, select):focus,
body.fh-cart-ui .woocommerce :is(#coupon_code, .coupon .input-text):focus,
body.fh-cart-ui .woocommerce form.checkout_coupon input.input-text:focus {
	border-color: var(--fh-primary);
	box-shadow: 0 0 0 4px var(--fh-primary-soft);
}
body.fh-cart-ui .woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select),
body.fh-cart-ui .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #b42318; }
body.fh-cart-ui .woocommerce form .form-row.fhsu-hidden-field,
body.fh-cart-ui .woocommerce .fhsu-hidden-field { display: none; }
body.fh-cart-ui .woocommerce form .form-row.woocommerce-validated :is(input.input-text, select) { border-color: var(--fh-line); }
body.fh-cart-ui .woocommerce form .form-row input[type="checkbox"],
body.fh-cart-ui .woocommerce input[type="radio"] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fh-primary); flex: none; }

/* selectWoo / select2 */
body.fh-cart-ui .select2-container--default .select2-selection--single {
	height: 50px;
	border: 1.5px solid var(--fh-line);
	border-radius: 12px;
	background: #fff;
}
body.fh-cart-ui .select2-container--default.select2-container--focus .select2-selection--single,
body.fh-cart-ui .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--fh-primary); box-shadow: 0 0 0 4px var(--fh-primary-soft); }
body.fh-cart-ui .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 40px 0 16px; color: #000; font-size: 15px; font-weight: 500; line-height: 47px; }
body.fh-cart-ui .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 47px; }
body.fh-cart-ui .select2-dropdown { overflow: hidden; border: 1.5px solid var(--fh-line); border-radius: 12px; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .2); }
body.fh-cart-ui .select2-container--default .select2-search--dropdown .select2-search__field { height: 40px; padding: 0 12px; border: 1.5px solid var(--fh-line); border-radius: 8px; }
body.fh-cart-ui .select2-results__option { padding: 9px 14px; }
body.fh-cart-ui .select2-container--default .select2-results__option--highlighted[aria-selected],
body.fh-cart-ui .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--fh-primary); color: #fff; }

/* Shared: reset theme table stripes/borders inside cart & checkout tables */
body.fh-cart-ui .woocommerce table.shop_table,
body.fh-cart-ui .woocommerce table.shop_table :is(th, td),
body.fh-cart-ui .woocommerce table.shop_table tbody > tr > td,
body.fh-cart-ui .woocommerce table.shop_table tbody > tr:nth-child(odd) > td,
body.fh-cart-ui .woocommerce table.shop_table tbody > tr:hover > td,
body.fh-cart-ui .woocommerce table.shop_table tbody > tr:nth-child(2n) td {
	border: 0;
	border-radius: 0;
	background: transparent;
}
body.fh-cart-ui .woocommerce table.shop_table { width: 100%; margin: 0; border-collapse: collapse; }

/* ---------- Classic cart ---------- */
body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 0 40px;
	align-items: start;
}
body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form) > * { grid-column: 1 / -1; }
body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form { grid-column: 1; min-width: 0; }
body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals { grid-column: 2; }
body.fh-cart-ui .woocommerce .cart-collaterals { width: auto; float: none; }
body.fh-cart-ui .woocommerce .cart-collaterals::before,
body.fh-cart-ui .woocommerce .cart-collaterals::after { display: none; }

body.fh-cart-ui .woocommerce table.shop_table.cart thead { display: none; }
body.fh-cart-ui .woocommerce table.shop_table.cart,
body.fh-cart-ui .woocommerce table.shop_table.cart tbody { display: block; }

body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto 110px 40px;
	grid-template-areas:
		"thumb name qty sub remove"
		"thumb price qty sub remove";
	align-items: center;
	column-gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--fh-line);
}
body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item:first-child { padding-top: 4px; }
body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item td {
	display: block;
	padding: 0;
	text-align: left;
}
body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item td::before { display: none; content: none; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-thumbnail { grid-area: thumb; width: auto; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-thumbnail img {
	display: block;
	width: 96px;
	height: 96px;
	max-width: none;
	margin: 0;
	border-radius: 14px;
	background: var(--fh-soft);
	object-fit: cover;
}
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name { grid-area: name; align-self: end; color: #000; font-size: 17px; font-weight: 600; line-height: 1.3; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name a { color: #000; text-decoration: none; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name a:hover { color: var(--fh-primary); }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
	margin: 4px 0 0;
	color: var(--fh-muted);
	font-size: 13.5px;
	font-weight: 500;
}
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name dl.variation :is(dt, dd, dd p) { float: none; margin: 0; padding: 0; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name .backorder_notification { margin: 4px 0 0; color: var(--fh-muted); font-size: 13px; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-price { grid-area: price; align-self: start; margin-top: 4px; color: var(--fh-muted); font-size: 14px; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity { grid-area: qty; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity .quantity:has(> .fh-qty-btn) { height: 46px; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity .quantity .fh-qty-btn { width: 36px; height: 36px; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-subtotal { grid-area: sub; color: #000; font-size: 18px; font-weight: 700; text-align: right; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.product-remove { grid-area: remove; justify-self: end; width: auto; }

body.fh-cart-ui .woocommerce table.shop_table.cart a.remove,
body.fh-cart-ui .woocommerce a.remove {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	color: var(--fh-muted) !important; /* WooCommerce sets red with !important */
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
body.fh-cart-ui .woocommerce table.shop_table.cart a.remove:hover,
body.fh-cart-ui .woocommerce a.remove:hover { background: #fdeeec; color: #b42318 !important; }

/* coupon + update row */
body.fh-cart-ui .woocommerce table.shop_table.cart tr:not(.cart_item) { display: block; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 24px 0 0;
	text-align: left;
}
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions::before { display: none; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon {
	display: flex;
	flex: 1 1 360px;
	gap: 8px;
	max-width: 440px;
	padding: 6px;
	border: 1.5px dashed #c9d1cc;
	border-radius: 999px;
	float: none;
}
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon .input-text,
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon #coupon_code {
	flex: 1;
	width: auto;
	min-width: 0;
	height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	float: none;
}
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon .input-text:focus { box-shadow: none; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon:focus-within { border-color: var(--fh-primary); border-style: solid; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon .button { flex: none; min-height: 42px; padding: 0 18px; white-space: nowrap; float: none; }
body.fh-cart-ui .woocommerce table.shop_table.cart td.actions > .button { float: none; margin: 0; }

/* totals card */
body.fh-cart-ui .woocommerce .cart-collaterals .cart_totals {
	width: 100%;
	padding: 26px;
	border-radius: 20px;
	background: var(--fh-soft);
	float: none;
}
body.fh-cart-ui .woocommerce .cart_totals > h2 { margin: 0 0 14px; color: #000; font-size: 22px; font-weight: 700; line-height: 1.2; }
body.fh-cart-ui .woocommerce .cart_totals table.shop_table,
body.fh-cart-ui .woocommerce .cart_totals table.shop_table tbody { display: block; }
body.fh-cart-ui .woocommerce .cart_totals table.shop_table tr {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 12px 0;
	border-bottom: 1px solid #e2e7e4;
}
body.fh-cart-ui .woocommerce .cart_totals table.shop_table :is(th, td) { display: block; width: auto; padding: 0; color: #000; font-size: 15px; text-align: left; }
body.fh-cart-ui .woocommerce .cart_totals table.shop_table th { color: var(--fh-muted); font-weight: 500; }
body.fh-cart-ui .woocommerce .cart_totals table.shop_table td { font-weight: 600; text-align: right; }
body.fh-cart-ui .woocommerce .cart_totals table.shop_table td::before { display: none; }
body.fh-cart-ui .woocommerce .cart_totals tr.woocommerce-shipping-totals td { flex-basis: 100%; text-align: left; }
body.fh-cart-ui .woocommerce .cart_totals tr.order-total { padding: 18px 0 4px; border-bottom: 0; }
body.fh-cart-ui .woocommerce .cart_totals tr.order-total :is(th, td) { color: #000; font-size: 22px; font-weight: 700; }
body.fh-cart-ui .woocommerce .cart_totals tr.order-total small.includes_tax { display: block; color: var(--fh-muted); font-size: 12.5px; font-weight: 500; }

body.fh-cart-ui .woocommerce :is(ul#shipping_method, ul.woocommerce-shipping-methods) { margin: 8px 0 0; padding: 0; list-style: none; }
body.fh-cart-ui .woocommerce :is(ul#shipping_method, ul.woocommerce-shipping-methods) li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1.5px solid #e2e7e4;
	border-radius: 12px;
	background: #fff;
	font-weight: 500;
	text-align: left;
}
body.fh-cart-ui .woocommerce :is(ul#shipping_method, ul.woocommerce-shipping-methods) li:has(input:checked),
body.fh-cart-ui .woocommerce :is(ul#shipping_method, ul.woocommerce-shipping-methods) li:only-child { border-color: var(--fh-primary); }
body.fh-cart-ui .woocommerce :is(ul#shipping_method, ul.woocommerce-shipping-methods) li label { display: flex; flex: 1; justify-content: space-between; gap: 8px; margin: 0; cursor: pointer; }
body.fh-cart-ui .woocommerce ul#shipping_method li input { margin: 0; }
body.fh-cart-ui .woocommerce :is(.woocommerce-shipping-destination, .woocommerce-shipping-contents) { margin: 8px 0 0; color: var(--fh-muted); font-size: 13px; font-weight: 400; }
body.fh-cart-ui .woocommerce .shipping-calculator-button { color: #000; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.fh-cart-ui .woocommerce .shipping-calculator-button::after { display: none; }

body.fh-cart-ui .woocommerce .wc-proceed-to-checkout { padding: 18px 0 0; }
body.fh-cart-ui .woocommerce .wc-proceed-to-checkout a.checkout-button,
body.fh-buttons .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 0;
	font-size: 17px;
}

.fh-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--fh-muted);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}
.fh-secure .fh-ico { color: var(--fh-primary); }
.fh-continue { display: block; margin: 16px 0 0; color: #000; font-size: 14px; font-weight: 600; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.fh-continue:hover { color: var(--fh-primary); }

/* cross sells */
body.fh-cart-ui .woocommerce > .cross-sells,
body.fh-cart-ui .woocommerce .cross-sells { width: auto; margin: 56px 0 0; float: none; }
body.fh-cart-ui .woocommerce .cross-sells > h2 { margin: 0 0 20px; color: #000; font-size: 24px; font-weight: 700; }

/* empty cart */
body.fh-cart-ui .woocommerce :is(.cart-empty.woocommerce-info, .wc-empty-cart-message .cart-empty) {
	--fh-notice-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
	flex-direction: column;
	justify-content: center;
	padding: 56px 24px 20px;
	border-radius: 20px 20px 0 0;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
}
body.fh-cart-ui .woocommerce .cart-empty.woocommerce-info::before { position: static; width: 56px; height: 56px; margin: 0 0 6px; background: var(--fh-primary); }
body.fh-cart-ui .woocommerce .return-to-shop { margin: -24px 0 0; padding: 0 24px 48px; border-radius: 0 0 20px 20px; background: var(--fh-soft); text-align: center; }

/* ---------- Classic checkout ---------- */
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	grid-template-rows: auto min-content 1fr;
	gap: 0 40px;
	align-items: start;
}
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > * { grid-column: 1 / -1; }
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > .woocommerce-NoticeGroup { grid-row: 1; }
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 2; }
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 3; }
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout::before,
body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout::after { display: none; }

body.fh-cart-ui .woocommerce #customer_details.col2-set { width: auto; float: none; }
body.fh-cart-ui .woocommerce #customer_details.col2-set::before,
body.fh-cart-ui .woocommerce #customer_details.col2-set::after { display: none; }
body.fh-cart-ui .woocommerce #customer_details.col2-set :is(.col-1, .col-2) { width: 100%; max-width: none; float: none; padding: 0; }

body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) {
	margin: 0 0 20px;
	padding: 26px 26px 10px;
	border: 1px solid var(--fh-line);
	border-radius: 20px;
	background: #fff;
}
body.fh-cart-ui .woocommerce .woocommerce-shipping-fields:not(:has(#ship-to-different-address-checkbox:checked)) { padding-bottom: 20px; }
body.fh-cart-ui .woocommerce .woocommerce-shipping-fields:empty,
body.fh-cart-ui .woocommerce .woocommerce-additional-fields:not(:has(*)) { display: none; }
body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) h3,
body.fh-cart-ui .woocommerce #order_review_heading {
	margin: 0 0 20px;
	color: #000;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
body.fh-cart-ui .woocommerce #ship-to-different-address { margin: 0; font-size: 16px; }
body.fh-cart-ui .woocommerce #ship-to-different-address label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
body.fh-cart-ui .woocommerce .shipping_address { margin-top: 20px; }

body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper)::before,
body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper)::after { display: none; }
body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) .form-row { grid-column: 1 / -1; width: auto; float: none; }
body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) .form-row-first { grid-column: 1; }
body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) .form-row-last { grid-column: 2; }

/* order review card */
body.fh-cart-ui .woocommerce #order_review_heading {
	margin: 0;
	padding: 26px 26px 8px;
	border-radius: 20px 20px 0 0;
	background: var(--fh-soft);
}
body.fh-cart-ui .woocommerce #order_review {
	padding: 4px 26px 26px;
	border-radius: 0 0 20px 20px;
	background: var(--fh-soft);
}
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table thead { display: none; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table tr { border-bottom: 1px solid #e2e7e4; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table :is(th, td) { padding: 13px 0; color: #000; font-size: 15px; vertical-align: top; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table td.product-name { padding-right: 12px; font-weight: 600; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table td.product-name .product-quantity { color: var(--fh-muted); font-weight: 500; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table td.product-name dl.variation { margin: 2px 0 0; color: var(--fh-muted); font-size: 13px; font-weight: 500; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table td.product-name dl.variation :is(dt, dd, dd p) { display: inline; float: none; margin: 0; padding: 0; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table :is(td.product-total, tfoot td) { font-weight: 600; text-align: right; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table tfoot th { color: var(--fh-muted); font-weight: 500; text-align: left; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td:has(ul) { text-align: left; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table tr.order-total { border-bottom: 0; }
body.fh-cart-ui .woocommerce table.woocommerce-checkout-review-order-table tr.order-total :is(th, td) { padding-top: 18px; color: #000; font-size: 22px; font-weight: 700; }

/* payment */
body.fh-cart-ui .woocommerce-checkout #payment,
body.fh-cart-ui #add_payment_method #payment { margin: 20px 0 0; border-radius: 0; background: transparent; }
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods { margin: 0; padding: 0; border: 0; list-style: none; }
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods::before,
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods::after { display: none; }
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods li {
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1.5px solid #e2e7e4;
	border-radius: 14px;
	background: #fff;
	line-height: 1.4;
	transition: border-color .15s;
}
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods li:has(> input:checked),
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods li:only-child { border-color: var(--fh-primary); }
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods li > input { margin: 0 10px 0 0; vertical-align: -3px; }
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods li > label { display: inline; color: #000; font-size: 15px; font-weight: 600; cursor: pointer; }
body.fh-cart-ui .woocommerce-checkout #payment ul.payment_methods li img { max-height: 22px; margin: 0 0 0 6px; vertical-align: middle; }
body.fh-cart-ui .woocommerce-checkout #payment div.payment_box {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--fh-soft);
	color: var(--fh-muted);
	font-size: 14px;
}
body.fh-cart-ui .woocommerce-checkout #payment div.payment_box::before { display: none; }
body.fh-cart-ui .woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
body.fh-cart-ui .woocommerce-checkout #payment div.form-row.place-order { margin: 16px 0 0; padding: 0; }
body.fh-cart-ui .woocommerce-checkout .woocommerce-privacy-policy-text { color: var(--fh-muted); font-size: 13px; line-height: 1.5; }
body.fh-cart-ui .woocommerce-checkout .woocommerce-privacy-policy-text a { color: #000; }
body.fh-cart-ui .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row { margin: 12px 0 0; }

body.fh-cart-ui .woocommerce-checkout #payment #place_order,
body.fh-buttons .woocommerce-checkout #payment #place_order {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 16px 0 0;
	font-size: 17px;
	float: none;
}
body.fh-cart-ui .woocommerce-checkout #payment #place_order::before {
	width: 18px;
	height: 18px;
	background: currentColor;
	content: "";
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* coupon + login toggles above checkout */
body.fh-cart-ui .woocommerce :is(form.checkout_coupon, form.woocommerce-form-login, form.login, form.register) {
	margin: -12px 0 24px;
	padding: 22px;
	border: 1.5px dashed #c9d1cc;
	border-radius: 16px;
	text-align: left;
}
body.fh-cart-ui .woocommerce form.checkout_coupon { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
body.fh-cart-ui .woocommerce form.checkout_coupon > p:not(.form-row) { flex-basis: 100%; margin: 0; color: var(--fh-muted); }
body.fh-cart-ui .woocommerce form.checkout_coupon .form-row { width: auto; margin: 0; float: none; }
body.fh-cart-ui .woocommerce form.checkout_coupon .form-row-first { flex: 1; }
body.fh-cart-ui .woocommerce form.checkout_coupon .clear { display: none; }

/* blockUI overlay while updating */
body.fh-cart-ui .woocommerce .blockUI.blockOverlay { border-radius: 20px; background: rgba(255, 255, 255, .6) !important; }

/* ---------- Order received ---------- */
body.fh-cart-ui .woocommerce-order .woocommerce-thankyou-order-received,
body.fh-cart-ui .woocommerce-order .woocommerce-notice--success {
	margin: 0 0 24px;
	padding: 22px 24px;
	border-radius: 16px;
	background: var(--fh-primary-soft);
	color: var(--fh-primary);
	font-family: var(--fh-font);
	font-size: 20px;
	font-weight: 700;
}
body.fh-cart-ui .woocommerce-order ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}
body.fh-cart-ui .woocommerce-order ul.order_details::before,
body.fh-cart-ui .woocommerce-order ul.order_details::after { display: none; }
body.fh-cart-ui .woocommerce-order ul.order_details li {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--fh-line);
	border-radius: 14px;
	color: var(--fh-muted);
	font-size: 13px;
	line-height: 1.4;
	text-transform: none;
	float: none;
}
body.fh-cart-ui .woocommerce-order ul.order_details li strong { display: block; margin-top: 4px; color: #000; font-size: 16px; }
body.fh-cart-ui .woocommerce-order :is(.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-customer-details h2) { margin: 0 0 14px; color: #000; font-size: 22px; font-weight: 700; }
body.fh-cart-ui .woocommerce-order table.order_details :is(th, td) { padding: 12px 0; border-bottom: 1px solid var(--fh-line); text-align: left; }
body.fh-cart-ui .woocommerce-order table.order_details :is(tfoot td, td.product-total) { text-align: right; }
body.fh-cart-ui .woocommerce-order .woocommerce-customer-details address { padding: 20px; border: 1px solid var(--fh-line); border-radius: 14px; }

/* ---------- Cart & Checkout blocks ---------- */
body.fh-cart-ui .wc-block-cart,
body.fh-cart-ui .wc-block-checkout { font-family: var(--fh-font-body); }
body.fh-cart-ui :is(.wc-block-cart, .wc-block-checkout) :is(h1, h2, h3, .wc-block-components-title, .wc-block-components-checkout-step__title) { font-family: var(--fh-font); color: #000; }
body.fh-cart-ui .wc-block-components-checkout-step__title { font-size: 20px; font-weight: 700; }

body.fh-cart-ui .wc-block-cart-items { border: 0; }
body.fh-cart-ui .wc-block-cart-items th { color: var(--fh-muted); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
body.fh-cart-ui .wc-block-cart-items .wc-block-cart-items__row { border-top: 1px solid var(--fh-line); }
body.fh-cart-ui .wc-block-cart-item__image img { border-radius: 14px; background: var(--fh-soft); }
body.fh-cart-ui .wc-block-components-product-name { color: #000; font-family: var(--fh-font); font-size: 17px; font-weight: 600; text-decoration: none; }
body.fh-cart-ui .wc-block-components-product-name:hover { color: var(--fh-primary); }
body.fh-cart-ui .wc-block-cart-item__total .wc-block-components-product-price__value { color: #000; font-size: 17px; font-weight: 700; }
body.fh-cart-ui .wc-block-components-sale-badge { padding: 2px 8px; border: 0; border-radius: 999px; background: var(--fh-primary-soft); color: var(--fh-primary); font-size: 12px; font-weight: 700; text-transform: none; }
body.fh-cart-ui .wc-block-cart-item__remove-link { color: var(--fh-muted); font-size: 13px; }
body.fh-cart-ui .wc-block-cart-item__remove-link:hover { color: #b42318; }

body.fh-cart-ui .wc-block-components-quantity-selector { width: 120px; border-radius: 999px; }
body.fh-cart-ui .wc-block-components-quantity-selector::after { border: 1.5px solid var(--fh-line); border-radius: 999px; }
body.fh-cart-ui .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { color: #000; font-weight: 700; }
body.fh-cart-ui .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: #000; opacity: 1; }
body.fh-cart-ui .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover { background: var(--fh-soft); }

body.fh-cart-ui :is(.wp-block-woocommerce-cart-order-summary-block, .wp-block-woocommerce-checkout-order-summary-block) {
	padding: 8px 20px 16px;
	border: 0;
	border-radius: 20px;
	background: var(--fh-soft);
}
body.fh-cart-ui .wc-block-components-totals-wrapper { border-top-color: #e2e7e4; }
body.fh-cart-ui .wc-block-components-totals-item__label { color: var(--fh-muted); }
body.fh-cart-ui .wc-block-components-totals-footer-item :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value) { color: #000; font-family: var(--fh-font); font-size: 22px; font-weight: 700; }

body.fh-cart-ui .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="password"], [type="url"]),
body.fh-cart-ui .wc-block-components-form .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="password"], [type="url"]),
body.fh-cart-ui .wc-blocks-components-select .wc-blocks-components-select__select,
body.fh-cart-ui .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.fh-cart-ui .wc-block-components-textarea {
	border: 1.5px solid var(--fh-line);
	border-radius: 12px;
	background: #fff;
	color: #000;
	box-shadow: none;
}
body.fh-cart-ui .wc-block-components-text-input input:focus,
body.fh-cart-ui .wc-block-components-form .wc-block-components-text-input input:focus,
body.fh-cart-ui .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.fh-cart-ui .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
body.fh-cart-ui .wc-block-components-textarea:focus {
	border-color: var(--fh-primary);
	box-shadow: 0 0 0 4px var(--fh-primary-soft);
	outline: 0;
}
body.fh-cart-ui .wc-block-components-text-input.has-error input { border-color: #b42318; }

body.fh-cart-ui .wc-block-components-radio-control--highlight-checked,
body.fh-cart-ui .wc-block-components-radio-control-accordion-option { border-radius: 14px; }
body.fh-cart-ui .wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--fh-primary); }
body.fh-cart-ui .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--fh-primary); }
body.fh-cart-ui .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.fh-cart-ui .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--fh-primary); border-radius: 14px; }
body.fh-cart-ui .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { border-color: var(--fh-primary); background: var(--fh-primary); }
body.fh-cart-ui .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }

body.fh-cart-ui .wc-block-components-checkout-place-order-button,
body.fh-cart-ui .wc-block-cart__submit-button { width: 100%; min-height: 56px; font-size: 17px; }
body.fh-cart-ui .wc-block-components-button.is-link,
body.fh-cart-ui .wc-block-components-totals-coupon-link { color: #000; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form),
	body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
	body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form) > :is(form.woocommerce-cart-form, .cart-collaterals) { grid-column: 1; }
	body.fh-cart-ui .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals { margin-top: 32px; }
	body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > :is(#customer_details, #order_review_heading, #order_review) { grid-column: 1; grid-row: auto; }
	body.fh-cart-ui .woocommerce form.checkout.woocommerce-checkout > #order_review_heading { margin-top: 12px; }
}

@media (max-width: 767px) {
	body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item {
		grid-template-columns: 80px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty sub";
		row-gap: 6px;
		column-gap: 14px;
		padding: 16px 0;
	}
	/* WooCommerce's small-screen stylesheet hides the image and right-aligns every cell */
	body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item td,
	body.fh-cart-ui .woocommerce table.shop_table.cart tr.cart_item td.product-name { text-align: left !important; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-subtotal { text-align: right !important; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-thumbnail { display: block !important; align-self: start; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions { text-align: left !important; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-thumbnail img { width: 80px; height: 80px; border-radius: 12px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-name { align-self: start; font-size: 15.5px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-price { margin: 0; font-size: 13px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity { margin-top: 6px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity .quantity:has(> .fh-qty-btn) { height: 40px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity .quantity .fh-qty-btn { width: 32px; height: 32px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-quantity .quantity .qty { width: 34px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-subtotal { align-self: center; margin-top: 6px; font-size: 16px; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.product-remove { align-self: start; margin: -8px -8px 0 0; }
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions { flex-direction: column; align-items: stretch; }
	/* Coupon: stacked, never wider than the screen */
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon {
		box-sizing: border-box;
		display: flex;
		flex: none;
		flex-wrap: wrap;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		padding: 0;
		border: 0;
		border-radius: 0;
	}
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon .input-text,
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon #coupon_code {
		box-sizing: border-box;
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		height: 48px;
		padding: 0 18px;
		border: 1.5px solid var(--fh-line);
		border-radius: 999px;
		background: #fff;
	}
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions .coupon .button {
		box-sizing: border-box;
		flex: 1 1 100%;
		width: 100%;
	}
	body.fh-cart-ui .woocommerce table.shop_table.cart td.actions > .button { width: 100%; }
	body.fh-cart-ui .woocommerce .cart-collaterals .cart_totals,
	body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) { padding-right: 18px; padding-left: 18px; border-radius: 16px; }
	body.fh-cart-ui .woocommerce #order_review_heading { padding: 22px 18px 6px; }
	body.fh-cart-ui .woocommerce #order_review { padding: 4px 18px 20px; }
	body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) { grid-template-columns: minmax(0, 1fr); }
	body.fh-cart-ui .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) :is(.form-row-first, .form-row-last) { grid-column: 1; }
	body.fh-cart-ui .woocommerce form .form-row :is(input.input-text, select) { font-size: 16px; } /* stops iOS zoom */
	body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info) .button { margin-left: 0; }
}

/* ==========================================================================
   Floating WhatsApp chat
   ========================================================================== */
.fh-wa {
	--fh-wa-color: #25d366;
	--fh-wa-dark: #128c7e;
	--fh-wa-size: 60px;
	position: fixed;
	bottom: var(--fh-wa-bottom, 24px);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: var(--fh-font-body, inherit);
}
.fh-wa--right { right: var(--fh-wa-side, 24px); }
.fh-wa--left { left: var(--fh-wa-side, 24px); align-items: flex-start; }
.fh-wa--brand { --fh-wa-color: var(--fh-primary); --fh-wa-dark: var(--fh-primary-dark); }
@media (max-width: 767px) {
	.fh-wa--desktop { display: none; }
	body.single-product .fh-wa { bottom: calc(var(--fh-wa-bottom, 24px) + 64px); }
}
@media (min-width: 768px) { .fh-wa--mobile { display: none; } }

/* button */
body .fh-wa button.fh-wa__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	order: 3;
	width: var(--fh-wa-size);
	height: var(--fh-wa-size);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--fh-wa-color);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
body .fh-wa button.fh-wa__btn:hover,
body .fh-wa button.fh-wa__btn:focus-visible { background: var(--fh-wa-dark); color: #fff; transform: scale(1.05); }
body .fh-wa button.fh-wa__btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .8); outline-offset: 2px; }
.fh-wa__btn .fh-wa__label { display: none; }
.fh-wa__btn:has(.fh-wa__label) { width: auto; padding: 0 22px 0 18px; }
.fh-wa__btn:has(.fh-wa__label) .fh-wa__label { display: inline; }
.fh-wa__btn .fh-ico-x { display: none; }
.fh-wa.is-open .fh-wa__btn .fh-ico-whatsapp { display: none; }
.fh-wa.is-open .fh-wa__btn .fh-ico-x { display: inline-block; }
.fh-wa.is-open .fh-wa__btn .fh-wa__label { display: none; }
.fh-wa.is-open .fh-wa__btn:has(.fh-wa__label) { width: var(--fh-wa-size); padding: 0; }

/* pulse ring before first open */
.fh-wa__btn::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 999px;
	background: var(--fh-wa-color);
	content: "";
	opacity: 0;
	pointer-events: none;
}
.fh-wa.is-pulsing .fh-wa__btn::after { animation: fh-wa-pulse 2.4s ease-out 3; }
@keyframes fh-wa-pulse {
	0% { opacity: .55; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.9); }
}

/* teaser bubble */
.fh-wa__teaser {
	display: flex;
	align-items: center;
	gap: 8px;
	order: 2;
	max-width: 240px;
	padding: 11px 10px 11px 16px;
	border-radius: 18px;
	background: #fff;
	color: #111;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
	animation: fh-wa-in .25s ease-out;
}
.fh-wa__teaser[hidden] { display: none; }
body .fh-wa button.fh-wa__teaser-x {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef1ef;
	color: #555;
	cursor: pointer;
}
body .fh-wa button.fh-wa__teaser-x:hover { background: #111; color: #fff; }

/* panel */
.fh-wa__panel {
	order: 1;
	width: min(330px, calc(100vw - 32px));
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45);
	animation: fh-wa-in .22s ease-out;
}
.fh-wa__panel[hidden] { display: none; }
@keyframes fh-wa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fh-wa__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--fh-wa-dark); color: #fff; }
.fh-wa__avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .2); }
.fh-wa__avatar--icon { display: grid; place-items: center; color: #fff; }
.fh-wa__who { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.fh-wa__who strong { font-family: var(--fh-font); font-size: 16px; font-weight: 700; }
.fh-wa__who small { color: rgba(255, 255, 255, .8); font-size: 12.5px; }
body .fh-wa button.fh-wa__close { width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; background: transparent; color: #fff; }
body .fh-wa button.fh-wa__close:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.fh-wa__body { padding: 20px 16px; background: #ece5dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23ffffff' fill-opacity='.35'%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Ccircle cx='28' cy='22' r='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
.fh-wa__bubble {
	position: relative;
	max-width: 90%;
	padding: 12px 14px;
	border-radius: 4px 14px 14px 14px;
	background: #fff;
	color: #111;
	font-size: 14.5px;
	line-height: 1.5;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.fh-wa__bubble p { margin: 0 0 6px; }
.fh-wa__bubble p:last-child { margin: 0; }
.fh-wa__hours { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: #667; font-size: 12px; }

.fh-wa__form { display: flex; align-items: center; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid #e6e9e7; }
body .fh-wa input.fh-wa__input {
	flex: 1;
	width: 100%;
	height: 42px;
	min-width: 0;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--fh-line);
	border-radius: 999px;
	outline: 0;
	background: #fff;
	color: #111;
	font-family: inherit;
	font-size: 14.5px;
}
body .fh-wa input.fh-wa__input:focus { border-color: var(--fh-wa-color); box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
body .fh-wa button.fh-wa__send {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fh-wa-color);
	color: #fff;
	cursor: pointer;
}
body .fh-wa button.fh-wa__send:hover { background: var(--fh-wa-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.fh-wa__panel, .fh-wa__teaser { animation: none; }
	.fh-wa.is-pulsing .fh-wa__btn::after { animation: none; }
	body .fh-wa button.fh-wa__btn:hover { transform: none; }
}

/* Buttons inside WooCommerce notices ("View cart" after add to cart).
   On product pages the notice sits outside any .woocommerce wrapper, so the
   general button rules above never reached it. */
body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a, button).button.button,
body.fh-buttons .woocommerce-notices-wrapper :is(a, button).button.button:not(.fh-btn),
body.fh-buttons .woocommerce-notices-wrapper :is(a, button).wc-forward.wc-forward:not(.fh-btn) {
	display: inline-flex;
	order: 2;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	margin: 0 0 0 auto;
	padding: 0 20px;
	border: 1.5px solid var(--fh-black);
	border-radius: 999px;
	background: #fff;
	color: var(--fh-black);
	font-family: var(--fh-font-body);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	float: none;
	transition: background-color .2s, color .2s;
}
body.fh-cart-ui :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a, button).button.button:is(:hover, :focus-visible),
body.fh-buttons .woocommerce-notices-wrapper :is(a, button).button.button:not(.fh-btn):is(:hover, :focus-visible),
body.fh-buttons .woocommerce-notices-wrapper :is(a, button).wc-forward.wc-forward:not(.fh-btn):is(:hover, :focus-visible) {
	background: var(--fh-black);
	color: #fff;
}
/* the notice itself, when it is printed outside a .woocommerce wrapper */
body.fh-cart-ui .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { margin-bottom: 24px; }
