
/*!
 * Xeader Studios
 *
 * NOTICE OF LICENCE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt
 * It is also available through th world-wide-web at this URL:
 * https://xeader.com/LICENCE-CE.txt
 *
 * @category cbm-website
 * @package cbm-website
 *
 * @author Antonio Gatta <a.gatta@xeader.com>
 * @url http://xeader.com
 * @copyright Copyright (c) 2020 Xeader Studios
 * @license All right reserved
 */
.blux-upload {
	display: block;
	background: #fff;
	border: 1px solid var(--text-color);
	position: relative;
	overflow: hidden;
	transition: all .5s ease;
}

.blux-upload.error {
	float: none !important;
}

.blux-upload:focus, .blux-upload.ally-focus-within {
	box-shadow: 0 0 0 1px var(--background-color), 0 0 0 3px var(--text-color);
}

.blux-upload, .blux-upload:after, .blux-upload:before, .blux-upload *, .blux-upload *:after, .blux-upload *:before {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.blux-upload__container {
	padding: 1em;
	cursor: pointer;
	display: flex !important;
	justify-content: center;
	align-items: center;
}

.blux-upload__input {
	justify-content: center;
	align-items: center;
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.blux-upload__text {
	font-size: 16px;
	line-height: 1.1em;
	flex-grow: 1;
	justify-content: center;
	align-items: center;
	padding-top: .25em;
	font-weight: 500;
}

.blux-upload .remove {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #d3282f;
	color: #d3282f;
	background-color: transparent;
	font-size: 13px;
	line-height: 20px;
	padding: .25rem .5rem;
	text-transform: uppercase;
	border-radius: 3px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 80px;
	font-weight: 500;
	transition: all .5s ease;
}

.blux-upload .remove:hover {
	color: var(--button-color);
	background: var(--button-bg);
}

.blux-upload .remove[inert] {
	display: none;
}

.blux-upload__indicator {
	margin-left: 1em;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 37px;
	height: 37px;
	flex-shrink: 0;
	position: relative;
	display: block;
}

.blux-upload__indicator > * {
	transition: all .5s ease;
	pointer-events: none;
}

.blux-upload__indicator__icon, .blux-upload__indicator__progress__percentage {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	width: 100%;
}

.blux-upload__indicator__progress__percentage {
	transition-timing-function: cubic-bezier(1, .17, .37, 1.39);
	transition-duration: 1s;
}

.blux-upload__indicator__icon {
	max-width: 100%;
}

.blux-upload__indicator__waves {
	position: absolute;
	top: 0;
	left: 0;
	width: 37px;
	height: 37px;
	border-radius: 50%;
	transition: all .5s ease;
}

.blux-upload__indicator__progress__percentage {
	color: #d3282f;
	font-weight: 500;
	font-size: .75em;
}

.blux-upload__indicator__progress__circle {
	stroke: #d3282f;
	stroke-width: 10px;
	fill: none;
}

.blux-upload__indicator__progress__circle--styled {
	transition: all .5s ease;
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
	stroke-width: 12px;
	stroke: #fbeaea;
	stroke-dasharray: 375.734px;
	stroke-dashoffset: 0px;
	stroke-dashoffset: 0;
}

.blux-upload__indicator__preview {
	display: block;
	width: 37px;
	height: 37px;
	transition: all .15s ease;
	overflow: hidden;
	transform-origin: 50% 50%;
	background: var(--background-color);
	position: absolute;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 1px;
	box-shadow: 0 0 0 4px var(--background-color), 0 0 0 5px currentColor;
}

.blux-upload__indicator__preview video {
	background-color: #000;
}

.blux-upload--video .blux-upload__indicator__preview {
	background-color: #000;
}

.blux-upload__indicator__preview img, .blux-upload__indicator__preview video {
	pointer-events: none;
	max-width: 100%;
	height: 100%;
	height: auto;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.blux-upload__indicator__preview:hover:after {
	opacity: 1;
	transform: scale(1);
}

.blux-upload__indicator__preview:focus:after, .blux-upload__indicator__preview:active:after {
	background-color: rgba(0, 0, 0, .5);
}

.blux-upload .blux-upload__indicator__progress__percentage, .blux-upload.idle .blux-upload__indicator__progress__percentage {
	opacity: 0;
	transform: translate3d(-50%, -50%, 0) scale(0);
}

.blux-upload .blux-upload__indicator__preview, .blux-upload.idle .blux-upload__indicator__preview {
	opacity: 0;
	transform: translateY(-50%) scale(0);
}

.blux-upload .blux-upload__indicator__progress, .blux-upload.idle .blux-upload__indicator__progress {
	transform: scale(0);
}

.blux-upload .blux-upload__indicator__icon, .blux-upload.idle .blux-upload__indicator__icon {
	transform: translate3d(-50%, -50%, 0) scale(1);
}

.blux-upload .blux-upload__indicator__waves, .blux-upload.idle .blux-upload__indicator__waves {
	transform: scale(0);
	opacity: 0;
}

.blux-upload.drag {
	border: 1px dashed #282828;
	box-shadow: 1px 3px 0 0 #dbdbd9, inset 0 0 3px #282828;
}

.blux-upload.working .blux-upload__indicator__progress__percentage, .blux-upload.uploading .blux-upload__indicator__progress__percentage {
	opacity: 1;
	transform: translate3d(-50%, -50%, 0) scale(1);
}

.blux-upload.working .blux-upload__indicator__icon, .blux-upload.uploading .blux-upload__indicator__icon {
	transform: translate3d(-50%, -50%, 0) scale(0);
}

.blux-upload.working .blux-upload__indicator__progress, .blux-upload.uploading .blux-upload__indicator__progress {
	transform: scale(1);
}

.blux-upload.working .blux-upload__indicator__progress__percentage {
	opacity: 0;
}

.blux-upload.working .blux-upload__indicator__waves {
	opacity: 1;
	transition-delay: .5s;
	transform: scale(1);
}

.blux-upload.complete .blux-upload__container {
	pointer-events: none;
}

.blux-upload.complete .blux-upload__indicator__icon {
	transform: translate3d(-50%, -50%, 0) scale(0);
}

.blux-upload.complete .blux-upload__indicator__preview {
	transition: all .75s cubic-bezier(1, .17, .37, 1.39);
	transition: all .75s cubic-bezier(.19, 1.74, .26, 1.18);
	transform: translateY(-50%) scale(1);
	opacity: 1;
	pointer-events: all;
}
