/**
 * Sijoittaja.fi – Välittäjävertailu embed (host side).
 *
 * The container is deliberately unstyled beyond layout: the tool carries its own
 * visual design, and anything decorative here would fight it. Override the custom
 * properties from the theme rather than editing this file.
 */

.sifi-vv {
	position: relative;
	margin-block: var(--sifi-vv-gap, 2.5rem);
	min-height: var(--sifi-vv-min-height, 1200px);
}

.sifi-vv__iframe {
	display: block;
	width: 100%;
	height: var(--sifi-vv-min-height, 1200px);
	border: 0;
	color-scheme: light;
	background: transparent;
}

/* Break out of the theme's content column without horizontal overflow. */
.sifi-vv--wide {
	width: 100vw;
	max-width: var(--sifi-vv-wide-max, 1280px);
	margin-inline: calc( 50% - 50vw );
	margin-inline: max( calc( 50% - 50vw ), calc( 50% - var(--sifi-vv-wide-max, 1280px) / 2 ) );
}

/* Placeholder: three quiet bars standing in for the profile inputs. */
.sifi-vv__placeholder {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem 0;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.sifi-vv__placeholder-bar {
	height: 2.5rem;
	border-radius: var(--sifi-vv-radius, 6px);
	background: var(--sifi-vv-placeholder, rgba(15, 45, 70, 0.06));
}

.sifi-vv__placeholder-bar:nth-child(2) {
	width: 72%;
}

.sifi-vv__placeholder-bar:nth-child(3) {
	width: 45%;
}

.sifi-vv.is-ready .sifi-vv__placeholder {
	opacity: 0;
}

.sifi-vv__fallback,
.sifi-vv__noscript {
	margin: 0;
	padding: 1rem 0;
	font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
	.sifi-vv__placeholder {
		transition: none;
	}
}
