/* Divi File Upload — styles */

.et_pb_contact_field .dfu-file-wrapper {
	display: flex;
	align-items: stretch;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: box-shadow 150ms ease;
}

.et_pb_contact_field .dfu-file-wrapper .dfu-file-text {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	padding: 0.9em 1.1em;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.55;
	color: inherit;
	cursor: pointer;
}

.et_pb_contact_field .dfu-file-wrapper .dfu-file-text.dfu-picked {
	opacity: 1;
	font-weight: 500;
}

.et_pb_contact_field .dfu-file-wrapper .dfu-file-button {
	flex: 0 0 auto;
	align-self: center;
	margin: 0.3em 0.4em 0.3em 0;
	padding: 0.7em 1.3em;
	background: #2ea3f2;
	color: #fff;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.9em;
	font-family: inherit;
	line-height: 1.2;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	min-width: 6em;
	text-align: center;
}

.et_pb_contact_field .dfu-file-wrapper .dfu-file-button:hover,
.et_pb_contact_field .dfu-file-wrapper .dfu-file-button:focus {
	background: #1f8fd8;
	outline: none;
}

.et_pb_contact_field .dfu-file-wrapper .dfu-file-input {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Uploading state — animated subtle shimmer. */
.et_pb_contact_field .dfu-file-wrapper.dfu-uploading {
	cursor: wait;
}

.et_pb_contact_field .dfu-file-wrapper.dfu-uploading .dfu-file-button {
	background: #888;
	cursor: wait;
}

.et_pb_contact_field .dfu-file-wrapper.dfu-uploading::after {
	content: '';
	position: absolute;
	top: 0; left: -30%; right: 0; bottom: 0;
	width: 30%;
	background: linear-gradient( 90deg, transparent, rgba(46,163,242,0.15), transparent );
	animation: dfu-shimmer 1.2s linear infinite;
	pointer-events: none;
}

@keyframes dfu-shimmer {
	from { transform: translateX(0); }
	to   { transform: translateX(430%); }
}

/* Error state. */
.et_pb_contact_field .dfu-file-wrapper.dfu-error {
	box-shadow: 0 0 0 2px #c00 inset;
}

.et_pb_contact_field .dfu-error-msg {
	color: #c00;
	font-size: 0.85em;
	margin-top: 0.5em;
}
