/**
 * GHAWALI "Choose Your Fit" purchase section (Standard Size / Custom
 * Measurements). Scoped entirely under .ghwl-fit / .ghwl-fit__* so it never
 * collides with other plugin or theme styles.
 *
 * @package GhawaliiDesign
 */

.ghwl-fit {
	--ghwl-fit-cream: #faf6ef;
	--ghwl-fit-cream-active: #f1e9db;
	--ghwl-fit-ink: #111111;
	--ghwl-fit-border: rgba(17, 17, 17, 0.16);
	--ghwl-fit-border-strong: #111111;
	--ghwl-fit-error: #b3261e;
	--ghwl-fit-radius: 14px;

	order: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 12px 10px;
	background: var(--ghwl-fit-cream);
	border: 1px solid var(--ghwl-fit-border);
	border-radius: var(--ghwl-fit-radius);
	color: var(--ghwl-fit-ink);
	box-sizing: border-box;
}

.ghwl-fit *,
.ghwl-fit *::before,
.ghwl-fit *::after {
	box-sizing: border-box;
}

/*
 * Mode/measurement panels are shown and hidden purely via the `hidden`
 * attribute (see ghwl-fit-single-product.js selectMode()/setCustomState()).
 * Several elements below (.ghwl-fit__panel, .ghwl-fit__measure-form, etc.)
 * set their own `display` unconditionally for the visible state, which -
 * being an author rule - beats the UA stylesheet's `[hidden] { display:
 * none }` default even though both are equal specificity. Without this
 * guard the "hidden" panel stays laid out and visible (e.g. Standard Size
 * chips remaining on screen after switching to Custom Measurements).
 */
.ghwl-fit [hidden] {
	display: none !important;
}

.ghwl-fit__heading {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--ghwl-fit-ink);
}

/* Mode cards */
.ghwl-fit__modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ghwl-fit__mode-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	color: var(--ghwl-fit-ink);
	text-align: start;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ghwl-fit__mode-card:hover {
	background: var(--ghwl-fit-cream-active);
}

.ghwl-fit__mode-card.is-selected {
	border-color: var(--ghwl-fit-border-strong);
	border-width: 2px;
	padding: 11px 13px;
	background: #fff;
}

.ghwl-fit__mode-check {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	border-radius: 50%;
	border: 1.5px solid var(--ghwl-fit-border);
	position: relative;
}

.ghwl-fit__mode-card.is-selected .ghwl-fit__mode-check {
	border-color: var(--ghwl-fit-border-strong);
}

.ghwl-fit__mode-card.is-selected .ghwl-fit__mode-check::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--ghwl-fit-border-strong);
}

.ghwl-fit__mode-label {
	font-size: 14px;
	font-weight: 500;
}

/* Panels */
.ghwl-fit__panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ghwl-fit__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ghwl-fit__panel-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ghwl-fit__guide-link {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	color: var(--ghwl-fit-ink);
	cursor: pointer;
}

/* Size chips */
.ghwl-fit__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ghwl-fit__chip {
	min-width: 52px;
	padding: 9px 14px;
	background: var(--ghwl-fit-cream);
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	color: var(--ghwl-fit-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ghwl-fit__chip:hover {
	border-color: var(--ghwl-fit-border-strong);
}

.ghwl-fit__chip.is-selected {
	background: var(--ghwl-fit-border-strong);
	color: #fff;
	border-color: var(--ghwl-fit-border-strong);
}

.ghwl-fit__error {
	margin: 0;
	font-size: 13px;
	color: var(--ghwl-fit-error);
}

.ghwl-fit__error[hidden] {
	display: none;
}

/* Custom measurements: intro / summary */
.ghwl-fit__measure-intro,
.ghwl-fit__measure-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 10px;
}

.ghwl-fit__measure-intro[hidden],
.ghwl-fit__measure-summary[hidden] {
	display: none;
}

.ghwl-fit__measure-intro p,
.ghwl-fit__measure-summary p {
	margin: 2px 0 0;
	font-size: 13px;
	opacity: 0.75;
}

.ghwl-fit__enter-btn,
.ghwl-fit__edit-btn {
	flex: 0 0 auto;
	padding: 9px 18px;
	background: var(--ghwl-fit-ink);
	color: #fff;
	border: 1px solid var(--ghwl-fit-ink);
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.ghwl-fit__edit-btn {
	background: transparent;
	color: var(--ghwl-fit-ink);
}

/* Measurement form */
.ghwl-fit__measure-form {
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ghwl-fit__measure-form[hidden] {
	display: none;
}

.ghwl-fit__measure-form-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.ghwl-fit__measure-form-subtitle {
	margin: -8px 0 0;
	font-size: 13px;
	opacity: 0.75;
}

.ghwl-fit__measure-form {
	container-type: inline-size;
}

/* Desktop keeps the original compact split layout: fields on the left,
   measurement guide on the right. Only actual mobile widths stack them. */
.ghwl-fit__measure-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	gap: 14px;
	align-items: start;
}

.ghwl-fit__measure-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.ghwl-fit__measure-group {
	margin: 0;
	padding: 0;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ghwl-fit__measure-group legend {
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.7;
}

.ghwl-fit__measure-group-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}

.ghwl-fit__field {
	display: grid;
	grid-template-rows: minmax(32px, auto) auto;
	align-content: start;
	gap: 6px;
	min-width: 0;
	font-size: 12px;
	line-height: 1.35;
}

.ghwl-fit__field > span {
	display: flex;
	align-items: flex-end;
	min-height: 32px;
	overflow-wrap: anywhere;
}

.ghwl-fit__field--notes {
	grid-column: 1 / -1;
}

.ghwl-fit__field input,
.ghwl-fit__field textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	color: var(--ghwl-fit-ink);
	box-sizing: border-box;
}

.ghwl-fit__field input {
	min-height: 44px;
}

.ghwl-fit__field textarea {
	min-height: 96px;
	resize: vertical;
}

.ghwl-fit__field input:focus-visible,
.ghwl-fit__field textarea:focus-visible,
.ghwl-fit__chip:focus-visible,
.ghwl-fit__mode-card:focus-visible,
.ghwl-fit__enter-btn:focus-visible,
.ghwl-fit__edit-btn:focus-visible,
.ghwl-fit__save-btn:focus-visible,
.ghwl-fit__cancel-btn:focus-visible,
.ghwl-fit__guide-link:focus-visible,
.ghwl-fit-qty__btn:focus-visible {
	outline: 2px solid var(--ghwl-fit-ink);
	outline-offset: 2px;
}

.ghwl-fit__confirm {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
}

.ghwl-fit__measure-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ghwl-fit__save-btn,
.ghwl-fit__cancel-btn {
	padding: 10px 20px;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.ghwl-fit__save-btn {
	background: var(--ghwl-fit-ink);
	color: #fff;
	border: 1px solid var(--ghwl-fit-ink);
}

.ghwl-fit__cancel-btn {
	background: transparent;
	color: var(--ghwl-fit-ink);
	border: 1px solid var(--ghwl-fit-border);
}

/* How to Measure guide */
.ghwl-fit__guide {
	padding: 15px 12px 16px;
	background: var(--ghwl-fit-cream);
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 11px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	min-width: 0;
	height: 100%;
	align-self: stretch;
	color: var(--ghwl-fit-ink);
}

.ghwl-fit__guide-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.ghwl-fit__guide-svg {
	display: block;
	width: 100%;
	max-width: 142px;
	height: auto;
	margin: 0 auto;
	color: var(--ghwl-fit-ink);
	opacity: 0.9;
}

.ghwl-fit__guide-legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 7px;
	font-size: 10.5px;
	line-height: 1.35;
}

.ghwl-fit__guide-legend li {
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	align-items: start;
	gap: 4px;
	min-width: 0;
}

.ghwl-fit__guide-number {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.ghwl-fit__guide-tips {
	margin: 1px 0 0;
	padding: 13px 0 0;
	border-top: 1px solid color-mix(in srgb, var(--ghwl-fit-border) 75%, transparent);
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 10.5px;
	line-height: 1.45;
	opacity: 0.78;
}

.ghwl-fit__guide-tips li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	gap: 7px;
	text-align: start;
}

.ghwl-fit__guide-tips svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.45;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Quantity stepper (progressive enhancement over the native WooCommerce input) */
.ghwl-fit-qty {
	order: 2;
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--ghwl-fit-border);
	border-radius: 999px;
	overflow: hidden;
	width: fit-content;
}

.ghwl-fit-qty__btn {
	width: 38px;
	background: #fff;
	border: none;
	font-size: 16px;
	line-height: 1;
	color: var(--ghwl-fit-ink);
	cursor: pointer;
}

.ghwl-fit-qty__btn:hover {
	background: var(--ghwl-fit-cream-active);
}

.ghwl-single-cart-actions .quantity,
.ghawalii-single-cart-actions .quantity {
	margin: 0 !important;
	border: none !important;
}

.ghwl-fit-qty .quantity .qty,
.ghwl-fit-qty input.qty {
	width: 52px !important;
	text-align: center;
	border: none !important;
	background: #fff;
	-moz-appearance: textfield;
}

.ghwl-fit-qty input.qty::-webkit-outer-spin-button,
.ghwl-fit-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Purchase column ordering: Fit -> Quantity -> Gift box -> Add to Cart -> Buy Now. */
.ghawalii-single-cart-actions .ghwl-fit { order: 1 !important; }
.ghawalii-single-cart-actions .quantity { order: 2 !important; }
.ghawalii-single-cart-actions .ghawalii-gift-box-option { order: 3 !important; }
.ghawalii-single-cart-actions .single_add_to_cart_button { order: 4 !important; }
.ghawalii-single-cart-actions .ghawalii-buy-now { order: 5 !important; }

/*
 * Blocksy renders form.cart as a CSS grid and wraps the quantity input,
 * Add to Cart and Buy Now buttons together in its own .ct-cart-actions row.
 * That collapses the three into a single narrow grid column (turning the
 * pill buttons into circles) instead of the full-width stacked layout above.
 * Force both wrappers back to a full-width vertical stack so the existing
 * width:100% button rules actually have a full-width flex track to fill.
 */
body.single-product.ghawalii-design-active .ghawalii-single-summary-column .ghawalii-single-cart-actions form.cart {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

.ghawalii-single-cart-actions .ct-cart-actions {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	gap: 12px;
	/* .ct-cart-actions itself (not its children) is form.cart's actual flex
	   item now, so it needs its own order to land after .ghwl-fit / the gift
	   box option — the order rules on its descendants above no longer apply
	   since they aren't direct children of .ghawalii-single-cart-actions. */
	order: 10 !important;
}

.ghawalii-single-cart-actions .ct-cart-actions .single_add_to_cart_button,
.ghawalii-single-cart-actions .ct-cart-actions .ghawalii-buy-now {
	width: 100% !important;
}

.ghawalii-single-cart-actions .ct-cart-actions .quantity {
	align-self: flex-start;
}

/*
 * Blocksy's .ct-cart-actions > * rule gives every child flex: 1 1 180px for
 * its native horizontal row layout. In our forced column direction that
 * 180px flex-basis becomes a 180px *height* or drives excessive stretch, so
 * both buttons balloon to ~180px tall pills instead of a normal button.
 * Reset children to their natural size so min-height (54px) governs height.
 */
.ghawalii-single-cart-actions .ct-cart-actions > * {
	flex: 0 0 auto !important;
	height: auto !important;
}

/* Blocksy's native quantity +/- icon spans duplicate our own minus/plus
   buttons inside .ghwl-fit-qty; hide the native ones to avoid double controls. */
.ghawalii-single-cart-actions .ghwl-fit-qty > .ct-increase,
.ghawalii-single-cart-actions .ghwl-fit-qty > .ct-decrease {
	display: none !important;
}

/* RTL */
.ghwl-fit[dir="rtl"] .ghwl-fit__mode-card,
.ghwl-fit[dir="rtl"] .ghwl-fit__field {
	text-align: right;
}

.ghwl-fit[dir="rtl"] .ghwl-fit__field > span {
	justify-content: flex-start;
}

/* Desktop RTL keeps the guide beside the fields while mirroring order. */
.ghwl-fit[dir="rtl"] .ghwl-fit__measure-layout {
	grid-template-columns: 150px minmax(0, 1fr);
}

.ghwl-fit[dir="rtl"] .ghwl-fit__measure-fields {
	order: 2;
}

.ghwl-fit[dir="rtl"] .ghwl-fit__guide {
	order: 1;
}

.ghwl-fit[dir="rtl"] .ghwl-fit__guide-legend li,
.ghwl-fit[dir="rtl"] .ghwl-fit__guide-tips li {
	direction: rtl;
	grid-template-columns: 14px minmax(0, 1fr);
}

.ghwl-fit[dir="rtl"] .ghwl-fit__guide-tips li {
	grid-template-columns: 18px minmax(0, 1fr);
}

/* Mobile */
@media (max-width: 767px) {

	.ghwl-fit__guide {
		height: auto;
		padding: 18px 16px;
	}

	.ghwl-fit__guide-svg {
		max-width: 150px;
	}
	.ghwl-fit__modes {
		grid-template-columns: 1fr 1fr;
	}

	.ghwl-fit__measure-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ghwl-fit__measure-group-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ghwl-fit__field {
		grid-template-rows: auto auto;
	}

	.ghwl-fit__field > span {
		min-height: 0;
		align-items: flex-start;
	}

	.ghwl-fit[dir="rtl"] .ghwl-fit__measure-fields,
	.ghwl-fit[dir="rtl"] .ghwl-fit__guide {
		order: initial;
	}

	.ghwl-fit__measure-intro,
	.ghwl-fit__measure-summary {
		flex-direction: column;
		align-items: stretch;
	}

	.ghwl-fit__enter-btn,
	.ghwl-fit__edit-btn {
		width: 100%;
	}

	.ghwl-fit__measure-actions .ghwl-fit__save-btn,
	.ghwl-fit__measure-actions .ghwl-fit__cancel-btn {
		flex: 1 1 auto;
	}
}

@media (max-width: 380px) {
	.ghwl-fit__guide-legend {
		grid-template-columns: minmax(0, 1fr);
	}

	.ghwl-fit__modes {
		grid-template-columns: 1fr;
	}
}

/* Safe-area padding so full-width action buttons never sit under device chrome. */
@supports (padding: max(0px)) {
	.ghawalii-single-cart-actions {
		padding-bottom: max(0px, env(safe-area-inset-bottom));
	}
}

/* v5.2.15 — strict mobile Custom Measurements layout.
 * Keep every desktop feature and show the full-width guide before the fields on phones.
 */
@media screen and (max-width: 767px) {
	body.single-product .ghwl-fit,
	body.single-product .ghwl-fit * {
		box-sizing: border-box;
	}

	body.single-product .ghwl-fit__measure-form,
	body.single-product .ghwl-fit__measure-layout,
	body.single-product .ghwl-fit__measure-fields,
	body.single-product .ghwl-fit__measure-group,
	body.single-product .ghwl-fit__measure-group-grid,
	body.single-product .ghwl-fit__field,
	body.single-product .ghwl-fit__guide,
	body.single-product .ghwl-fit__confirm,
	body.single-product .ghwl-fit__measure-actions {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.single-product .ghwl-fit__measure-layout,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__measure-layout {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-auto-flow: row !important;
		gap: 20px !important;
		align-items: stretch !important;
	}

	body.single-product .ghwl-fit__measure-fields,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__measure-fields {
		order: 2 !important;
		display: flex !important;
		flex-direction: column !important;
	}

	body.single-product .ghwl-fit__guide,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide {
		order: 1 !important;
		position: static !important;
		float: none !important;
		align-self: stretch !important;
		height: auto !important;
		margin: 0 !important;
		padding: 20px 18px !important;
	}

	body.single-product .ghwl-fit__measure-group-grid,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__measure-group-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 14px !important;
	}

	body.single-product .ghwl-fit__field,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__field {
		display: grid !important;
		grid-template-rows: auto auto !important;
		gap: 7px !important;
	}

	body.single-product .ghwl-fit__field > span,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__field > span,
	body.single-product .ghwl-fit__field label,
	body.single-product .ghwl-fit__guide,
	body.single-product .ghwl-fit__guide * {
		min-height: 0 !important;
		max-width: 100% !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		hyphens: none !important;
	}

	body.single-product .ghwl-fit__field input,
	body.single-product .ghwl-fit__field textarea {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.single-product .ghwl-fit__guide-title {
		width: 100% !important;
		font-size: 18px !important;
		line-height: 1.45 !important;
	}

	body.single-product .ghwl-fit__guide-svg {
		width: min(100%, 190px) !important;
		max-width: 190px !important;
		height: auto !important;
	}

	body.single-product .ghwl-fit__guide-legend {
		width: 100% !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 18px !important;
		row-gap: 10px !important;
		font-size: 13px !important;
		line-height: 1.55 !important;
	}

	body.single-product .ghwl-fit__guide-legend li,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide-legend li {
		min-width: 0 !important;
		grid-template-columns: 20px minmax(0, 1fr) !important;
		gap: 7px !important;
	}

	body.single-product .ghwl-fit__guide-tips {
		width: 100% !important;
		font-size: 13px !important;
		line-height: 1.55 !important;
	}

	body.single-product .ghwl-fit__guide-tips li,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide-tips li {
		grid-template-columns: 22px minmax(0, 1fr) !important;
		gap: 10px !important;
	}

	body.single-product .ghwl-fit__confirm {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) !important;
		align-items: start !important;
		gap: 10px !important;
	}

	body.single-product .ghwl-fit__measure-actions {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 10px !important;
	}

	body.single-product .ghwl-fit__save-btn,
	body.single-product .ghwl-fit__cancel-btn,
	body.single-product .single_add_to_cart_button,
	body.single-product .ghawalii-buy-now {
		width: 100% !important;
		max-width: 100% !important;
		min-height: 50px !important;
	}

	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__measure-form-title,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__measure-form-subtitle,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__measure-group legend,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__field,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__field > span,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide-title,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide-legend,
	body.single-product .ghwl-fit[dir="rtl"] .ghwl-fit__guide-tips {
		text-align: right !important;
		direction: rtl !important;
	}

	body.single-product .ghwl-fit:not([dir="rtl"]) .ghwl-fit__measure-form-title,
	body.single-product .ghwl-fit:not([dir="rtl"]) .ghwl-fit__measure-form-subtitle,
	body.single-product .ghwl-fit:not([dir="rtl"]) .ghwl-fit__measure-group legend,
	body.single-product .ghwl-fit:not([dir="rtl"]) .ghwl-fit__field,
	body.single-product .ghwl-fit:not([dir="rtl"]) .ghwl-fit__field > span,
	body.single-product .ghwl-fit:not([dir="rtl"]) .ghwl-fit__guide {
		text-align: left !important;
		direction: ltr !important;
	}
}

@media screen and (max-width: 390px) {
	body.single-product .ghwl-fit__guide-legend {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
