/**
 * Drop AI Image Badge (Free) – Frontend
 * Farben kommen als CSS-Variablen aus den Plugin-Einstellungen.
 */

.daib-host {
	position: relative;
}

/* Unsichtbare Ebene exakt über dem Bild – Messcontainer für die Schriftgröße */
.daib-layer {
	position: absolute;
	z-index: 50;
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
	container-type: size;
}

.daib-layer--fill {
	inset: 0;
}

.daib-layer--hidden {
	display: none;
}

.daib-badge {
	position: absolute;
	box-sizing: border-box;
	display: block;
	max-inline-size: calc(100% - 1.2em);
	margin: 0;
	padding: 0.35em 0.6em;
	border: 0;
	border-radius: 3px;
	background: var(--daib-bg, rgba(0, 0, 0, 0.55));
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--daib-color, #fff);
	font-family: inherit;
	font-style: normal;
	font-weight: 500;
	/* Fallback ohne Container Queries */
	font-size: 14px;
	font-size: clamp(10px, 2.2cqw, 14px);
	line-height: 1.25;
	letter-spacing: 0;
	text-align: start;
	text-transform: none;
	text-shadow: none;
	white-space: normal;
	overflow-wrap: break-word;
	pointer-events: none;
}

/* Positionen */
.daib-pos-top-left {
	top: 0.6em;
	left: 0.6em;
}

.daib-pos-top-right {
	top: 0.6em;
	right: 0.6em;
}

.daib-pos-bottom-left {
	bottom: 0.6em;
	left: 0.6em;
}

.daib-pos-bottom-right {
	right: 0.6em;
	bottom: 0.6em;
}
