@import "../mixins/mixins-master";

.e-con-inner > .elementor-widget-pp-video,
.e-con > .elementor-widget-pp-video {
    width: var(--container-widget-width);
    --flex-grow: var(--container-widget-flex-grow);
}
.pp-media-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	@include transition();
}
.pp-media-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.pp-video-container {
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.pp-video-play-icon {
    box-sizing: content-box;
    border-radius: var(--pp-play-icon-radius, 0);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: var(--pp-play-icon-size, 50px);
    width: var(--pp-play-icon-size, 50px);
    height: var(--pp-play-icon-size, 50px);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 10;
    transition: .25s all;
    i,
    svg {
        width: 1em;
        height: 1em;
        position: relative;
        display: block;
        transition: .25s all;
    }
    img {
        border-radius: var(--pp-play-icon-radius, 0);
        display: block;
    }
    &.pp-play-icon-glow:before,
    &.pp-play-icon-glow:after {
        content: '';
        border-radius: var(--pp-play-icon-radius, 50%);
        color: var(--pp-glow-color, #000000);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        animation: pp-play-icon-glow 3s infinite;
        opacity: 0.5;
        z-index: -1;
    }
    &.pp-play-icon-glow:before {
        animation-delay: 0.9s;
    }
    &.pp-play-icon-glow:after {
        animation-delay: 0.3s;
    }
}
@keyframes pp-play-icon-glow {
	70% {
		box-shadow: 0 0 0 var(--pp-glow-size, 15px) currentColor;
        opacity: 0;
	}
	100% {
        box-shadow: 0 0 0 0 currentColor;
        opacity: 0;
	}
}
.pp-video-player {
    .pp-video-thumb,
    iframe,
	video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
    .pp-video-thumb {
        border: none;
        bottom: 0;
        cursor: pointer;
        display: block;
        margin: auto;
        max-width: 100%;
        height: auto;
        right: 0;
        margin: 0;
    }
    iframe {
        height: 100%;
        z-index: 1;
    }
    .pp-media-content {
        z-index: 2;
    }
}
.pp-video {
    position: relative;
    .pp-video-player .pp-video-thumb {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}
.pp-video-overlay {
    z-index: 1;
}
// Sticky video player
.pp-video {
	&.pp-sticky-apply {
		background: 0 0;
		z-index: 9;
		overflow: unset;
		.pp-video-sticky-wrap {
			position: fixed !important;
			z-index: 99999;
			height: 225px;
			width: 400px;
			background: #fff;
			-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
			box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
		}
		.pp-video-sticky-infobar {
			-webkit-box-shadow: 0 5px 10px -5px #333;
			box-shadow: 0 5px 10px -5px #333;
		}
	}
}
.pp-sticky-apply {
	&.pp-video {
		&:before {
			visibility: hidden;
		}
	}
	.pp-video-sticky-wrap {
		&.ui-draggable {
			cursor: move;
		}
	}
	.pp-video-sticky-close {
		display: block;
		position: absolute;
		padding: 7px;
		color: #000;
		background: #fff;
		-webkit-border-radius: 100%;
		border-radius: 100%;
		cursor: pointer;
		z-index: 99999;
		height: 14px;
		width: 14px;
		line-height: 14px;
		-webkit-box-sizing: content-box;
		-moz-box-sizing: content-box;
		box-sizing: content-box;
	}
	.pp-video-sticky-infobar {
		display: block;
		position: relative;
		top: 100%;
		width: 100%;
		padding: 5px;
		color: #000;
		background: #fff;
		text-align: center;
		z-index: 9999;
		margin-top: -1px;
	}
}
.pp-video-sticky-close,
.pp-video-sticky-infobar {
	display: none;
}
.elementor-widget-pp-video {
	.pp-sticky-apply {
		.pp-video-container {
			padding-bottom: 0 !important;
			overflow: visible;
		}
	}
}
.pp-video-sticky-close {
	.pp-sticky-close-icon {
		font-size: 14px;
		height: 14px;
		width: 14px;
		line-height: 14px;
		text-align: center;
	}
}
.pp-video-sticky-bottom_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-center_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-top_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap {
	right: auto;
	left: 20px;
}
.pp-video-sticky-top_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-top_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap {
	top: 20px;
}
.pp-video-sticky-bottom_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-bottom_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap {
	bottom: 20px;
}
.pp-video-sticky-bottom_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-center_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-top_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap {
	left: auto;
	right: 20px;
}
.pp-video-sticky-center_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-center_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap {
	top: 50%;
	transform: translateY(-50%);
}
.pp-video-sticky-bottom_left .pp-sticky-infobar-wrap.pp-sticky-apply .pp-video-sticky-wrap,
.pp-video-sticky-bottom_right .pp-sticky-infobar-wrap.pp-sticky-apply .pp-video-sticky-wrap {
	bottom: 55px;
}
.admin-bar {
	.pp-video-sticky-top_left .pp-video.pp-sticky-apply .pp-video-sticky-wrap,
	.pp-video-sticky-top_right .pp-video.pp-sticky-apply .pp-video-sticky-wrap {
		top: -webkit-calc(32px + 20px);
		top: calc(32px + 20px);
	}
}
.pp-video-sticky-bottom_left .pp-sticky-apply .pp-video-sticky-close,
.pp-video-sticky-center_left .pp-sticky-apply .pp-video-sticky-close,
.pp-video-sticky-top_left .pp-sticky-apply .pp-video-sticky-close {
	top: -10px;
	right: -10px;
}
.pp-video-sticky-bottom_right .pp-sticky-apply .pp-video-sticky-close,
.pp-video-sticky-center_right .pp-sticky-apply .pp-video-sticky-close,
.pp-video-sticky-top_right .pp-sticky-apply .pp-video-sticky-close {
	top: -10px;
	left: -10px;
}

@media only screen and (max-width: 767px) {
	.pp-video {
		&.pp-sticky-apply {
			.pp-video-sticky-wrap {
				height: 140px;
				width: 240px;
			}
		}
	}
}
