/* ElectroCareHub Checkout: wallet payment panel and reference page.
   Uses the storefront --ech-* tokens with fallbacks (see 01-DESIGN-SYSTEM.md). */

.ech-wallet {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid var(--ech-border, #e2e8f0);
	border-radius: var(--ech-radius-md, 12px);
	background: var(--ech-white, #fff);
	color: var(--ech-text, #475569);
}

.ech-wallet__title {
	margin: 0 0 4px;
	font-size: 1.25rem;
	color: var(--ech-ink, #0f172a);
}

.ech-wallet__order {
	margin: 0 0 16px;
	color: var(--ech-muted, #64748b);
}

.ech-wallet__subtitle {
	margin: 20px 0 8px;
	font-size: 1rem;
	color: var(--ech-ink, #0f172a);
}

.ech-wallet__steps {
	margin: 0 0 16px;
	padding-left: 1.25em;
}

.ech-wallet__steps li + li {
	margin-top: 8px;
}

.ech-wallet__recipient {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 12px;
	margin: 8px 0 0;
	padding: 12px;
	border-radius: var(--ech-radius-sm, 8px);
	background: var(--ech-surface, #f8fafc);
}

@media (max-width: 479px) {
	.ech-wallet__recipient {
		grid-template-columns: 1fr;
	}

	.ech-wallet__recipient dd + dt {
		margin-top: 6px;
	}
}

.ech-wallet__recipient dt {
	font-weight: 600;
	color: var(--ech-ink, #0f172a);
}

.ech-wallet__recipient dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.ech-wallet__recipient--placeholder {
	border-left: 4px solid var(--ech-warning, #b45309);
	background: var(--ech-warning-soft, #fffbeb);
}

.ech-wallet__history {
	margin: 0 0 16px;
	padding-left: 1.25em;
}

.ech-wallet__ref {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--ech-ink, #0f172a);
}

.ech-wallet__form {
	margin: 16px 0 0;
}

.ech-wallet__fields {
	display: grid;
	gap: 0 16px;
}

@media (min-width: 640px) {
	.ech-wallet__fields {
		grid-template-columns: 1fr 1fr;
	}
}

.ech-wallet__field {
	margin: 0 0 14px;
}

.ech-wallet__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--ech-ink, #0f172a);
}

.ech-wallet__field input {
	width: 100%;
	max-width: 100%;
}

.ech-wallet__notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: var(--ech-radius-sm, 8px);
	background: var(--ech-primary-soft, #eff6ff);
	color: var(--ech-ink, #0f172a);
}

.ech-wallet__notice--error {
	background: #fef2f2;
	border-left: 4px solid var(--ech-sale, #dc2626);
}

.ech-wallet__notice--ok {
	border-left: 4px solid var(--ech-success, #15803d);
}

.ech-wallet__status--ok {
	color: var(--ech-success, #15803d);
	font-weight: 600;
}

.ech-wallet__fineprint {
	margin: 16px 0 0;
	font-size: 0.875rem;
	color: var(--ech-muted, #64748b);
}

.ech-wallet-page__article {
	max-width: 720px;
	margin: 0 auto;
}

.ech-wallet-page__title {
	margin-bottom: 16px;
}

.ech-wallet__file {
	width: 100%;
	max-width: 100%;
	padding: 8px;
	box-sizing: border-box;
}

.ech-wallet__help {
	display: block;
	margin-top: 4px;
	font-size: 0.875em;
	opacity: 0.8;
}

.ech-wallet__receipt {
	margin-left: 6px;
	font-size: 0.875em;
}
