/* Component: click-to-load video (components/product-video.php). */
@layer components {
	.cp-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--cp-radius); overflow: hidden; background: var(--cp-charcoal); box-shadow: var(--cp-shadow); }
	.cp-video__play { position: absolute; inset: 0; display: block; }
	.cp-video__poster { width: 100%; height: 100%; object-fit: cover; }
	.cp-video__button {
		position: absolute;
		inset: 50% auto auto 50%;
		width: 72px;
		height: 72px;
		translate: -50% -50%;
		border-radius: 50%;
		background: var(--cp-teal);
		box-shadow: var(--cp-shadow-lg);
		transition: scale var(--cp-ease);
	}
	.cp-video__button::after {
		content: "";
		position: absolute;
		inset: 50% auto auto 54%;
		translate: -50% -50%;
		border-style: solid;
		border-width: 12px 0 12px 20px;
		border-color: transparent transparent transparent var(--cp-charcoal);
	}
	.cp-video__play:hover .cp-video__button { scale: 1.08; }
	.cp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
}
