/* 
Copyright (c) 2014, eBay Software Foundation
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.

* Neither the name of the eBay nor the names of its
  subsidiaries or affiliates may be used to endorse or promote products derived from
  this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


/* utilities */
.pull-left {
	float: left;
}
.sr-only {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	padding: 0 !important;
	border: 0 !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden;
}
.hide {
    display: none;
}
.show-inline {
	display: inline-block;
}

/* containers */
.px-video-img-captions-container * {
	box-sizing: border-box;
}

.px-video-img-captions-container {
	position: relative;
	display: inline-block;
}

/* progress indicator */
.px-video-progress {
	width: 100%;
	height: 10px;
}
.px-video-progress[value] {
	/* Reset the default appearance */
	-webkit-appearance: none;
	border: none;
}
.px-video-progress[value]::-webkit-progress-bar {
	background-color: #E6E6E6;
}
.px-video-progress[value]::-webkit-progress-value {
	background-color: #009CDF;
}

/* time */
.px-video-time {
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
	float: right;
	margin-top: 2px;
	font-size: 16px;
}

/* caption area */
.px-video-captions {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: .5em;
	min-height: 2.5em;
	background-color: #000;
	color: #fff;
	font-size: 1.3em;
	text-align: center;
	opacity: 0.75;
}

/* buttons */
.px-video-controls button {
	border: 1px #fff solid;
	background: transparent;
	padding: 0;
	margin: 0 5px;
	width: 25px;
	height: 20px;
	overflow: hidden;
	background: no-repeat url('/C1257AAD003A140A/files/px-video-sprite.png/$file/px-video-sprite.png?openElement');
}
.px-video-controls button {
	cursor: pointer;
	border: none;
}

/* restart button */
.px-video-controls button.px-video-restart {
	background-position: -9px -333px;
}
.px-video-controls button.px-video-restart:hover,
.px-video-controls button.px-video-restart:focus {
	background-position: -9px -297px;
}

/* rewind button */
.px-video-controls button.px-video-rewind {
	background-position: -11px -189px;
}
.px-video-controls button.px-video-rewind:hover,
.px-video-controls button.px-video-rewind:focus {
	background-position: -11px -153px;
}

/* play button */
.px-video-controls button.px-video-play {
	background-position: -11px -45px;
}
.px-video-controls button.px-video-play:hover,
.px-video-controls button.px-video-play:focus {
	background-position: -11px -9px;
}

/* pause button */
.px-video-controls button.px-video-pause {
	background-position: -11px -117px;
}
.px-video-controls button.px-video-pause:hover,
.px-video-controls button.px-video-pause:focus {
	background-position: -11px -81px;
}

/* forward button */
.px-video-controls button.px-video-forward {
	background-position: -13px -261px;
}
.px-video-controls button.px-video-forward:hover,
.px-video-controls button.px-video-forward:focus {
	background-position: -13px -225px;
}

/* captions button */
.px-video-captions-btn-container label {
	display: inline-block;
	width: 25px;
	height: 20px;
	margin-left: 25px;
	background: no-repeat url('../img/px-video-sprite.png');
	background-position: -6px -835px;
}
.px-video-captions-btn-container input[type="checkbox"]:focus+label {
	outline: 1px #999 dotted;
	background-position: -6px -799px;
}
.px-video-captions-btn-container input[type="checkbox"]:hover+label {
	background-position: -6px -799px;
	cursor: pointer;
}
.px-video-captions-btn-container input[type="checkbox"]:focus+label {
	outline: 1px #999 dotted;
	background-position: -6px -799px;
}
.px-video-captions-btn-container input[type="checkbox"]:checked+label {
	background-position: -6px -871px;
}

/* mute button */
.px-video-mute-btn-container label {
	display: inline-block;
	width: 25px;
	height: 20px;
	margin-left: 240px;
	margin-top: 2px;
	background: no-repeat url('../img/px-video-sprite.png');
	background-position: -6px -476px;
}
.px-video-mute-btn-container input[type="checkbox"]:focus+label {
	outline: 1px #999 dotted;
	background-position: -6px -440px;
}
.px-video-mute-btn-container input[type="checkbox"]:hover+label {
	background-position: -6px -440px;
	cursor: pointer;
}
.px-video-mute-btn-container input[type="checkbox"]:focus+label {
	outline: 1px #999 dotted;
	background-position: -6px -440px;
}
/* checked state of mute button */
.px-video-mute-btn-container input[type="checkbox"]:checked+label {
	background-position: -6px -692px;
}
.px-video-mute-btn-container input[type="checkbox"]:checked:hover+label,
.px-video-mute-btn-container input[type="checkbox"]:checked:focus+label {
	background-position: -6px -656px;
}

/* volume range input */
.px-video-controls input[type='range'] {
	-webkit-appearance: none;
	height: 6px;
	width: 100px;
	margin-top: 8px;
	background-color: #E6E6E6;
	outline:none;
}
.px-video-controls input[type='range']:focus::-webkit-slider-thumb {
	outline: 1px #999 dotted;
}
.px-video-controls input[type='range']::-moz-range-track {
	-moz-appearance: none;
	height: 6px;
	background-color: #E6E6E6;
	border: none;
}
.px-video-controls input[type='range']::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	height: 10px;
	width: 6px;
	background-color: #666;
}
.px-video-controls input[type='range']::-moz-range-thumb {
	height: 12px;
	width: 8px;
}
/* fixing display for IE10+ */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	.px-video-controls input[type='range'] {
		position: relative;
		padding: 0;
		height: 8px;
		top: -3px;
	}
	.px-video-time {
		margin-top: 4px;
	}
	.px-video-captions {
		padding: 8px;
		min-height: 36px;
	}
}

/*** custom styles ***/

.px-video-container {
	display: inline-block;
	margin: 1em 0 2em 0;
	position: relative;
	width: 100% !important;
}

.px-fallback {
	border: 1px dotted #222;
	margin: 1em;
	padding: 1em; 
}

.px-video-controls > div:first-child > div {
	margin: 0 0.5em;
}
.px-video-controls > div:first-child {
	min-height: 30px;
	padding: 14px 10px 6px 10px;
}

/* chrome */
.px-video-volume::-webkit-slider-thumb {
	background: #1c92c4 !important;
	outline: 2px #1c92c4  solid !important;
}
/* ff */
.px-video-volume::-moz-range-thumb {
	background: #1c92c4  !important;
}
/* ie >= 10 */
.px-video-volume::-ms-fill-lower,
.px-video-volume::-ms-thumb {
	background: #1c92c4  !important;
	outline: 2px #1c92c4  solid !important;
}
.px-video-volume::-ms-ticks {
	color: #1c92c4  !important;
}


.px-video-progress {
	height: 12px;
}
/* ie >= 10 */
.px-video-progress[value] {
	color: #1c92c4;
}
/* chrome */
.px-video-progress[value]::-webkit-progress-bar {
	background: #fff;
	border: 1px solid #1c92c4 ;
}
.px-video-progress[value]::-webkit-progress-value {
	background: #1c92c4;
}

.px-video-progress[value]::-moz-progress-bar {
	background: #1c92c4 ;
}

.px-video-controls button:focus {
	border: 1px #fff solid !important;
	outline: 2px #1c92c4 solid !important;
}
.px-video-captions-btn-container input[type="checkbox"]:focus+label,
.px-video-mute-btn-container input[type="checkbox"]:focus+label {
	outline: 2px #1c92c4 solid !important;
}
.px-video-volume:focus::-webkit-slider-thumb {
	outline: 2px #1c92c4 solid !important;
	background: #fff !important;
}
.px-video-volume:focus::-moz-range-thumb {
	outline: 2px #1c92c4 solid !important;
}
video {
	width: 100% !important;
}

@media screen and (max-width: 768px) {
	
	.px-video-captions {
		font-size: 1.3em;
	}
}

@media screen and (max-width: 480px) {

	.px-video-captions {
		font-size: 1.2em;
	}
	.px-video-controls > div:first-child {
		padding: 14px 0px 6px 0px;
	}
	.px-video-controls > div:first-child > div {
		margin: 0 0.4em 0 0;
	}
}