.ethenic-product-options {
	margin: 1.25em 0;
	padding: 1em 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.ethenic-product-options__blouse {
	margin-top: 1.25em;
}
.ethenic-product-options__blouse,
.ethenic-product-options__addons {
	margin-bottom: 1.25em;
}

.ethenic-product-options__checkbox-label {
	cursor: pointer;
	font-weight: 600;
}

.ethenic-product-options__designs-title,
.ethenic-product-options__addons-title {
	margin: 0.75em 0 0.5em;
	font-size: 1em;
}

.ethenic-blouse-design-list {
	list-style-type: none;
	margin: 0;
	padding: 0px !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
}

.ethenic-blouse-design-list__item {
	margin: 0;
}

.ethenic-blouse-design-list__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ethenic-blouse-design-list__label {
	display: block;
	cursor: pointer;
}

.ethenic-blouse-design-list__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35em;
	padding: 0.5em;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ethenic-blouse-design-list__radio:focus-visible + .ethenic-blouse-design-list__card {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ethenic-blouse-design-list__radio:checked + .ethenic-blouse-design-list__card {
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}

.ethenic-blouse-design-list__card img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
}

.ethenic-blouse-design-list__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: #f3f3f3;
	border-radius: 2px;
}

.ethenic-blouse-design-list__title {
	font-size: 0.9em;
	font-weight: 600;
	text-align: center;
	line-height: 1.25;
}

.ethenic-addon-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ethenic-addon-list__item {
	margin: 0.35em 0;
}

.ethenic-addon-list__label {
	cursor: pointer;
}

.ethenic-addon-list__line {
	display: inline;
}

.ethenic-addon-list__price {
	color: #cab058;
	font-size: 0.95em;
}

.ethenic-addon-list__price .woocommerce-Price-amount,
.ethenic-addon-list__price .woocommerce-Price-amount bdi,
.ethenic-addon-list__price .woocommerce-Price-currencySymbol {
	color: inherit;
}

.ethenic-product-options__notice {
	font-size: 0.9em;
	color: #666;
}

/* Price totals (product + options + grand) */
.ethenic-price-totals {
	margin-top: 1.25em;
	padding-top: 1em;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ethenic-price-totals__list {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ethenic-price-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0;
}

.ethenic-price-totals__dt {
	margin: 0;
	font-size: 0.9em;
	color: #444;
	font-weight: 500;
}

.ethenic-price-totals__dd {
	margin: 0;
	text-align: right;
	font-size: 0.95em;
	font-weight: 600;
	color: #111;
}

.ethenic-price-totals__row--grand .ethenic-price-totals__dt {
	font-size: 1em;
	font-weight: 600;
	color: #111;
}

.ethenic-price-totals__row--grand .ethenic-price-totals__dd {
	font-size: 1.05em;
}

.ethenic-price-totals__amount--grand {
	font-weight: 700;
}

/* Made to measure (border only on .ethenic-product-options — avoids double rule above this block) */
.ethenic-m2m {
	margin: 0.75em 0 0;
	padding: 0.35em 0 0;
	border-top: 0;
}

.ethenic-m2m__title {
	margin: 0 0 0.35em;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: #666;
}

.ethenic-m2m.ethenic-m2m--panel-active .ethenic-m2m__title {
	color: #000;
	font-weight: 600;
}

.ethenic-m2m__intro {
	margin: 0 0 1em;
	font-size: 0.9em;
	color: #555;
}

.ethenic-m2m__units {
	margin: 0 0 0.65em;
	font-size: 0.9em;
	font-weight: 600;
	color: #333;
}

.ethenic-m2m__fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding-bottom: 1rem;
}

.ethenic-m2m__row {
	display: grid;
	gap: 0.75rem 1rem;
	width: 100%;
	align-items: end;
}

.ethenic-m2m__row--measurements {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ethenic-m2m__row--sleeves {
	grid-template-columns: minmax(0, 1fr);
}

/* Sleeve length | Skirt waist | Skirt length — 3 cols when Sleeves; 2 cols when Sleeveless */
.ethenic-m2m__row--skirt-trio {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ethenic-m2m__row--skirt-trio.ethenic-m2m__row--sleeveless-mode {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ethenic-m2m__row--skirt-trio .ethenic-js-m2m-sleeve-length-wrap[hidden] {
	display: none !important;
}

@media (max-width: 640px) {
	.ethenic-m2m__row--measurements {
		grid-template-columns: 1fr;
	}

	.ethenic-m2m__row--skirt-trio,
	.ethenic-m2m__row--skirt-trio.ethenic-m2m__row--sleeveless-mode {
		grid-template-columns: 1fr;
	}
}

.ethenic-m2m__field {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.ethenic-m2m__label {
	font-weight: 500;
	font-size: 0.95em;
}

.ethenic-m2m__input {
	width: 100%;
	max-width: 100%;
	padding: 0.45em 0.6em;
	font-size: 1em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 3px;
}

.ethenic-m2m__fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.ethenic-m2m__fieldset--sleeves {
	width: 100%;
}

.ethenic-m2m__legend {
	font-weight: 600;
	padding: 0;
	margin: 0 0 0.35em;
	font-size: 0.95em;
}

.ethenic-m2m__sleeve-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
}

.ethenic-m2m__radio-label {
	font-weight: 400;
	cursor: pointer;
}

.ethenic-m2m__trigger {
	display: inline-block;
	margin-top: 0.5em;
	margin-left: 0.35em;
	padding: 0.45em 0.85em;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: #c4a574;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 3px;
	cursor: pointer;
	vertical-align: middle;
}

.ethenic-m2m__trigger:hover,
.ethenic-m2m__trigger:focus-visible {
	background: #000;
	color: #fff;
}

form.variations_form.ethenic-m2m--active .ethenic-m2m__trigger,
form.variations_form.ethenic-m2m--active .ethenic-m2m__trigger:hover,
form.variations_form.ethenic-m2m--active .ethenic-m2m__trigger:focus-visible {
	color: #fff;
	background: #000;
	border-color: #fff;
}

.ethenic-m2m__config-notice {
	margin-bottom: 1em;
}

/* MTM mode: hide second variation attribute (Length) only */
form.variations_form.ethenic-m2m--active .ethenic-js-m2m-row-length {
	display: none !important;
}

/* MTM: measurements incomplete — ATC held disabled by script */
form.cart .single_add_to_cart_button[disabled][data-ethenic-mtm-atc-hold="1"],
form.cart .single_add_to_cart_button[aria-disabled="true"][data-ethenic-mtm-atc-hold="1"] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* Pre-order (WhatsApp-only): hide add to cart, keep variation form */
body.ethenic-preorder-product form.cart .single_add_to_cart_button,
body.ethenic-preorder-product form.cart input[type="submit"].single_add_to_cart_button {
	display: none !important;
}

.ethenic-preorder-whatsapp {
	margin-top: 1.25em;
	padding-top: 1em;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ethenic-preorder-whatsapp__price-totals {
	margin-bottom: 1em;
}

.ethenic-preorder-whatsapp__price-totals .ethenic-price-totals {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.ethenic-preorder-whatsapp__note,
.ethenic-preorder-whatsapp__info {
	margin: 0 0 1em;
	font-size: 0.9em;
	color: #555;
	line-height: 1.5;
}

.ethenic-preorder-whatsapp__info--dialog {
	margin-top: -0.35em;
}

.ethenic-preorder-whatsapp__fields {
	display: grid;
	gap: 0.85rem;
	margin-bottom: 1rem;
	max-width: 100%;
}

@media (max-width: 640px) {
	.ethenic-preorder-whatsapp__fields {
		max-width: none;
	}
}

.ethenic-preorder-whatsapp__dialog {
	max-width: min(100vw - 2rem, 26rem);
	width: 100%;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.ethenic-preorder-whatsapp__dialog::backdrop {
	background: rgba(0, 0, 0, 0.45);
}

.ethenic-preorder-whatsapp__dialog--polyfill {
	position: fixed;
	inset: 0;
	margin: auto;
	z-index: 100000;
	max-height: calc(100vh - 2rem);
	overflow: auto;
}

.ethenic-preorder-whatsapp__dialog-inner {
	padding: 1.25rem 1.25rem 1rem;
}

.ethenic-preorder-whatsapp__dialog-title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.ethenic-preorder-whatsapp__dialog .ethenic-preorder-whatsapp__fields {
	margin-bottom: 1.25rem;
}

.ethenic-preorder-whatsapp__dialog-actions {
	margin-top: 0;
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ethenic-preorder-whatsapp__payment-terms {
	margin: 0 0 1rem;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.5;
	color: #2a2520;
}

.ethenic-preorder-whatsapp__payment-terms[hidden] {
	display: none;
}

.ethenic-preorder-whatsapp__dialog-actions .ethenic-preorder-whatsapp__dialog-continue {
	width: 100%;
	max-width: none;
	margin-top: 0;
}

/* Match primary preorder CTA (dark bg, light text) — theme .button.alt overrides */
.ethenic-preorder-whatsapp__cta.button.alt,
.ethenic-preorder-whatsapp__cta.button.alt:hover,
.ethenic-preorder-whatsapp__cta.button.alt:focus {
	background-color: #2a2520 !important;
	color: #fff !important;
	border-color: #2a2520 !important;
	box-shadow: none;
}

.ethenic-preorder-whatsapp__cta.button.alt:hover {
	filter: brightness(1.08);
}

.ethenic-preorder-whatsapp__cta.button.alt:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ethenic-preorder-whatsapp__label {
	display: block;
	font-weight: 600;
	font-size: 0.95em;
	margin-bottom: 0.35em;
}

.ethenic-preorder-whatsapp__input,
.ethenic-preorder-whatsapp__textarea {
	width: 100%;
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.45em 0.6em !important;
	font-size: 1em;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
	border-radius: 3px;
}

.ethenic-preorder-whatsapp__textarea {
	resize: vertical;
	min-height: 4.5em;
}

.ethenic-preorder-whatsapp > .ethenic-preorder-whatsapp__button {
	width: 100%;
	max-width: 32rem;
	margin-top: 0.25em;
}
