/**
 * AI Image Label — frontend styles.
 *
 * Self-contained and scoped to .ail-badge so it won't clash with theme
 * or builder CSS. Override the variables below in your own stylesheet
 * if you want to match your design tokens.
 */

:root {
	--ail-bg: rgba( 17, 17, 17, 0.78 );
	--ail-color: #fff;
	--ail-radius: 999px;
	--ail-offset: 10px;
	--ail-font-size: 12px;
	--ail-padding: 5px 11px;
}

/* Wrapper inserted around standalone images. */
.ail-wrap {
	position: relative;
	display: inline-block;
	line-height: 0;
	max-width: 100%;
}

.ail-badge {
	position: absolute;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: var( --ail-padding );
	border-radius: var( --ail-radius );
	background: var( --ail-bg );
	color: var( --ail-color );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: var( --ail-font-size );
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
	pointer-events: none; /* purely informational, never blocks clicks */
	backdrop-filter: blur( 3px );
	-webkit-backdrop-filter: blur( 3px );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.25 );
}

/* The icon (sparkle / robot / info / custom image) is rendered inline by the
   script so it can be configured; no CSS pseudo-element is used. */

/* Corner positions. */
.ail-top-right {
	top: var( --ail-offset );
	right: var( --ail-offset );
}
.ail-top-left {
	top: var( --ail-offset );
	left: var( --ail-offset );
}
.ail-bottom-right {
	bottom: var( --ail-offset );
	right: var( --ail-offset );
}
.ail-bottom-left {
	bottom: var( --ail-offset );
	left: var( --ail-offset );
}

@media ( max-width: 480px ) {
	.ail-badge {
		--ail-font-size: 11px;
		--ail-padding: 4px 9px;
		--ail-offset: 7px;
	}
}
