/**
 * Lottie (Dioendang) widget — frontend styles.
 *
 * Alignment/opacity come from the widget's Style controls; the rules here lay
 * out the animation box and its rendered <svg>.
 *
 * Width: the Style control writes `--di-lottie-width` on `.di-lottie` (the
 * flex row) and the rules below give that width to whichever element is the
 * row's flex item — the <a> wrap when the animation is linked, the box itself
 * otherwise. Percentages therefore resolve against the widget, and
 * `justify-content` on the row centers the sized element. (Sizing the inner
 * box directly left it 15% wide but stuck at the row's left edge inside a
 * full-width <a>: a percentage width inside an intrinsically sized flex item
 * cannot resolve, so the item stretched.) Same model as Elementor Pro's
 * `--lottie-container-width` on the widget wrapper.
 */

.di-lottie {
	display: flex;
	justify-content: center;
	line-height: 0;
}

.di-lottie-anim-wrap {
	display: inline-flex;
	line-height: 0;
	width: var(--di-lottie-width, 100%);
	max-width: 100%;
}

.di-lottie > .di-lottie-anim {
	width: var(--di-lottie-width, 100%);
	max-width: 100%;
}

.di-lottie-anim {
	display: inline-block;
	width: 100%;
}

.di-lottie-anim svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Editor-only placeholder when no JSON is selected. */
.di-lottie-empty {
	padding: 10px 14px;
	border: 1px dashed #bbbbbb;
	border-radius: 4px;
	color: #777777;
	font-size: 13px;
	text-align: center;
}
