.unica-ft-summary {
	border-top: 1px solid #e5e7eb;
	display: grid;
	gap: 5px;
	margin-top: 9px;
	padding-top: 8px;
}

.unica-ft-summary-label {
	color: #475569;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.unica-ft-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.unica-ft-badge {
	background: #f1f5f9;
	border-radius: 999px;
	color: #64748b;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	padding: 2px 7px;
}

.unica-ft-badge.is-ready {
	background: #dcfce7;
	color: #166534;
}

.unica-ft-open {
	align-items: flex-start !important;
	display: inline-flex !important;
	flex-direction: column;
	height: auto !important;
	line-height: 1.25 !important;
	padding-bottom: 6px !important;
	padding-top: 6px !important;
}

.unica-ft-open small {
	color: #64748b;
	font-size: 10px;
	font-weight: 500;
}

.unica-ft-dialog {
	background: transparent;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
	margin: auto;
	max-height: min(90vh, 920px);
	max-width: min(820px, calc(100vw - 32px));
	padding: 0;
	width: 100%;
}

.unica-ft-dialog::backdrop {
	background: rgba(15, 23, 42, .62);
	backdrop-filter: blur(2px);
}

.unica-ft-form {
	background: #f8fafc;
	color: #0f172a;
	display: flex;
	flex-direction: column;
	max-height: min(90vh, 920px);
}

.unica-ft-header,
.unica-ft-footer {
	align-items: center;
	background: #fff;
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 18px 22px;
}

.unica-ft-header {
	border-bottom: 1px solid #e2e8f0;
}

.unica-ft-header h2 {
	font-size: 21px;
	line-height: 1.2;
	margin: 2px 0 0;
}

.unica-ft-kicker {
	color: #f05a12;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.unica-ft-close {
	align-items: center;
	background: #f1f5f9;
	border: 0;
	border-radius: 999px;
	color: #334155;
	cursor: pointer;
	display: flex;
	font-size: 26px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	width: 38px;
}

.unica-ft-close:hover,
.unica-ft-close:focus-visible {
	background: #e2e8f0;
	color: #0f172a;
}

.unica-ft-loading,
.unica-ft-content {
	overflow-y: auto;
	padding: 20px 22px;
}

.unica-ft-loading {
	min-height: 160px;
}

.unica-ft-loading.is-error {
	color: #b91c1c;
}

.unica-ft-content {
	display: grid;
	gap: 16px;
}

.unica-ft-content[hidden] {
	display: none;
}

.unica-ft-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px;
}

.unica-ft-section-heading,
.unica-ft-section-heading > div {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.unica-ft-section-heading > div {
	gap: 7px;
}

.unica-ft-section h3 {
	font-size: 15px;
	margin: 0 0 14px;
}

.unica-ft-section-heading h3 {
	margin: 0;
}

.unica-ft-section-state {
	background: #f1f5f9;
	border-radius: 999px;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
}

.unica-ft-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 16px;
}

.unica-ft-grid label {
	display: grid;
	gap: 6px;
}

.unica-ft-grid label > span,
.unica-ft-document strong {
	color: #334155;
	font-size: 12px;
	font-weight: 700;
}

.unica-ft-grid label > span small {
	color: #94a3b8;
	font-weight: 500;
}

.unica-ft-grid input,
.unica-ft-grid select {
	border-color: #cbd5e1;
	border-radius: 8px;
	box-shadow: none;
	max-width: none;
	min-height: 40px;
	width: 100%;
}

.unica-ft-grid input:focus,
.unica-ft-grid select:focus {
	border-color: #f05a12;
	box-shadow: 0 0 0 1px #f05a12;
}

.unica-ft-wide {
	grid-column: 1 / -1;
}

.unica-ft-documents {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 14px;
}

.unica-ft-document {
	align-items: center;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	display: grid;
	gap: 9px;
	padding: 12px;
}

.unica-ft-document > div {
	display: grid;
	gap: 2px;
}

.unica-ft-document span,
.unica-ft-document small {
	color: #64748b;
	font-size: 11px;
	overflow-wrap: anywhere;
}

.unica-ft-document input[type="file"] {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.unica-ft-remove {
	color: #b91c1c;
	font-size: 11px;
}

.unica-ft-provider {
	align-items: center;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 9px;
	color: #1e40af;
	display: flex;
	font-size: 12px;
	gap: 10px;
	justify-content: space-between;
	margin-top: 12px;
	padding: 9px 11px;
}

.unica-ft-input-tools {
	display: flex;
	gap: 7px;
}

.unica-ft-input-tools input {
	flex: 1 1 auto;
}

.unica-ft-input-tools .button {
	flex: 0 0 auto;
	min-height: 40px;
}

.unica-ft-workflow {
	background: #fffbeb;
	border-color: #fde68a;
}

.unica-ft-workflow .description {
	margin: 12px 0 0;
}

.unica-ft-message {
	background: #fff;
	border-top: 1px solid #e2e8f0;
	color: #475569;
	min-height: 18px;
	padding: 9px 22px;
}

.unica-ft-message:empty {
	display: none;
}

.unica-ft-message.is-success {
	background: #ecfdf5;
	color: #166534;
}

.unica-ft-message.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.unica-ft-footer {
	border-top: 1px solid #e2e8f0;
	gap: 9px;
	justify-content: flex-end;
}

.order-status.status-nf-emitida {
	background: #0f766e !important;
	color: #fff !important;
}

.unica-customer-order-box {
	margin-top: 30px;
}

.unica-customer-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	margin-bottom: 14px;
	padding: 18px;
}

.unica-account-tracking-cell {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.unica-account-tracking-carrier {
	font-size: 12px;
	font-weight: 700;
}

.unica-account-tracking-code {
	font-family: monospace;
	font-size: 12px;
}

.unica-account-track-btn,
.unica-account-danfe-btn {
	background: #f05a12;
	border-radius: 999px;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	text-decoration: none !important;
}

.unica-account-danfe-btn {
	background: #e5e7eb;
	color: #111827 !important;
}

.unica-account-tracking-wait {
	color: #6b7280;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 782px) {
	.unica-ft-dialog {
		border-radius: 0;
		height: 100dvh;
		max-height: 100dvh;
		max-width: 100vw;
		width: 100vw;
	}

	.unica-ft-form {
		height: 100dvh;
		max-height: 100dvh;
	}

	.unica-ft-header,
	.unica-ft-footer,
	.unica-ft-loading,
	.unica-ft-content {
		padding-left: 15px;
		padding-right: 15px;
	}

	.unica-ft-grid,
	.unica-ft-documents {
		grid-template-columns: 1fr;
	}

	.unica-ft-wide {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.unica-ft-dialog {
		scroll-behavior: auto;
	}
}
