/**
 * EU AI Content Label – overlay styles.
 *
 * The icon is overlaid on labeled images; positioning is driven by the
 * data attribute written by the server renderer (and the frontend script).
 */

.eu-ai-label-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 100%;
	vertical-align: top;
	line-height: 0;
}

.eu-ai-label-wrap > img {
	display: block;
	width: 100%;
	height: auto;
}

.eu-ai-label-overlay {
	position: absolute;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.eu-ai-label-overlay svg {
	display: block;
}

.eu-ai-label-wrap[data-eu-ai-position="bottom-right"] .eu-ai-label-overlay {
	right: 8px;
	bottom: 8px;
}

.eu-ai-label-wrap[data-eu-ai-position="bottom-left"] .eu-ai-label-overlay {
	left: 8px;
	bottom: 8px;
}

.eu-ai-label-wrap[data-eu-ai-position="top-right"] .eu-ai-label-overlay {
	right: 8px;
	top: 8px;
}

.eu-ai-label-wrap[data-eu-ai-position="top-left"] .eu-ai-label-overlay {
	left: 8px;
	top: 8px;
}

.eu-ai-label-text {
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	padding: 3px 7px;
	border-radius: 4px;
}

.eu-ai-label-shortcode {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}

.eu-ai-label-shortcode svg {
	display: block;
}

/**
 * Hide the overlay on gallery thumbnail strips so the label only appears on
 * the main product image. Covers the classic WooCommerce gallery
 * (.flex-control-thumbs) as well as the product gallery block thumbnails.
 */
.flex-control-thumbs .eu-ai-label-overlay,
.woocommerce-product-gallery__thumbnail .eu-ai-label-overlay,
.wc-block-product-gallery__thumbnail .eu-ai-label-overlay,
.wc-block-product-gallery__thumbnails .eu-ai-label-overlay {
	display: none;
}
