/**
 * RD Filepicker
 */

.rd-file-picker {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	font-size: 17px;
	border: 1px solid rgba(20, 69, 61, 0.78);
	background-color: white;

	&-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 50%;
		padding: 10px;
		background: rgba(20, 69, 61, 0.78);
		color: white;
		cursor: pointer;
		transition: .2s;

		&:hover {
			background: darken(rgba(20, 69, 61, 0.78), 5%);
		}
	}

	&-meta {
		width: 90%;
		padding-left: 20px;
		padding-right: 20px;
		color: $black;
		cursor: default;
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
	}

	input[type="file"] {
		position: absolute;
		overflow: hidden;
		transition: none;
		visibility: hidden;
	}

	.rd-file-drop-btn + p {
		margin-left: 15px;
	}
}

.rd-file-drop {
	padding: 40px 10px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-family: $font-family-sec;
	font-size: 16px;
	background-color: $white;
	outline: 2px dashed $gray-12;
	outline-offset: -10px;
	transition: .2s;

	&-wrap {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		color: $gray-1;

		p {
			margin-left: 5px;
			margin-top: 0;
		}
	}
	&-btn {
		cursor: pointer;
		transition: .22s;
		svg {
			fill: $primary;
		}

		&:hover {
			color: $primary;
		}

		> * + * {
			margin-left: 8px;
		}
	}

	&-text {
		display: inline-block;
		font-weight: 600;
	}

	input[type="file"] {
		position: absolute;
		overflow: hidden;
		transition: none;
		visibility: hidden;
	}
}

* + .rd-file-drop { margin-top: 20px; }

.file-grabbing {
	background-color: rgba(255, 255, 255, 0.05);
	outline-color: rgba(0, 0, 0, 0.15);
}

@include media-breakpoint-up(xl) {
	.rd-file-drop {
		padding: 90px 0;
		font-size: 18px;
	}
}

