/**
 * Igus Configurator — base widget styles.
 *
 * Intentionally minimal: structural defaults only. All visual styling is
 * expected to be driven by each widget's native Elementor Style controls.
 */
.igus-w {
	display: block;
}

.igus-w__label {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.igus-w__label--icon-top {
	flex-direction: column;
	align-items: flex-start;
}

.igus-w__label--icon-bottom {
	flex-direction: column-reverse;
	align-items: flex-start;
}

.igus-w__select,
.igus-w__qty,
.igus-w__length {
	display: block;
	width: 100%;
	max-width: 22em;
	padding: 0.55em 0.7em;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 4px;
	background: #fff;
	font: inherit;
	line-height: 1.3;
}

.igus-w__unit {
	flex: 0 0 auto;
	opacity: 0.75;
}

.igus-w__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.igus-w__chip {
	cursor: pointer;
	padding: 0.45em 0.9em;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 999px;
	background: #fff;
	font: inherit;
}

.igus-w__chip.is-active {
	border-color: currentColor;
	font-weight: 700;
}

.igus-w__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
}

.igus-w__button[aria-disabled="true"],
.igus-w__button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.igus-w__button--icon-top {
	flex-direction: column;
}

.igus-w__button--icon-bottom {
	flex-direction: column-reverse;
}

.igus-w__help {
	display: block;
	margin-top: 0.35em;
	opacity: 0.75;
}

.igus-availability.is-in-stock {
	color: #1a7f37;
}

.igus-availability.is-out-of-stock {
	color: #b32d2e;
}

.igus-gallery__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 90px, 1fr ) );
	gap: 0.5em;
}

.igus-gallery__item img,
.igus-featured-image__img {
	display: block;
	width: 100%;
	height: auto;
}

.igus-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: center;
}

.igus-badge img {
	max-height: 56px;
	width: auto;
}

.igus-specs__table {
	width: 100%;
	border-collapse: collapse;
}

.igus-specs__table th,
.igus-specs__table td {
	text-align: left;
	padding: 0.45em 0.7em;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
}

/* --- v1.2.1: layout + new element defaults --- */
.igus-w {
	display: flex;
	flex-direction: column;
}

.igus-w__field-row {
	display: flex;
	align-items: center;
	gap: 0.5em;
	width: 100%;
}

.igus-w__field-row .igus-w__select,
.igus-w__field-row .igus-w__length {
	flex: 1 1 auto;
}

.igus-w__icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.igus-w__search {
	display: block;
	width: 100%;
	max-width: 22em;
	margin-bottom: 0.4em;
	padding: 0.45em 0.6em;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 4px;
	font: inherit;
}

.igus-w__copy {
	flex: 0 0 auto;
	padding: 0.45em 0.8em;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 4px;
	background: #fff;
	font: inherit;
	cursor: pointer;
}

.igus-w__copy.is-copied {
	border-color: #1a7f37;
	color: #1a7f37;
}

.igus-w__select option[hidden] {
	display: none;
}

/* --- Product Featured Image: main image + thumbnail gallery --- */
.igus-gallery-main {
	position: relative;
	display: block;
	width: 100%;
}

.igus-gallery-main__link {
	position: relative;
	display: block;
	overflow: hidden;
}

.igus-gallery-main__link::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.igus-gallery-main__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.igus-gallery-main__zoom {
	position: absolute;
	right: 0.75em;
	bottom: 0.75em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25em;
	height: 2.25em;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.9 );
	color: #1a1a1a;
	font-size: 1rem;
	pointer-events: none;
}

.igus-gallery-counter {
	margin-top: 0.5em;
	text-align: center;
	font-size: 0.875em;
	opacity: 0.75;
}

.igus-gallery-thumbs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin: 0.75em 0 0;
	padding: 0;
}

.igus-gallery-thumbs__item {
	display: block;
}

.igus-gallery-thumbs__btn {
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.igus-gallery-thumbs__item.is-active .igus-gallery-thumbs__btn {
	border-color: #3f51b5;
	opacity: 1;
}

.igus-gallery-thumbs__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Off-screen (not display:none) so Elementor's lightbox can still discover
 * these as slideshow-group members; not part of the visual layout or the
 * tab order. */
.igus-gallery-lightbox-group {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
}

/* --- Length-selection discount pricing: strikethrough original, then the
 * discounted total on its own line, right-aligned --- */
.igus-price__original {
	display: block;
	text-align: left;
	opacity: 0.6;
	text-decoration: line-through;
	font-size: 0.9em;
	margin-bottom: 0.15em;
}

.igus-price__final {
	display: block;
	text-align: left;
	font-weight: 700;
	color: #1a7f37;
}

.igus-price__discount-note {
	display: block;
	text-align: left;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 500;
	opacity: 0.75;
	margin-top: 0.15em;
}
