/**
 * Extras for the tenth ucx design family (.ucx-product-intro hero with .ucx-qty-control and .ucx-order-cta). The design's own
 * styles come with the widgets; this only covers what the bridge adds: breadcrumb links, inert stars, rating bars, card links,
 * the size row (the design draws none) and the thumbnail rail for products with more pictures than the design shows.
 *
 * The design resets every property inside its widgets (all: revert, same weight as a plain class), so every rule below is
 * prefixed to win that tie.
 */

.elementor-widget-container .ucx-product-intro .ucx-breadcrumb a:not(#ucx-boost) {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.elementor-widget-container .ucx-product-intro .ucx-breadcrumb a:hover:not(#ucx-boost),
.elementor-widget-container .ucx-product-intro .ucx-breadcrumb a:focus-visible:not(#ucx-boost) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Rating stars only display the product's rating. */
.elementor-widget-container .ucx-star[disabled]:not(#ucx-boost) {
	cursor: default;
}
.elementor-widget-container .hlc-star-muted:not(#ucx-boost) {
	opacity: 0.28;
}

/* Reviewer count opens the reviews dialog. */
.elementor-widget-container .ucx-rating-meta [data-hlc-reviews-link]:not(#ucx-boost) {
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.elementor-widget-container .ucx-rating-meta span + span:not(#ucx-boost) {
	margin-left: 6px;
}

/* Star breakdown: real proportions instead of the design's fixed picture. */
.elementor-widget-container .ucx-rating-row-score[disabled]:not(#ucx-boost) {
	cursor: default;
	opacity: 1;
}
.elementor-widget-container .hlc-rbar:not(#ucx-boost) {
	display: block;
	flex: 1 1 auto;
	width: 200px;
	max-width: 200px;
	min-width: 60px;
	height: 10px;
	border-radius: 999px;
	background: #e6e6e6;
	overflow: hidden;
}
.elementor-widget-container .hlc-rbar i:not(#ucx-boost) {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #000;
}

/* Related card image becomes a link to that product. */
.elementor-widget-container .ucx-product-media:not(#ucx-boost) {
	position: relative;
}
.elementor-widget-container .hlc-card-link:not(#ucx-boost) {
	position: absolute;
	inset: 0;
	display: block;
}

/* Size row: the design draws none, so it borrows the look of the quantity control next to it. */
.elementor-widget-container .hlc-size:not(#ucx-boost) {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.elementor-widget-container .hlc-size-row:not(#ucx-boost) {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.elementor-widget-container .hlc-size-btn:not(#ucx-boost) {
	appearance: none;
	box-sizing: border-box;
	min-height: 32px;
	padding: 8px 16px;
	border: 0.8px solid rgb(40, 40, 40);
	border-radius: 25px;
	background: #fff;
	color: rgb(40, 40, 40);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.elementor-widget-container .hlc-size-btn:hover:not(#ucx-boost) {
	background: #f0f0f0;
}
.elementor-widget-container .hlc-size-btn.hlc-is-active:not(#ucx-boost) {
	background: #000;
	border-color: #000;
	color: #fff;
}
.elementor-widget-container .hlc-size-btn:focus-visible:not(#ucx-boost) {
	outline: 2px solid #000;
	outline-offset: 2px;
}
.elementor-widget-container .hlc-size-btn[disabled]:not(#ucx-boost) {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Quantity ends at the limit; buttons while busy or unavailable. */
.elementor-widget-container .ucx-qty-btn[disabled]:not(#ucx-boost) {
	opacity: 0.35;
	cursor: not-allowed;
}
.elementor-widget-container [data-hlc-action].is-busy:not(#ucx-boost) {
	opacity: 0.75;
	pointer-events: none;
}
.elementor-widget-container [data-hlc-action][disabled]:not(#ucx-boost),
.elementor-widget-container [data-hlc-action][aria-disabled="true"]:not(#ucx-boost) {
	opacity: 0.5;
	cursor: not-allowed;
}
.elementor-widget-container [data-hlc-action][aria-disabled="true"]:not([disabled]):not(#ucx-boost) {
	pointer-events: none;
}

/* Validation / failure message under the buttons. */
.elementor-widget-container .ucx-product-intro .hlc-msg:not(#ucx-boost) {
	display: none;
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: #b3261e;
}
.elementor-widget-container .ucx-product-intro .hlc-msg.is-visible:not(#ucx-boost) {
	display: block;
}

/* Hero button labels stay on one line. */
.elementor-widget-container .ucx-order-cta .ucx-btn:not(#ucx-boost) {
	white-space: nowrap;
}

/* The design shows five thumbnails exactly; a product with more pictures scrolls the row sideways. */
.elementor-widget-container .ucx-intro-thumbs:not(#ucx-boost) {
	overflow-x: auto;
	scrollbar-width: thin;
}
.elementor-widget-container .ucx-intro-thumbs > li:not(#ucx-boost) {
	flex: 0 0 auto;
}

/* The design fixes the price block and the buttons at a set width; a phone column is narrower. */
@media (max-width: 480px) {
	.elementor-widget-container .ucx-product-intro .ucx-pricing:not(#ucx-boost),
	.elementor-widget-container .ucx-product-intro .ucx-order-cta:not(#ucx-boost) {
		width: 100%;
		max-width: 100%;
	}
}
/* The design fixes the price row at 41px, but stacks the old price under the new one, so it spilled onto the next option. */
.elementor-widget-container .ucx-product-intro .ucx-price-line:not(#ucx-boost) {
	height: auto;
	min-height: 41px;
}

/* In the review card the stars sit in a column, where the design's 128px flex-basis (meant as a width) made the row 128px tall and pushed the review count out of the card. */
.elementor-widget-container .ucx-review-score .ucx-stars:not(#ucx-boost) {
	flex: 0 0 auto;
	height: 24px;
}
