/* This stylesheet targets only the dedicated Elementor product form widget. */
.ehcw-product-form-widget,
.ehcw-product-form-widget *,
.ehcw-product-form-widget *::before,
.ehcw-product-form-widget *::after {
	box-sizing: border-box !important;
}

.ehcw-product-form-widget {
	display: block !important;
	width: 100%;
	min-width: 0;
	direction: inherit;
	color: var(--e-global-color-text, inherit);
	font-family: var(--e-global-typography-text-font-family, inherit);
	font-size: var(--e-global-typography-text-font-size, inherit);
	font-weight: var(--e-global-typography-text-font-weight, inherit);
	line-height: var(--e-global-typography-text-line-height, inherit);
	letter-spacing: var(--e-global-typography-text-letter-spacing, normal);
}

.ehcw-product-form-widget .ehcw-product-form {
	display: flex !important;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0 solid transparent;
	background-color: transparent;
}

.ehcw-product-form-widget .ehcw-product-attributes {
	display: flex !important;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-attribute-row {
	display: flex !important;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-attribute-heading {
	display: flex !important;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-attribute-label {
	margin: 0;
	padding: 0;
	color: var(--e-global-color-text, #111111);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.ehcw-product-form-widget .ehcw-selected-value {
	min-height: 1em;
	color: var(--e-global-color-secondary, #777777);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

.ehcw-product-form-widget .ehcw-native-select-wrap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap;
}

.ehcw-product-form-widget .ehcw-native-select-wrap.is-visible {
	position: static !important;
	width: 100%;
	height: auto;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal;
}

.ehcw-product-form-widget .ehcw-variation-select {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: block !important;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #d8d8d8;
	border-radius: 50px;
	background-color: #fff;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: left 20px center, left 14px center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	color: var(--e-global-color-text, #111111);
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	outline: 0;
}

.ehcw-product-form-widget .ehcw-swatch-list {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-swatch {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	margin: 0;
	padding: 7px 14px;
	overflow: hidden !important;
	border: 1px solid #d8d8d8;
	border-radius: 50px;
	background-color: #fff;
	background-image: none;
	color: var(--e-global-color-text, #111111);
	box-shadow: none;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: border-color .22s ease, background-color .22s ease, color .22s ease, transform .22s ease, opacity .22s ease;
}

.ehcw-product-form-widget .ehcw-swatch:hover {
	border-color: var(--e-global-color-text, #111111);
	background: #f7f7f7;
	color: var(--e-global-color-text, #111111);
	transform: translateY(-1px) !important;
}

.ehcw-product-form-widget .ehcw-swatch.is-selected:not(.ehcw-swatch-color):not(.ehcw-swatch-image) {
	border-color: var(--e-global-color-text, #111111);
	background-color: var(--e-global-color-text, #111111);
	color: #fff;
}

.ehcw-product-form-widget .ehcw-swatch-color,
.ehcw-product-form-widget .ehcw-swatch-image {
	width: 48px;
	min-width: 48px;
	padding: 4px;
	border-radius: 50%;
}

.ehcw-product-form-widget .ehcw-swatch-media {
	display: block !important;
	width: 100%;
	height: 100%;
	overflow: hidden !important;
	border-radius: 50%;
	background: var(--ehcw-swatch-color, #eee);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.ehcw-product-form-widget .ehcw-swatch-media img {
	display: block !important;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 solid transparent;
	border-radius: inherit;
	object-fit: cover !important;
}

.ehcw-product-form-widget .ehcw-swatch-color.is-selected,
.ehcw-product-form-widget .ehcw-swatch-image.is-selected {
	border-color: var(--e-global-color-text, #111111);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--e-global-color-text, #111111);
}

.ehcw-product-form-widget .ehcw-swatch.is-disabled,
.ehcw-product-form-widget .ehcw-swatch:disabled {
	opacity: .32;
	filter: grayscale(1);
	cursor: not-allowed;
	transform: none !important;
}

.ehcw-product-form-widget .ehcw-swatch.is-disabled::after,
.ehcw-product-form-widget .ehcw-swatch:disabled::after {
	content: '' !important;
	position: absolute !important;
	inset-inline-start: 10% !important;
	top: 50% !important;
	width: 80%;
	height: 1px;
	background: currentColor;
	transform: rotate(-35deg) !important;
	transform-origin: center;
}

.ehcw-product-form-widget .ehcw-reset-variations {
	-webkit-appearance: none !important;
	appearance: none !important;
	align-self: flex-start;
	margin: -8px 0 0;
	padding: 0 0 2px;
	border: 0 solid transparent;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	color: var(--e-global-color-secondary, #777777);
	box-shadow: none;
	font: inherit;
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
}

.ehcw-product-form-widget .ehcw-single-variation-wrap {
	display: block !important;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-product-variation-result {
	display: block !important;
	margin: 0 0 18px;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-product-variation-result:empty {
	display: none !important;
}

.ehcw-product-form-widget .ehcw-product-variation-result .woocommerce-variation-description,
.ehcw-product-form-widget .ehcw-product-variation-result .woocommerce-variation-price,
.ehcw-product-form-widget .ehcw-product-variation-result .woocommerce-variation-availability {
	margin: 0 0 8px;
	padding: 0;
}

.ehcw-product-form-widget.ehcw-hide-variation-price .woocommerce-variation-price,
.ehcw-product-form-widget.ehcw-hide-variation-stock .woocommerce-variation-availability {
	display: none !important;
}

.ehcw-product-form-widget .ehcw-product-variation-result .price {
	margin: 0;
	color: var(--e-global-color-text, #111111);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.ehcw-product-form-widget .ehcw-product-variation-result .price del {
	margin-inline-end: 7px;
	color: var(--e-global-color-secondary, #777777);
	opacity: 1;
	font-weight: 400;
}

.ehcw-product-form-widget .ehcw-product-variation-result .price ins {
	color: inherit;
	text-decoration: none;
}

.ehcw-product-form-widget .ehcw-product-variation-result .stock {
	margin: 0;
	color: #2e7d32;
	font: inherit;
	font-size: 13px;
	line-height: 1.6;
}

.ehcw-product-form-widget .ehcw-product-main-row {
	display: flex !important;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-product-quantity {
	display: grid !important;
	grid-template-columns: minmax(34px, 1fr) minmax(40px, 1fr) minmax(34px, 1fr);
	flex: 0 0 auto;
	width: 128px;
	height: 54px;
	margin: 0;
	padding: 0;
	overflow: hidden !important;
	border: 1px solid #d8d8d8;
	border-radius: 50px;
	background-color: #fff;
}

.ehcw-product-form-widget .ehcw-product-qty-button,
.ehcw-product-form-widget .ehcw-product-qty-input {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0 solid transparent;
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	color: var(--e-global-color-text, #111111);
	box-shadow: none;
	font: inherit;
	line-height: 1;
	text-align: center;
}

.ehcw-product-form-widget .ehcw-product-qty-button {
	font-size: 19px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color .2s ease;
}

.ehcw-product-form-widget .ehcw-product-qty-button:hover {
	background: #f4f4f4;
}

.ehcw-product-form-widget .ehcw-product-qty-input {
	border-inline: 1px solid rgba(0, 0, 0, .08);
	font-size: 13px;
	font-weight: 600;
	-moz-appearance: textfield !important;
}

.ehcw-product-form-widget .ehcw-product-qty-input::-webkit-outer-spin-button,
.ehcw-product-form-widget .ehcw-product-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none !important;
}

.ehcw-product-form-widget .ehcw-product-add-button,
.ehcw-product-form-widget .ehcw-product-buy-now {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 0;
	min-height: 54px;
	margin: 0;
	padding: 12px 26px;
	border: 1px solid var(--e-global-color-text, #111111);
	border-radius: 50px;
	background-image: none;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: color .24s ease, background-color .24s ease, border-color .24s ease, transform .24s ease, opacity .24s ease;
}

.ehcw-product-form-widget .ehcw-product-add-button {
	flex: 1 1 auto;
	background-color: var(--e-global-color-text, #111111);
	color: #fff;
}

.ehcw-product-form-widget .ehcw-product-add-button:hover:not(:disabled) {
	border-color: var(--e-global-color-accent, #72604c);
	background-color: var(--e-global-color-accent, #72604c);
	color: #fff;
	transform: translateY(-1px) !important;
}

.ehcw-product-form-widget .ehcw-product-buy-now {
	width: 100%;
	margin-top: 10px;
	background-color: #fff;
	color: var(--e-global-color-text, #111111);
}

.ehcw-product-form-widget .ehcw-product-buy-now:hover:not(:disabled) {
	background-color: var(--e-global-color-text, #111111);
	color: #fff;
	transform: translateY(-1px) !important;
}

.ehcw-product-form-widget .ehcw-product-buy-now svg {
	display: block !important;
	width: 18px;
	height: 18px;
	fill: none;
	transform: scaleX(-1) !important;
}

.ehcw-product-form-widget .ehcw-product-add-button:disabled,
.ehcw-product-form-widget .ehcw-product-buy-now:disabled {
	opacity: .45;
	cursor: not-allowed;
	transform: none !important;
}

.ehcw-product-form-widget .ehcw-product-button-spinner {
	display: none !important;
	width: 17px;
	height: 17px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: ehcw-product-spin .65s linear infinite !important;
}

.ehcw-product-form-widget.is-loading .ehcw-product-button-spinner {
	display: block !important;
}

.ehcw-product-form-widget .ehcw-product-wishlist {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	margin: 0;
	padding: 0;
}

.ehcw-product-form-widget .ehcw-product-wishlist > * {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0;
	padding: 0;
	border: 1px solid #d8d8d8;
	border-radius: 50%;
	background-color: #fff;
	background-image: none;
	color: var(--e-global-color-text, #111111);
	box-shadow: none;
	text-decoration: none;
}

.ehcw-product-form-widget .ehcw-product-message {
	min-height: 0;
	margin: 0;
	padding: 0;
	color: #b42318;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
}

.ehcw-product-form-widget .ehcw-product-message:empty {
	display: none !important;
}

.ehcw-product-form-widget .ehcw-product-message.is-success {
	color: #2e7d32;
}

.ehcw-product-editor-message {
	padding: 18px;
	border: 1px dashed #bbb;
	border-radius: 8px;
	background: #fafafa;
	color: #555;
	font-size: 13px;
	line-height: 1.8;
	text-align: center;
}

@keyframes ehcw-product-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.ehcw-product-form-widget .ehcw-product-main-row {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ehcw-product-form-widget *,
	.ehcw-product-form-widget *::before,
	.ehcw-product-form-widget *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms;
	}
}

/* WooCommerce may append this link after its added_to_cart event.
   It is hidden only inside this custom widget; default WooCommerce forms remain untouched. */
.ehcw-product-form-widget a.added_to_cart.wc-forward {
	display: none !important;
	visibility: hidden !important;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden !important;
}

/*
 * Visual values are intentionally controlled by Elementor.
 * Only structural behavior is fixed here. No font is loaded from the
 * reference site or from the active WordPress theme.
 */
.ehcw-product-form-widget .ehcw-product-form,
.ehcw-product-form-widget .ehcw-product-form button,
.ehcw-product-form-widget .ehcw-product-form input,
.ehcw-product-form-widget .ehcw-product-form select {
	font-family: inherit;
}

.ehcw-product-form-widget .ehcw-attribute-type-dropdown .ehcw-swatch-list {
	display: none !important;
}

.ehcw-product-form-widget .ehcw-attribute-type-dropdown .ehcw-native-select-wrap {
	position: static !important;
	width: 100%;
	height: auto;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal;
}

.ehcw-product-form-widget .ehcw-attribute-type-color .ehcw-swatch,
.ehcw-product-form-widget .ehcw-attribute-type-image .ehcw-swatch {
	flex: 0 0 auto;
}

.ehcw-product-form-widget .ehcw-variation-select:focus,
.ehcw-product-form-widget .ehcw-swatch:focus-visible,
.ehcw-product-form-widget .ehcw-product-qty-button:focus-visible,
.ehcw-product-form-widget .ehcw-product-add-button:focus-visible,
.ehcw-product-form-widget .ehcw-product-buy-now:focus-visible {
	outline: 0;
}

.ehcw-product-form-widget .ehcw-product-form button::before,
.ehcw-product-form-widget .ehcw-product-form button::after {
	box-shadow: none;
}

/* Elementor-first cascade: structure is protected, appearance remains editable. */
.ehcw-product-form-widget .ehcw-product-form :where(button, input, select, a, span, label, p, div) {
	font-family: inherit;
}
.ehcw-product-form-widget .ehcw-product-form :where(button, input, select) {
	text-transform: inherit;
	letter-spacing: inherit;
}
.ehcw-product-form-widget .ehcw-product-form :where(button, a) {
	text-decoration: none;
}
