/* DROPZONE */

.rd-dropzone .dz-message {
	text-align: center;
	margin: 0;
}

.dropzone-preview > #tpl {
	display: none;
}

.dz-preview .dz-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* DROPZONE TPL */

.rd-dropzone {
	position: relative;
	display: flex;
	flex-flow: column nowrap;
	width: 100%;
	min-height: 108px;
	background-color: #ffffff;
	border: 1px dashed #000000;
	padding: 20px;
	box-sizing: border-box;
}

.dropzone-preview {
	margin: 1em 0 0;
}

.dz-clickable {
	cursor: pointer;
}

.dz-started .dz-message {
	display: none;
}

.dz-message {
	position: absolute;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
	align-content: center;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 10;
}

.dz-message > span {
	color: #000000;
	text-align: center;
}

.dz-message > span::before {
	content: "";
	position: relative;
	display: block;
	width: 3em;
	height: 3em;
	margin: 0 auto 10px;
	background: url("../images/icon-upload.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
}

.dz-preview {
	position: relative;
	display: flex;
	margin: 0 0 15px 0;
}

.dz-image {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	background: url("../images/icon-file.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	cursor: help;
}

.dz-image:after {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	content: attr(data-tooltip);
	left: 0;
	bottom: -36px;
	color: #fff;
	background: #000;
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 2px;
	z-index: 2;
}

.dz-image:hover:after {
	opacity: 1;
	visibility: visible;
}

.dz-details {
	position: relative;
	width: 100%;
	margin-right: 20px;
}

.dz-details-info {
	position: relative;
	display: flex;
	gap: 20px;
}

.dz-filename {
	position: relative;
}

.content-edit {
	line-height: 28px;
	padding: 0 24px 3px 3px;
	position: relative;
	background: transparent;
	z-index: 1;
}

.content-edit[contenteditable="true"] {
	border-bottom: 1px dashed #000;
}

.content-edit[contenteditable="true"]:focus {
	outline: none;
}

.content-edit.activated + .dz-edit {
	display: block;
	position: absolute;
	top: 5px;
	right: 0;
	width: 18px;
	height: 18px;
	background: url("../images/icon-edit.svg") 50% 50% no-repeat transparent;
	background-size: contain;
}

.content-edit[contenteditable="false"] + .dz-edit {

}

.content-edit[contenteditable="true"] + .dz-edit {
	filter: invert(100%) sepia(0%) saturate(5814%) hue-rotate(181deg) brightness(111%) contrast(73%);
}

span.dz-filename > .content-edit {
	display: inline-block;
	padding: 3px 5px 4px 5px;
}

span.dz-filename > *[contenteditable="true"] {
	background: #f5f5f5;
}

.dz-size {
	flex-shrink: 0;
	margin-left: auto;
}

.dz-size > span {
	text-align: right;
}

.dz-preview.dz-complete > .dz-edit {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	margin-right: 20px;
	background: url("../images/icon-edit.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	cursor: pointer;
}

.dz-progress {
	position: relative;
	display: block;
	width: 100%;
	background-color: #fafafa;
	margin: 5px 0;
}

.dz-progress-percent {
	line-height: 1.75;
}

.dz-upload {
	position: relative;
	display: block;
	width: 0;
	height: 2px;
	background-color: #000000;
}

.dz-status-mark {
	position: relative;
	display: block;
	visibility: hidden;
}

.dz-processing .dz-status-mark {
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
}

.dz-success .dz-status-mark {
	width: 24px;
	height: 24px;
	background: url("../images/icon-success.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	background-color: #fff;
}

.dz-error .dz-status-mark {
	width: 24px;
	height: 24px;
	background: url("../images/icon-error.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	background-color: #fff;
}

.dz-download {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	background: url("../images/icon-download.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	background-color: #fff;
}

a.dz-download[target="_blank"]::before {
	display: none;
}

.dz-preview.dz-processing > .dz-remove {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	margin-left: 20px;
	background: url("../images/icon-cancel.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	background-color: #fff;
}

.dz-preview > .dz-remove, .dz-preview.dz-processing.dz-complete > .dz-remove {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	margin-left: 20px;
	background: url("../images/icon-remove.svg") 50% 50% no-repeat transparent;
	background-size: contain;
	flex-shrink: 0;
	visibility: visible;
	background-color: #fff;
}

.dz-error-message {
	font-style: italic;
}

/* AC MODAL */

.acmodal__overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	background-color: rgba(0,0,0,0.6);
	z-index: 100;
}

.acmodal__overlay .acmodal__modal {
	height: auto;
	background-color: #fff;
	border-radius: 10px;
	position: fixed;
}

@media screen and (max-width: 599px) {
	.acmodal__overlay .acmodal__modal { 
		width: 96%;
		right: 2%;
		bottom: 10px;
	}
}

@media screen and (min-width: 599px) {
	.acmodal__overlay .acmodal__modal {
		left: 50%;
		top: 50%;
		transform: translate(-50%, -60%);
		width: 500px;
	}
}

.acmodal__overlay .acmodal__modal .acmodal__modal__title, .acmodal__overlay .acmodal__modal .acmodal__modal__message, .acmodal__overlay .acmodal__modal .acmodal__modal__actions {
	display: block;
	width: 100%;
	margin: 0;
	padding: 1rem;
	box-sizing: border-box;
	color: #000;
}

.acmodal__overlay .acmodal__modal .acmodal__modal__title {
	border-bottom: 1px solid #EFEFEF;
}

.acmodal__overlay .acmodal__modal .acmodal__modal__message {
	min-height: 70px;
	font-size: 1rem;
	line-height: 1.5;
}

.acmodal__overlay .acmodal__modal .acmodal__modal__actions {
	text-align: right;
}

@media screen and (max-width: 599px) {
	.acmodal__overlay .acmodal__modal .acmodal__modal__actions {
		text-align: center;
	}
}

.acmodal__overlay .acmodal__modal .acmodal__modal__actions .acmodal__button {
	padding: .5rem .8rem;
	border: 2px solid #000;
	font-size: 1rem;
	border-radius: 5px;
	color: #000;
	margin: 0 .5rem;
	cursor: pointer;
	transition: .2s;
}

@media screen and (max-width: 599px) {
	.acmodal__overlay .acmodal__modal .acmodal__modal__actions .acmodal__button {
		width: 90%;
		margin: .5rem 0;
	}
}

@media screen and (min-width: 599px) {
	.acmodal__overlay .acmodal__modal .acmodal__modal__actions .acmodal__button.acmodal__button__secondary:hover {
		background-color: #EFEFEF;
	}

	.acmodal__overlay .acmodal__modal .acmodal__modal__actions .acmodal__button.acmodal__button__primary:hover {
		opacity: .8;
	}
}

.acmodal__overlay .acmodal__modal .acmodal__modal__actions .acmodal__button.acmodal__button__primary {
	background-color: #000;
	color: #fff;
}

.acmodal__overlay .acmodal__modal .acmodal__modal__actions .acmodal__button.acmodal__button__secondary {
	background-color: #fff;
}