.dcimty-comprobante {
	--dcimty-rose: #b97073;
	--dcimty-rose-dark: #925054;
	--dcimty-ink: #2d2929;
	--dcimty-muted: #6f6666;
	--dcimty-line: #eadcda;
	width: 100%;
	max-width: 760px;
	margin: 28px auto;
	padding: 24px;
	color: var(--dcimty-ink);
	background: #fff;
	border: 1px solid var(--dcimty-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(70, 48, 48, 0.08);
	box-sizing: border-box;
}

.dcimty-comprobante *,
.dcimty-comprobante *::before,
.dcimty-comprobante *::after {
	box-sizing: border-box;
}

.dcimty-comprobante__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.dcimty-comprobante__heading h2 {
	margin: 3px 0 0;
	font-size: 24px;
	line-height: 1.25;
}

.dcimty-comprobante__eyebrow {
	font-size: 12px;
	font-weight: 700;
	color: var(--dcimty-rose-dark);
	text-transform: uppercase;
}

.dcimty-comprobante__status {
	flex: 0 0 auto;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #8a532b;
	background: #fff4e7;
	border-radius: 999px;
}

.dcimty-comprobante__status.is-ready {
	color: #276246;
	background: #e8f6ee;
}

.dcimty-comprobante__notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	color: #276246;
	background: #e8f6ee;
	border-left: 4px solid #4c9a71;
}

.dcimty-comprobante__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 12px;
	margin-top: 18px;
}

.dcimty-comprobante__file {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 76px;
	padding: 14px;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	background: #fffafa;
	border: 1px dashed #cfaaaa;
	border-radius: 8px;
	cursor: pointer;
}

.dcimty-comprobante__file:focus-within {
	outline: 3px solid rgba(185, 112, 115, 0.22);
	outline-offset: 2px;
}

.dcimty-comprobante__file span {
	font-weight: 700;
	color: var(--dcimty-rose-dark);
}

.dcimty-comprobante__file small {
	color: var(--dcimty-muted);
}

.dcimty-comprobante__file input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	overflow: hidden;
	opacity: 0;
}

.dcimty-comprobante__submit {
	width: 100%;
	min-height: 48px;
	padding: 12px 20px !important;
	align-self: auto;
	color: #fff !important;
	background: var(--dcimty-rose) !important;
	border: 1px solid var(--dcimty-rose) !important;
	border-radius: 8px !important;
}

.dcimty-comprobante__submit:disabled {
	cursor: wait;
	opacity: 0.7;
}

.dcimty-comprobante__selection,
.dcimty-comprobante__upload-state {
	grid-column: 1 / -1;
}

.dcimty-comprobante__selection {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #faf8f8;
	border: 1px solid var(--dcimty-line);
	border-radius: 8px;
}

.dcimty-comprobante__selection[hidden],
.dcimty-comprobante__upload-state[hidden] {
	display: none !important;
}

.dcimty-comprobante__selection-visual {
	display: grid;
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	place-items: center;
	overflow: hidden;
	color: var(--dcimty-rose-dark);
	font-size: 14px;
	font-weight: 800;
	background: #f4eded;
	border-radius: 6px;
}

.dcimty-comprobante__selection-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dcimty-comprobante__selection-visual img[hidden],
.dcimty-comprobante__selection-pdf[hidden] {
	display: none !important;
}

.dcimty-comprobante__selection-name,
.dcimty-comprobante__selection-size {
	display: block;
	overflow-wrap: anywhere;
}

.dcimty-comprobante__selection-size {
	margin-top: 3px;
	color: var(--dcimty-muted);
}

.dcimty-comprobante__upload-state {
	padding: 12px 14px;
	color: var(--dcimty-rose-dark);
	background: #fff8f8;
	border: 1px solid #e5c6c6;
	border-radius: 8px;
}

.dcimty-comprobante__upload-copy {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
}

.dcimty-comprobante__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #e1bcbc;
	border-top-color: var(--dcimty-rose-dark);
	border-radius: 50%;
	animation: dcimty-comprobante-spin 700ms linear infinite;
}

.dcimty-comprobante__progress {
	height: 6px;
	margin-top: 10px;
	overflow: hidden;
	background: #eddada;
	border-radius: 999px;
}

.dcimty-comprobante__progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--dcimty-rose);
	border-radius: inherit;
	transition: width 150ms ease;
}

.dcimty-comprobante__upload-state.is-uploading .dcimty-comprobante__upload-percent {
	display: none;
}

.dcimty-comprobante__upload-state.is-uploading .dcimty-comprobante__progress span {
	width: 38%;
	animation: dcimty-comprobante-progress 1.1s ease-in-out infinite;
}

.dcimty-comprobante__upload-state.is-error {
	color: #8a2929;
	background: #fff0f0;
	border-color: #e6b8b8;
}

.dcimty-comprobante__upload-state.is-complete {
	color: #276246;
	background: #e8f6ee;
	border-color: #b9dec9;
}

.dcimty-comprobante__upload-state.is-error .dcimty-comprobante__spinner,
.dcimty-comprobante__upload-state.is-complete .dcimty-comprobante__spinner {
	display: none;
}

.dcimty-comprobante__uploaded {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: #faf8f8;
	border: 1px solid var(--dcimty-line);
	border-radius: 8px;
}

.dcimty-comprobante__uploaded p {
	margin: 4px 0 0;
	color: var(--dcimty-muted);
}

.dcimty-comprobante__image,
.dcimty-comprobante__pdf {
	display: grid;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	place-items: center;
	object-fit: cover;
	background: #f4eded;
	border-radius: 6px;
}

.dcimty-comprobante__preview-link {
	display: block;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
}

@keyframes dcimty-comprobante-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes dcimty-comprobante-progress {
	0% {
		transform: translateX(-110%);
	}

	100% {
		transform: translateX(290%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcimty-comprobante__spinner {
		animation-duration: 1400ms;
	}

	.dcimty-comprobante__upload-state.is-uploading .dcimty-comprobante__progress span {
		animation-duration: 2200ms;
	}

	.dcimty-comprobante__progress span {
		transition: none;
	}
}

.dcimty-comprobante-page {
	padding: 48px 20px;
	background: #faf8f8;
}

.dcimty-comprobante-page__inner {
	width: 100%;
	max-width: 860px;
	min-height: 50vh;
	margin: 0 auto;
}

@media (max-width: 640px) {
	.dcimty-comprobante {
		margin: 18px auto;
		padding: 18px;
	}

	.dcimty-comprobante__heading h2 {
		font-size: 20px;
	}

	.dcimty-comprobante__form {
		grid-template-columns: 1fr;
	}

	.dcimty-comprobante__submit {
		width: 100%;
	}
}

