/* WC Card to Card */

.wcc-box,
.wcc-order,
.wcc-account {
	--wcc-primary: #2563eb;
	--wcc-border: #d1d5db;
	--wcc-soft: #f3f4f6;
	--wcc-danger: #dc2626;
	--wcc-ok: #15803d;
	--wcc-warn: #b45309;
	--wcc-muted: #6b7280;
	font-family: inherit;
}

.wcc-box *,
.wcc-order *,
.wcc-account * {
	box-sizing: border-box;
}

.wcc-box [hidden],
.wcc-order [hidden] {
	display: none !important;
}

.wcc-amount {
	margin: 0 0 12px;
}

.wcc-hint {
	color: var(--wcc-muted);
	font-size: 0.9rem;
}

/* ---------- کارت‌های بانکی ---------- */

.wcc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.wcc-card {
	padding: 14px 16px;
	border: 1px solid var(--wcc-border);
	border-radius: 14px;
	background: #fff;
}

.wcc-card-bank {
	margin-bottom: 6px;
	font-weight: 600;
}

.wcc-card-number {
	margin-bottom: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-align: left;
}

.wcc-card-owner,
.wcc-card-sheba {
	margin-top: 8px;
	font-size: 0.9rem;
	color: #374151;
}

.wcc-copy {
	padding: 5px 12px;
	border: 1px solid var(--wcc-primary);
	border-radius: 8px;
	background: #fff;
	color: var(--wcc-primary);
	font-size: 0.8rem;
	line-height: 1.4;
	cursor: pointer;
}

.wcc-copy:hover {
	background: #eff6ff;
}

/* ---------- آپلود ---------- */

.wcc-label {
	margin: 0 0 6px;
	font-size: 0.9rem;
	font-weight: 500;
}

.wcc-label .required {
	color: var(--wcc-danger);
	text-decoration: none;
	border: 0;
}

.wcc-file {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 12px;
}

.wcc-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.wcc-file-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--wcc-border);
	border-radius: 10px;
	background: var(--wcc-soft);
	color: #111827;
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
}

.wcc-file-btn:hover {
	background: #e5e7eb;
}

.wcc-file-input:focus-visible + .wcc-file-btn {
	outline: 3px solid rgba(37, 99, 235, 0.4);
	outline-offset: 2px;
}

.wcc-file-name {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--wcc-muted);
	font-size: 0.85rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcc-file-remove {
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: var(--wcc-danger);
	font-size: 0.85rem;
	cursor: pointer;
}

.wcc-file-status {
	flex-basis: 100%;
	min-height: 1.2em;
	font-size: 0.85rem;
}

.wcc-file-status.is-loading { color: var(--wcc-muted); }
.wcc-file-status.is-ok { color: var(--wcc-ok); }
.wcc-file-status.is-error { color: var(--wcc-danger); }

.wcc-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px 14px;
}

.wcc-meta p {
	margin: 0;
}

.wcc-meta label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
}

.wcc-meta input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--wcc-border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
}

/* ---------- بلوک سفارش / حساب کاربری ---------- */

.wcc-order {
	margin: 28px 0;
}

.wcc-order-title {
	margin: 0 0 14px;
}

.wcc-submit {
	margin-top: 18px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.wcc-submit-title {
	margin: 0 0 12px;
	font-size: 1.05rem;
}

.wcc-submit-btn {
	margin-top: 14px;
}

.wcc-receipts {
	display: grid;
	gap: 12px;
}

.wcc-receipt {
	display: flex;
	gap: 14px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.wcc-receipt-thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--wcc-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.wcc-receipt-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wcc-receipt-pdf {
	font-weight: 700;
	color: var(--wcc-danger);
}

.wcc-receipt-info {
	min-width: 0;
	font-size: 0.9rem;
}

.wcc-receipt-date,
.wcc-receipt-detail {
	margin-top: 4px;
	color: #4b5563;
}

.wcc-receipt-note {
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: 8px;
	background: #fef2f2;
	color: #991b1b;
}

.wcc-receipt-open {
	display: inline-block;
	margin-top: 6px;
}

.wcc-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
}

.wcc-badge--pending { background: #fef3c7; color: var(--wcc-warn); }
.wcc-badge--approved { background: #dcfce7; color: var(--wcc-ok); }
.wcc-badge--rejected { background: #fee2e2; color: #b91c1c; }

.wcc-account-card {
	margin: 0 0 22px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.wcc-account-title {
	margin: 0 0 12px;
	font-size: 1.05rem;
}

.wcc-account-meta {
	margin-inline-start: 8px;
	color: var(--wcc-muted);
	font-size: 0.85rem;
	font-weight: 400;
}

@media (max-width: 520px) {
	.wcc-receipt {
		flex-direction: column;
	}
}
