/* file-upload */

.ff-input-file-items {
	display: flex;
	flex-wrap: wrap;
	margin: 10px 0;
}

.ff-input-file-item {
	display: flex;
	width: 100%;
	overflow: hidden;
	padding: 10px;
	box-sizing: border-box;
	margin: 5px 0;
	height: 68px;
	
	position: relative;
}

.ff-input-file-item.failed {
	background-color: var(--box-warning-background);
}

.ff-input-file-item-error {
	color: var(--warning-color);
	margin-top: 5px;
}

.ff-input-file-item-error .ff-i-warning::before {
    margin-right: 10px;
}

.ff-input-file-item.complete {
	background-color: var(--input-slider-progress-background);
	border: 5px solid var(--input-slider-track-background);
    box-sizing: border-box;
}

.ff-input-file {
	position: relative;
	
	border: 1px solid var(--input-choice-border);
	background-image: repeating-linear-gradient(-45deg, 
      transparent 0 10px, 
      var(--input-choice-border) 10px 20px);
}

.ff-input-file span {
	display: block;
	position: absolute;
	top: 0;
	text-align: center;
	top: 50%;
	pointer-events: none;
	transform: translate(-50%,-50%);
	left: 50%;
	width: 100%;
	
    color:  var(--title-color);
    text-shadow: 0px 10px 10px var(--title-color);
}

.ff-input-file input {
	opacity: 0;
	height: 66px;
}

.ff-input-file-info {
	flex: 3;
	overflow: hidden;
	z-index: 1;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 20px;
}

.ff-input-file-info p {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ff-input-file-progress-wrapper {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--input-slider-track-background);
	padding: 5px;
	box-sizing: border-box;
	clear: both;
}

.ff-input-file-item-preview .ff-input-file-progress-wrapper {
	background-color: transparent;
}

.ff-input-file-item-preview .ff-input-file-info::before,
.ff-input-file-progress {
	height: 100%;
	width: var(--ff-input-file-progress);
	min-width: 5%;
	background-color: var(--input-slider-progress-background);
	transition: width 0.5s linear;
}

.ff-input-file-item-preview .ff-input-file-info p,
.ff-input-file-progress-wrapper,
.ff-input-file-progress {
	-webkit-animation: 2s linear 0s normal none infinite running ff-animation-bar-stripes;
	animation: 2s linear 0s normal none infinite running ff-animation-bar-stripes;
	
	background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
	background-size: 40px 40px;
}

.ff-input-file-item-preview .ff-input-file-progress {
	background-color: rgba(255,255,255,0.5);
	width: calc(100% - var(--ff-input-file-progress));
	position: absolute;
	right: 0;
	top: 0;
}

.ff-input-file-item-preview {
	background-image: none;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;

	min-height: 120px;
	position: relative;
	max-width: calc(20% - 1px);
	margin: 0.5px;
	min-width: 122px;
}

.ff-input-file-item-preview.complete {
	border: 0 none;
}

.ff-input-file-item-preview .center-vertically {
	justify-content: start;
}

.ff-input-file-item-preview .ff-input-file-info {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 25px;
	width: 100%;
	box-sizing: border-box;
	background-color: rgba(255, 255,255,0.7);
	padding: 0;
}

.ff-input-file-item-preview .ff-input-file-info p {
	padding: 0px 10px;
    font-size: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    height: 25px;
    line-height: 25px;
}

.ff-input-file-item-preview .ff-input-file-info::before {
	content:'';
	display: block;
	height: 25px;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: -1;
}

.ff-input-file-item.ff-input-file-item-preview.complete .ff-input-file-info p {
	background-color: var(--input-slider-progress-background);
	background-image: none;
}

.ff-input-file-item.ff-input-file-item-preview.complete .ff-input-file-info::before {
	display: none;
}

@-webkit-keyframes ff-animation-bar-stripes {
	from  { background-position: 40px 0; }
	to    { background-position: 0 0; }
  }
  
@keyframes ff-animation-bar-stripes {
	from  { background-position: 40px 0; }
	to    { background-position: 0 0; }
}