.kyc-upload {
	flex: none;
	width: 430px;
}

.kyc-upload__box {
	position: relative;
	border-radius: var(--routeon-radius-card);
	background: var(--routeon-bg);
}

.kyc-upload__box.has-files {
	border: 1px solid var(--routeon-blue-soft);
}

.kyc-upload__box.is-dragover {
	outline: 2px dashed var(--routeon-blue);
	outline-offset: -2px;
}

.kyc-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.kyc-upload__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 30px 1.25rem 38px;
}

.kyc-upload__icon {
	display: block;
	width: 60px;
	height: 60px;
}

.kyc-upload__prompt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.125rem;
	width: 250px;
	max-width: 100%;
}

.kyc-upload__title {
	margin: 0;
	color: var(--routeon-text);
	font-size: var(--routeon-h5);
	font-weight: 700;
	line-height: var(--routeon-lh-h-small);
	text-align: center;
}

.kyc-upload__or {
	margin: 0;
	color: var(--routeon-muted);
	font-size: var(--routeon-p3);
	line-height: var(--routeon-lh-text);
}

.kyc-upload__filled {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 30px 30px 0;
}

.kyc-upload__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-height: 186px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--routeon-black-10) transparent;
}

.kyc-upload__list::-webkit-scrollbar {
	width: 4px;
}

.kyc-upload__list::-webkit-scrollbar-track {
	background: transparent;
}

.kyc-upload__list::-webkit-scrollbar-thumb {
	border-radius: var(--routeon-radius-pill);
	background: var(--routeon-black-10);
}

.kyc-upload__add {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	height: 60px;
	border: 0;
	background: none;
	color: var(--routeon-blue);
	font-family: var(--routeon-font-body);
	font-size: var(--routeon-btn-font-size);
	font-weight: 700;
	line-height: var(--routeon-lh-btn);
	cursor: pointer;
}

.kyc-upload__add-icon {
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 21.995 21.995' fill='none'%3E%3Cpath d='M10.9975 6.9975V14.9975M14.9975 10.9975H6.9975' stroke='%235EAEDB' stroke-width='1.995' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10.9975' cy='10.9975' r='10' stroke='%235EAEDB' stroke-width='1.995'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.kyc-file {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--routeon-black-10);
}

.kyc-file__badge {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background-image: url("../../../images/kyc/file.svg");
	background-repeat: no-repeat;
	background-position: center;
}

.kyc-file[data-ext="pdf"] .kyc-file__badge {
	background-image: url("../../../images/kyc/file-pdf.svg");
}

.kyc-file[data-ext="png"] .kyc-file__badge {
	background-image: url("../../../images/kyc/file-png.svg");
}

.kyc-file[data-ext="jpg"] .kyc-file__badge {
	background-image: url("../../../images/kyc/file-jpg.svg");
}

.kyc-file[data-ext="jpeg"] .kyc-file__badge {
	background-image: url("../../../images/kyc/file-jpeg.svg");
}

.kyc-file__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.375rem;
	min-width: 0;
}

.kyc-file__name {
	overflow: hidden;
	color: var(--routeon-text);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: var(--routeon-lh-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kyc-file__status {
	display: flex;
	align-items: center;
	gap: 0.8125rem;
}

.kyc-file__meta {
	color: var(--routeon-faint);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: var(--routeon-lh-text);
}

.kyc-file[data-state="error"] .kyc-file__meta {
	color: var(--routeon-error);
}

.kyc-file__bar {
	flex-shrink: 0;
	width: 50px;
	height: 5px;
	border-radius: var(--routeon-radius-pill);
	background: var(--routeon-blue-10);
}

.kyc-file__bar-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: var(--routeon-radius-pill);
	background: var(--routeon-blue);
	transition: width 0.2s linear;
}

.kyc-file__action {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 11.6625 11.6625' fill='none'%3E%3Cpath d='M10.8312 0.83125L0.831925 10.8305M10.8306 10.8312L0.83125 0.831957' stroke='%23CDCDCD' stroke-width='1.6625' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		no-repeat center;
	cursor: pointer;
}

.kyc-file__action:hover {
	filter: brightness(0.8);
}

.kyc-file[data-state="uploading"] .kyc-file__action {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 16.6625 16.6625' fill='none'%3E%3Cg stroke='%235EAEDB' stroke-width='1.6625' stroke-linecap='round'%3E%3Cpath d='M8.33125 0.83125V3.33125'/%3E%3Cpath d='M8.33125 13.3313V15.8312'/%3E%3Cpath d='M15.8312 8.33125L13.3313 8.33125'/%3E%3Cpath d='M3.33125 8.33125L0.83125 8.33125'/%3E%3Cpath d='M13.6342 3.0277L11.8664 4.79547'/%3E%3Cpath d='M4.79628 11.8664L3.02852 13.6342'/%3E%3Cpath d='M13.6342 13.6342L11.8664 11.8664'/%3E%3Cpath d='M4.79628 4.79547L3.02852 3.0277'/%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
	animation: kyc-spin 1s steps(8, end) infinite;
}

@keyframes kyc-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.kyc-file[data-state="uploading"] .kyc-file__action {
		animation: none;
	}
}

.kyc-upload__hint {
	margin: 1rem 0 0;
	color: var(--routeon-muted);
	font-size: 0.875rem;
	line-height: var(--routeon-lh-text);
	text-align: center;
}

@media (max-width: 991px) {
	.kyc-upload {
		width: auto;
		margin-top: 3rem;
	}

	.kyc-upload__filled {
		padding-inline: 1rem;
	}

	.kyc-upload__hint {
		padding-inline: 1rem;
	}
}
