/* Asistente modal: nueva orden en pasos */
.sgt-ui-order-wizard .sgt-ui-modal__panel--wizard {
	max-width: 34rem;
	width: calc(100vw - 1.5rem);
	max-height: min(92vh, 44rem);
	display: flex;
	flex-direction: column;
	border-radius: 1rem;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
	overflow: hidden;
	background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #fff 100%);
}

.sgt-ui-wizard-head {
	align-items: flex-start;
	gap: 0.75rem;
	border-bottom: 1px solid rgba(99, 102, 241, 0.15);
	padding-bottom: 0.75rem;
	margin-bottom: 0.5rem;
}

.sgt-ui-wizard-tagline {
	margin: 0.2rem 0 0;
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 500;
}

.sgt-ui-wizard-track {
	display: flex;
	gap: 0.35rem;
	justify-content: space-between;
	padding: 0.5rem 0 0.75rem;
	flex-wrap: wrap;
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.sgt-ui-wizard-dot {
	flex: 1 1 auto;
	min-width: 4.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	padding: 0.35rem 0.25rem;
	border: 1px solid transparent;
	border-radius: 0.65rem;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	font: inherit;
	color: #64748b;
	transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.sgt-ui-wizard-dot:hover:not([disabled]) {
	background: rgba(255, 255, 255, 0.95);
	border-color: rgba(99, 102, 241, 0.35);
}

.sgt-ui-wizard-dot[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.sgt-ui-wizard-dot.is-active {
	border-color: rgba(79, 70, 229, 0.55);
	background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
	color: #312e81;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12);
}

.sgt-ui-wizard-dot.is-done {
	color: #059669;
}

.sgt-ui-wizard-dot__n {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	background: rgba(99, 102, 241, 0.12);
	font-size: 0.75rem;
	font-weight: 700;
	color: #4338ca;
}

.sgt-ui-wizard-dot.is-done .sgt-ui-wizard-dot__n {
	background: rgba(16, 185, 129, 0.18);
	color: #047857;
}

.sgt-ui-wizard-dot__l {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: center;
	line-height: 1.15;
}

.sgt-ui-wizard-form {
	flex: 1 1 auto;
	overflow: auto;
	padding: 0.25rem 0.15rem 0.5rem;
	-webkit-overflow-scrolling: touch;
}

.sgt-ui-wizard-step {
	animation: sgt-wiz-fade 0.22s ease-out;
}

@keyframes sgt-wiz-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.sgt-ui-wizard-hero {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem;
	margin-bottom: 0.85rem;
	border-radius: 0.85rem;
	background: linear-gradient(120deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.1));
	border: 1px solid rgba(99, 102, 241, 0.18);
}

.sgt-ui-wizard-mascot {
	font-size: 1.75rem;
	line-height: 1;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

.sgt-ui-wizard-hero strong {
	display: block;
	font-size: 0.95rem;
	color: #1e1b4b;
}

.sgt-ui-wizard-hero__sub {
	margin: 0.2rem 0 0;
	font-size: 0.8rem;
	color: #475569;
	line-height: 1.35;
}

.sgt-ui-wizard-clientpicker {
	margin-bottom: 0.35rem;
}

.sgt-ui-wizard-hint {
	margin: 0.75rem 0 0;
}

.sgt-ui-formsec--flat {
	background: rgba(255, 255, 255, 0.65);
	border-radius: 0.65rem;
	padding: 0.65rem 0.75rem;
	margin-bottom: 0.75rem;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.sgt-ui-wizard-acc {
	margin-top: 0.75rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(255, 255, 255, 0.7);
	overflow: hidden;
}

.sgt-ui-wizard-acc__summary {
	cursor: pointer;
	list-style: none;
	padding: 0.65rem 0.85rem;
	font-weight: 600;
	font-size: 0.88rem;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sgt-ui-wizard-acc__summary::-webkit-details-marker {
	display: none;
}

.sgt-ui-wizard-acc__hint {
	font-weight: 500;
	font-size: 0.75rem;
	color: #94a3b8;
}

.sgt-ui-wizard-acc__body {
	padding: 0 0.75rem 0.75rem;
	border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.sgt-ui-wizard-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0.65rem 0.75rem;
	border-top: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(255, 255, 255, 0.92);
	flex-shrink: 0;
}

.sgt-ui-wizard-bar__spacer {
	flex: 1 1 auto;
	min-width: 0.25rem;
}

.sgt-ui-wizard-hidden-submit {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sgt-ui-wizard-assist {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	padding: 0.75rem 0.85rem;
	margin-bottom: 0.75rem;
	border-radius: 0.85rem;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 1px solid rgba(245, 158, 11, 0.45);
	font-size: 0.85rem;
	line-height: 1.45;
	color: #78350f;
}

.sgt-ui-wizard-assist__ico {
	font-size: 1.35rem;
	line-height: 1;
	flex-shrink: 0;
}

.sgt-ui-wizard-summary {
	border-radius: 0.75rem;
	border: 1px dashed rgba(99, 102, 241, 0.45);
	background: rgba(255, 255, 255, 0.85);
	padding: 0.5rem 0.65rem;
	font-size: 0.85rem;
}

.sgt-ui-wizard-sumrow {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.sgt-ui-wizard-sumrow:last-child {
	border-bottom: 0;
}

.sgt-ui-wizard-sumrow span {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
	font-weight: 600;
}

.sgt-ui-wizard-sumrow strong {
	color: #0f172a;
	font-weight: 600;
	word-break: break-word;
}

#sgt-ui-wizard-form-msg {
	margin-top: 0.5rem;
}
