/* Video Pop-up: corner box. Colours are custom properties so a site can restyle it without editing the plugin.
   Every rule is scoped to .vpop with two classes (or a reset) so theme rules for button / a / img don't leak in. */
.vpop {
	--vpop-border: #c9ced6;
	--vpop-bg: #fff;
	--vpop-text: #5b6472;
	--vpop-text-strong: #111827;
	--vpop-button-text: #fff;
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 9000;
	display: block;
	width: min(100vw, 374px);
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}
.vpop[hidden] { display: none; }
.vpop.vpop--open { opacity: 1; transform: none; }
.vpop, .vpop *, .vpop *::before, .vpop *::after { box-sizing: border-box; }
.vpop button, .vpop a, .vpop img, .vpop span, .vpop div {
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0;
	min-width: 0; min-height: 0; max-width: none; width: auto; height: auto; float: none;
	font: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; text-decoration: none; text-shadow: none;
	color: inherit; filter: none; transform: none; transition: none;
}
.vpop .vpop__frame { position: relative; display: block; width: 100%; padding: 20px 4px 4px; border: 1px solid var(--vpop-border); background: var(--vpop-bg); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.vpop .vpop__label { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 400; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vpop-text); }
.vpop .vpop__close { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 20px; font-size: 14px; font-weight: 400; line-height: 1; color: var(--vpop-text); background: transparent; cursor: pointer; }
.vpop .vpop__close:hover { color: var(--vpop-text-strong); }
.vpop .vpop__slides { position: relative; display: block; width: 100%; }
.vpop .vpop__slide { display: none; width: 100%; }
.vpop .vpop__slide.is-active { display: block; animation: vpop-fade 0.2s ease; }
.vpop .vpop__video { position: relative; display: block; width: 100%; height: 220px; overflow: hidden; background: #000; }
.vpop .vpop__poster { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.vpop .vpop__video iframe, .vpop .vpop__player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.vpop .vpop__video.is-playing .vpop__poster, .vpop .vpop__video.is-playing .vpop__play { display: none; }
.vpop .vpop__play { position: absolute; top: 50%; left: 50%; display: block; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, 0.65); cursor: pointer; }
.vpop .vpop__play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-35%, -50%); border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; }
.vpop .vpop__play:hover { background: rgba(0, 0, 0, 0.85); }
.vpop .vpop__cta-strip { display: flex; justify-content: flex-end; padding-top: 4px; }
.vpop .vpop__cta { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 4px; background: var(--vpop-button); font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--vpop-button-text); }
.vpop .vpop__cta:hover { filter: brightness(0.9); }
.vpop .vpop__close:focus-visible, .vpop .vpop__cta:focus-visible { outline: 2px solid var(--vpop-button); outline-offset: 2px; }
.vpop .vpop__play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes vpop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.vpop.vpop { transform: none; transition: none; }
	.vpop .vpop__slide.is-active { animation: none; }
}
