/* Local payment sandbox presentation. */

.am-m6-main {
	max-width: none;
}

/* Three steps at every width; labels wrap inside their column instead of
   dropping to a second row. */
.am-m6-progress ol {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.am-m6-header {
	align-items: flex-end;
}

.am-m6-layout {
	align-items: start;
	display: grid;
	gap: var(--am-space-6);
	grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.75fr);
	margin: 0 auto;
	max-width: var(--am-content-max);
}

.am-m6-provider,
.am-m6-next-step {
	background: var(--am-white);
	border: 1px solid var(--am-border-strong);
	border-radius: var(--am-radius-card);
	padding: var(--am-space-5);
}

.am-m6-provider > h2,
.am-m6-next-step > h2 {
	font-size: var(--am-text-md);
	margin-bottom: var(--am-space-2);
}

.am-m6-provider > p,
.am-m6-next-step > p {
	color: var(--am-text-muted);
	margin-bottom: var(--am-space-4);
}

/* Developer-tool framing: the sandbox is a local contract exercise, not a payment. */
.am-m6-next-step {
	background: var(--am-surface-2);
	border-style: dashed;
	margin-block: var(--am-space-5);
	text-align: left;
}

.am-m6-outcomes {
	border: 0;
	display: grid;
	gap: var(--am-space-2);
	margin: 0 0 var(--am-space-4);
	min-width: 0;
	padding: 0;
}

.am-m6-outcomes legend {
	color: var(--am-text-subtle);
	font-size: var(--am-text-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: var(--am-space-2);
	padding: 0;
}

.am-m6-outcomes label {
	align-items: center;
	border: 1px solid var(--am-border-strong);
	border-radius: var(--am-radius-control);
	cursor: pointer;
	display: flex;
	gap: var(--am-space-3);
	min-height: 2.75rem;
	padding: var(--am-space-2) var(--am-space-3);
}

.am-m6-outcomes label:hover {
	border-color: var(--am-silver-500);
}

.am-m6-outcomes label:has(input:checked) {
	background: var(--am-brand-soft);
	border-color: var(--am-brand);
	box-shadow: inset 0 0 0 1px var(--am-brand);
}

.am-m6-outcomes input {
	accent-color: var(--am-navy-900);
	height: 1.25rem;
	margin: 0;
	width: 1.25rem;
}

.am-m6-result {
	background: var(--am-status-info-bg);
	border-left: 3px solid var(--am-navy-700);
	border-radius: var(--am-radius-control);
	margin-block: var(--am-space-4);
	padding: var(--am-space-4);
}

.am-m6-result h3 {
	font-size: var(--am-text-md);
	margin-bottom: var(--am-space-1);
}

.am-m6-result p {
	color: var(--am-text-muted);
	margin-bottom: 0;
}

.am-m6-result--success {
	background: var(--am-status-success-bg);
	border-left-color: var(--am-success);
}

.am-m6-result--error {
	background: var(--am-status-danger-bg);
	border-left-color: var(--am-danger);
}

.am-m6-result--pending {
	background: var(--am-status-warning-bg);
	border-left-color: var(--am-warning);
}

.am-m6-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--am-space-3);
	margin: var(--am-space-6) auto 0;
	max-width: var(--am-content-max);
}

@media (max-width: 58rem) {
	.am-m6-layout {
		grid-template-columns: 1fr;
	}

	.am-m6-summary {
		order: 2;
		position: static;
	}
}

@media (max-width: 50rem) {
	.am-m6-header {
		align-items: stretch;
	}
}

@media (max-width: 40rem) {
	.am-m6-actions .am-button {
		width: 100%;
	}
}

@media (max-width: 30rem) {
	.am-m6-provider,
	.am-m6-next-step {
		padding: var(--am-space-4);
	}

	.am-m6-progress li {
		font-size: var(--am-text-xs);
		padding-inline: var(--am-space-1);
	}
}
