.sw-poster-video,
.sw-poster-video * {
	box-sizing: border-box;
}

.sw-poster-video {
	--sw-pv-ratio: 1.77777;
	--sw-pv-inset-x: 16px;
	--sw-pv-inset-y: 16px;
	--sw-pv-play-size: 44px;
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: var(--sw-pv-ratio);
	background: #0d1520;
	border-radius: 22px;
}

.sw-poster-video__probe {
	display: none;
}

.sw-poster-video__poster {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #0d1520;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sw-poster-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-image: none;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	text-align: left;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

.sw-poster-video__overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 40, 54, 0);
	pointer-events: none;
	transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.elementor-widget-scale_poster_video .sw-poster-video__overlay:hover,
.elementor-widget-scale_poster_video .sw-poster-video__overlay:focus,
.elementor-widget-scale_poster_video .sw-poster-video__overlay:focus-visible,
.elementor-widget-scale_poster_video .sw-poster-video__overlay:active,
.sw-poster-video__overlay:hover,
.sw-poster-video__overlay:focus,
.sw-poster-video__overlay:focus-visible,
.sw-poster-video__overlay:active {
	background-color: transparent;
	background-image: none;
	border-color: transparent;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}

.sw-poster-video__overlay:hover::before,
.sw-poster-video__overlay:focus-visible::before {
	background-color: rgba(28, 40, 54, 0.42);
	backdrop-filter: blur(14px) saturate(1.35);
	-webkit-backdrop-filter: blur(14px) saturate(1.35);
}

.sw-poster-video__pill {
	position: absolute;
	left: var(--sw-pv-inset-x);
	bottom: var(--sw-pv-inset-y);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - (var(--sw-pv-inset-x) * 2));
	padding: 5px 16px 5px 5px;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(28, 40, 54, 0.55);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	pointer-events: none;
}

.sw-poster-video.is-center .sw-poster-video__pill {
	left: 50%;
	transform: translateX(-50%);
}

.sw-poster-video.is-right .sw-poster-video__pill {
	left: auto;
	right: var(--sw-pv-inset-x);
}

.sw-poster-video__pill.is-icon-only {
	padding: 5px;
}

.sw-poster-video__play {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: var(--sw-pv-play-size);
	height: var(--sw-pv-play-size);
	border-radius: 50%;
	color: #1c2836;
	background: rgba(255, 255, 255, 0.72);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.45),
		0 1px 2px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.sw-poster-video__play svg {
	display: block;
	width: 46%;
	height: 46%;
	margin-left: 2px;
}

.sw-poster-video__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding-right: 4px;
}

.sw-poster-video__title,
.sw-poster-video__duration {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sw-poster-video__title {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.sw-poster-video__duration {
	margin-top: 2px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.sw-poster-video__overlay:hover .sw-poster-video__play,
.sw-poster-video__overlay:focus-visible .sw-poster-video__play {
	background: rgba(255, 255, 255, 0.88);
}

.sw-poster-video__overlay:focus-visible .sw-poster-video__pill {
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.85),
		0 10px 28px rgba(0, 0, 0, 0.18);
}

.sw-poster-video--empty {
	display: grid;
	place-items: center;
	min-height: 180px;
	padding: 24px;
	color: #667066;
	font-size: 14px;
	text-align: center;
	background: #f3f4f1;
}

html.sw-poster-video-modal-open,
body.sw-poster-video-modal-open {
	overflow: hidden;
}

.sw-poster-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px 16px;
}

.sw-poster-video-modal[hidden] {
	display: none;
}

.sw-poster-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 18, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.sw-poster-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(1100px, 100%);
}

.sw-poster-video-modal__stage {
	--sw-pv-ratio: 1.77777;
	position: relative;
	width: 100%;
	aspect-ratio: var(--sw-pv-ratio);
	overflow: hidden;
	border-radius: 18px;
	background: #0d1520;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.sw-poster-video-modal__media,
.sw-poster-video-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #0d1520;
	object-fit: contain;
}

.sw-poster-video-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #1c2836;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	cursor: pointer;
}

.sw-poster-video-modal__close svg {
	display: block;
	width: 16px;
	height: 16px;
}

.sw-poster-video-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.sw-poster-video-modal {
		padding: 48px 12px 16px;
	}

	.sw-poster-video-modal__close {
		top: -48px;
		right: 0;
	}

	.sw-poster-video-modal__stage {
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw-poster-video__poster,
	.sw-poster-video__overlay,
	.sw-poster-video__play {
		transition: none;
	}
}
