/**
 * Elementor Addon Nextra - Frontend Base Styles.
 *
 * Shared base styles loaded on Elementor pages. Individual widget
 * styles are registered separately and only loaded when the widget
 * renders (see EAN_Assets).
 */

.ean-widget {
	position: relative;
}

.ean-widget img {
	max-width: 100%;
	height: auto;
	border: 0;
}

.ean-widget a {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Screen reader only helper (used by widget labels/inputs). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ean-wc-empty,
.ean-wc-required,
.ean-igf-note,
.ean-fbp-note,
.ean-twf-note,
.ean-ytf-note,
.ean-wa-note {
	margin: 0;
	padding: 16px 20px;
	border: 1px dashed #d5d5d5;
	border-radius: 6px;
	background: #fafafa;
	color: #666;
	font-size: 14px;
}

.ean-wc-required {
	border-color: #f5c2c7;
	background: #fff5f5;
	color: #c0392b;
}

/* Shared carousel shell used by carousel-based widgets. */
.ean-carousel {
	position: relative;
}

.ean-carousel-track {
	display: flex;
	overflow: hidden;
}

.ean-carousel-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0 8px;
	min-width: 0;
}

.ean-carousel-arrows {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.ean-carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ean-carousel-arrow:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.ean-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.ean-carousel-dots .ean-carousel-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d5d5d5;
	cursor: pointer;
	transition: background-color .2s ease, width .2s ease;
}

.ean-carousel-dots .ean-carousel-dot.ean-is-active {
	background: #2563eb;
	width: 22px;
	border-radius: 5px;
}

.ean-carousel[data-dots="0"] .ean-carousel-dots {
	display: none;
}

.ean-carousel[data-arrows="0"] .ean-carousel-arrows {
	display: none;
}

/* WooCommerce shared pieces. */
.ean-wc-sale-badge {
	display: inline-block;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: #e53935;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.ean-widget .star-rating {
	display: inline-block;
	position: relative;
	font-family: 'star';
	font-size: 1em;
	line-height: 1;
	overflow: hidden;
	height: 1em;
	width: 5.4em;
	letter-spacing: 1px;
}

.ean-widget .star-rating::before {
	content: 'SSSSS';
	color: #c9c9c9;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	letter-spacing: 1px;
}

.ean-widget .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.ean-widget .star-rating span::before {
	content: 'SSSSS';
	top: 0;
	position: absolute;
	left: 0;
	color: #f5a623;
	letter-spacing: 1px;
}

/* Reduced motion: keep widgets functional without heavy animation. */
@media (prefers-reduced-motion: reduce) {
	.ean-carousel-track {
		scroll-behavior: auto;
	}

	.ean-widget,
	.ean-widget * {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
