/**
 * AR TMC Payments Hub — student-side styles
 */
.artmc-pay {
	max-width: 760px;
	margin: 24px auto;
	padding: 0 16px;
	font-family: 'Cairo', system-ui, -apple-system, sans-serif;
	color: #1a1a2e;
	line-height: 1.6;
}

.artmc-pay-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.artmc-pay-warning {
	border-color: #fbbf24;
	background: #fffbeb;
}

.artmc-pay-summary {
	text-align: center;
	border-top: 4px solid #6f42c1;
}
.artmc-pay-summary-label {
	font-size: 12px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}
.artmc-pay-summary-amount {
	font-size: 42px;
	font-weight: 800;
	background: linear-gradient(135deg, #6f42c1, #0dcaf0);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 8px;
}
.artmc-pay-summary-amount small {
	font-size: 18px;
	background: none;
	-webkit-text-fill-color: #64748b;
	color: #64748b;
	font-weight: 600;
}
.artmc-pay-summary-desc {
	color: #475569;
	font-size: 15px;
}
.artmc-pay-status-big {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 12px;
}
.artmc-pay-reject-reason {
	margin-top: 16px;
	padding: 12px 16px;
	background: #fef2f2;
	border-right: 4px solid #ef4444;
	border-radius: 8px;
	text-align: right;
	color: #991b1b;
	font-size: 14px;
}

.artmc-pay-card h3 {
	margin: 0 0 16px;
	color: #6f42c1;
	font-size: 18px;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.artmc-pay-gateways {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.artmc-pay-gateway {
	cursor: pointer;
	position: relative;
}
.artmc-pay-gateway input[type="radio"] {
	position: absolute;
	opacity: 0;
}
.artmc-pay-gateway-card {
	padding: 16px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	transition: all 0.15s;
}
.artmc-pay-gateway:hover .artmc-pay-gateway-card {
	border-color: #c4b5fd;
}
.artmc-pay-gateway input[type="radio"]:checked + .artmc-pay-gateway-card {
	border-color: #6f42c1;
	background: #faf5ff;
	box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}
.artmc-pay-gateway-card strong {
	font-size: 14px;
	color: #1a1a2e;
}

.artmc-pay-instructions {
	margin-top: 16px;
	padding: 16px 20px;
	background: #f8fafc;
	border-right: 3px solid #6f42c1;
	border-radius: 10px;
}
.artmc-pay-instructions h4 { margin: 0 0 8px; font-size: 14px; color: #6f42c1; }
.artmc-pay-creds {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
}
.artmc-pay-creds th, .artmc-pay-creds td {
	padding: 6px 8px;
	text-align: right;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 13px;
}
.artmc-pay-creds th { color: #94a3b8; font-weight: 600; width: 100px; }
.artmc-pay-creds code {
	background: #fff;
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
	font-family: 'SF Mono', Menlo, monospace;
	color: #6f42c1;
	user-select: all;
}

.artmc-pay-field { margin-bottom: 16px; }
.artmc-pay-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #1a1a2e;
}
.artmc-pay-field input[type="text"],
.artmc-pay-field input[type="file"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}
.artmc-pay-field input:focus {
	outline: none;
	border-color: #6f42c1;
	box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
}
.artmc-pay-field small { display: block; margin-top: 4px; color: #94a3b8; font-size: 12px; }

.artmc-pay-actions { margin-top: 20px; }
.artmc-pay-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: all 0.15s;
}
.artmc-pay-btn-primary {
	background: linear-gradient(135deg, #6f42c1, #5a32a3);
	color: white;
}
.artmc-pay-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(111, 66, 193, 0.3);
}
.artmc-pay-btn-small {
	padding: 6px 14px;
	background: #6f42c1;
	color: white !important;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

#artmc-pay-msg {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 10px;
	display: none;
}
#artmc-pay-msg.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
#artmc-pay-msg.error   { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

.artmc-pay-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 11px;
	color: white;
}

.artmc-pay-history { display: grid; gap: 10px; }
.artmc-pay-history-row {
	display: grid;
	grid-template-columns: 2fr 1fr auto auto;
	gap: 16px;
	align-items: center;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}
.artmc-pay-history-row strong { display: block; font-size: 14px; }
.artmc-pay-history-row small { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }
.artmc-pay-history-amount { font-weight: 700; font-size: 16px; color: #6f42c1; }
.artmc-pay-history-amount small { font-size: 12px; color: #94a3b8; font-weight: 400; }

@media (max-width: 600px) {
	.artmc-pay-history-row { grid-template-columns: 1fr 1fr; }
	.artmc-pay-gateways { grid-template-columns: repeat(2, 1fr); }
	.artmc-pay-summary-amount { font-size: 32px; }
}

/* ============================================================
 * PHASE 6.1 — STRIPE / INSTANT GATEWAY
 * ============================================================ */

.artmc-pay-instant-cta {
	margin-top: 16px;
	padding: 22px;
	background: linear-gradient(135deg, #635bff 0%, #5046e5 100%);
	border-radius: 14px;
	text-align: center;
	color: white;
	box-shadow: 0 8px 24px rgba(99, 91, 255, 0.25);
}
.artmc-pay-instant-cta .artmc-pay-btn-instant {
	background: white;
	color: #5046e5;
	font-size: 18px;
	font-weight: 700;
	padding: 14px 36px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: all 0.15s;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.artmc-pay-instant-cta .artmc-pay-btn-instant:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.artmc-pay-instant-cta .artmc-pay-btn-instant:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}
.artmc-pay-instant-cta small {
	display: block;
	margin-top: 12px;
	opacity: 0.95;
	font-size: 12px;
}
