/**
 * Video Sales Addon Styles
 */

/* Single video page player */
.sunshine--video--player {
	width: 100%;
	max-width: 100%;
	position: relative;
}

.sunshine--video--player video {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}

/* Video indicator in admin */
.sunshine--video--indicator {
	display: inline-block;
	margin-left: 5px;
	color: #2271b1;
}

.sunshine--video--indicator .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Video preview status */
.sunshine--video--preview-status {
	font-size: 12px;
	font-weight: 600;
}

/* Hide purchase option for videos in cart */
.sunshine--video.sunshine--image--in-cart .sunshine--image-menu li.sunshine--purchase {
	display: none;
}

/* Video play icon overlay on gallery thumbnails */
.sunshine--video > a {
	position: relative;
	display: block;
}

.sunshine--video > a::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 50%;
	pointer-events: none;
	z-index: 2;
}

.sunshine--video > a::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-left: 16px solid #fff;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	margin-left: 3px;
	pointer-events: none;
	z-index: 3;
}
