/* 1.8.501 — Award / glassware Blank vs Engraved buttons + engraving text field.
   Scoped to body.idx-engrave-product. Does not edit engrave-options.css or 482. */

/* Equal-height pair; labels and prices stay vertically centered in each face. */
body.idx-engrave-product .idx-eo__choices {
	align-items: stretch;
}
body.idx-engrave-product .idx-eo__choice {
	display: flex;
	min-height: 4.6rem;
}
body.idx-engrave-product .idx-eo__face {
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .15rem;
	min-height: 4.6rem;
}
body.idx-engrave-product .idx-eo__price,
body.idx-engrave-product .idx-eo__price .woocommerce-Price-amount,
body.idx-engrave-product .idx-eo__price .amount,
body.idx-engrave-product .idx-eo__price bdi,
body.idx-engrave-product .idx-eo__price .woocommerce-Price-currencySymbol {
	color: inherit !important;
	background: transparent !important;
}

/* Hover, keyboard focus, and selected: slide-in navy fill stays; text stays yellow. */
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face {
	background-color: #0f143a !important;
	background-image: linear-gradient(#0f143a, #0f143a) !important;
	background-size: 100% 100% !important;
	color: #F3C91A !important;
	-webkit-text-fill-color: #F3C91A;
}
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face .idx-eo__name,
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face .idx-eo__price,
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face .idx-eo__price .woocommerce-Price-amount,
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face .idx-eo__price .amount,
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face .idx-eo__price bdi,
body.idx-engrave-product .idx-eo__choice:hover .idx-eo__face .idx-eo__price .woocommerce-Price-currencySymbol,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face .idx-eo__name,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face .idx-eo__price,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face .idx-eo__price .woocommerce-Price-amount,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face .idx-eo__price .amount,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face .idx-eo__price bdi,
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face .idx-eo__price .woocommerce-Price-currencySymbol,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__name,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price .woocommerce-Price-amount,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price .amount,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price bdi,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price .woocommerce-Price-currencySymbol {
	color: #F3C91A !important;
	-webkit-text-fill-color: #F3C91A !important;
	background: transparent !important;
}

/* Selected stays distinct from a hovered neighbor (yellow inset ring). */
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face {
	box-shadow: inset 0 0 0 2px #F3C91A;
	border-color: #0f143a;
}
body.idx-engrave-product .idx-eo__choice input:focus-visible + .idx-eo__face {
	outline: 3px solid #F3C91A;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #0f143a;
}
body.idx-engrave-product .idx-eo__choice input:checked:focus-visible + .idx-eo__face {
	box-shadow: inset 0 0 0 2px #F3C91A, 0 0 0 5px #0f143a;
}

/* Engraving text field — same family as the upload control. */
body.idx-engrave-product .idx-eo__text {
	margin: 0 0 .9rem;
}
body.idx-engrave-product .idx-eo__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 6.5rem;
	padding: .6rem .7rem;
	resize: vertical;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: #0f143a;
	background: #f6f6f8;
	border: 2px solid #0f143a;
	border-radius: 0;
	box-sizing: border-box;
}
body.idx-engrave-product .idx-eo__textarea:focus {
	outline: 3px solid #F3C91A;
	outline-offset: 2px;
}
body.idx-engrave-product .idx-eo__text-limit,
body.idx-engrave-product .idx-eo__or {
	margin: .4rem 0 0;
	font-size: 16px;
	opacity: .8;
}
body.idx-engrave-product .idx-eo__or {
	margin-top: .2rem;
	font-weight: 600;
	opacity: 1;
	color: #0f143a;
}

@media (prefers-reduced-motion: reduce) {
	body.idx-engrave-product .idx-eo__face { transition: none; }
}

/* Keep engraving-text line breaks in the custom cart and notes column. */
.idxcart-opts__row dd,
.idxcart-note {
	white-space: pre-line;
}
