/**
 * 充值门户（短代码 teachcourse_kb_recharge）
 */
.tckb-recharge-portal {
	max-width: 42rem;
	margin: 0 auto 2rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.tckb-recharge-portal__inner {
	padding: 1rem 0;
}

.tckb-recharge-portal__notice,
.tckb-recharge-portal__msg {
	margin: 0.5rem 0;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}

.tckb-recharge-portal__msg--ok {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.tckb-recharge-portal__msg--err {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.tckb-recharge-portal__balance {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.tckb-recharge-portal__balance strong {
	font-size: 1.35rem;
	font-weight: 700;
}

.tckb-recharge-portal__guide {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: #374151;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
}

.tckb-recharge-portal__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
	padding: 0.25rem;
	background: #f3f4f6;
	border-radius: 10px;
}

.tckb-recharge-portal__tab {
	flex: 1 1 auto;
	min-width: 8rem;
	margin: 0;
	padding: 0.55rem 1rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: #4b5563;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.tckb-recharge-portal__tab:hover {
	color: #111827;
	background: rgba(255, 255, 255, 0.6);
}

.tckb-recharge-portal__tab.is-active {
	color: #9a3412;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tckb-recharge-portal__panels {
	margin-bottom: 0.5rem;
}

.tckb-recharge-portal__panel[hidden] {
	display: none !important;
}

.tckb-recharge-portal__steps {
	margin: 0 0 0.5rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #9a3412;
}

.tckb-recharge-portal__field-hint {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	font-weight: 400;
	color: #6b7280;
}

.tckb-r-status {
	display: inline-block;
	padding: 0.15rem 0.45rem;
	font-size: 0.82rem;
	font-weight: 600;
	border-radius: 4px;
	background: #f3f4f6;
	color: #374151;
}

.tckb-r-status--pending_review {
	background: #fef3c7;
	color: #92400e;
}

.tckb-r-status--redeemed {
	background: #d1fae5;
	color: #065f46;
}

.tckb-r-status--rejected {
	background: #fee2e2;
	color: #991b1b;
}

.tckb-r-status--closed {
	background: #e5e7eb;
	color: #4b5563;
}

.tckb-r-status--code_sent {
	background: #dbeafe;
	color: #1e40af;
}

.tckb-r-pay-flow {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tckb-r-pay-intro {
	margin: 0 0 0.25rem;
}

.tckb-r-step-card {
	margin: 0;
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.tckb-r-step-card__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}

.tckb-r-step-card__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #9a3412;
	background: #ffedd5;
	border-radius: 999px;
	flex-shrink: 0;
}

.tckb-r-step-card__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
}

.tckb-r-tier-summary {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #374151;
}

.tckb-r-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}

.tckb-r-form-grid__full {
	grid-column: 1 / -1;
}

@media (max-width: 520px) {
	.tckb-r-form-grid {
		grid-template-columns: 1fr;
	}
}

.tckb-r-email-warn {
	margin: 0.35rem 0 0;
	padding: 0.5rem 0.65rem;
	font-size: 0.82rem;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 6px;
}

.tckb-r-pending-alert {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	font-size: 0.88rem;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
}

.tckb-r-records__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.tckb-r-records__title {
	margin: 0;
	font-size: 1.05rem;
}

.tckb-r-records-table__row--pending {
	background: #fffbeb;
}

.tckb-r-qr-missing a {
	font-weight: 600;
}

.tckb-recharge-portal__section {
	margin-bottom: 1.75rem;
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.tckb-recharge-portal__section h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.tckb-recharge-portal__subhead {
	margin: 0.75rem 0 0.35rem;
	font-size: 0.98rem;
	font-weight: 600;
}

.tckb-r-pay-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

.tckb-r-pay-fig {
	margin: 0;
	text-align: center;
	max-width: 220px;
}

.tckb-r-pay-fig figcaption {
	margin-bottom: 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #374151;
}

.tckb-r-pay-fig img {
	display: block;
	width: 100%;
	max-width: 200px;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #fafafa;
}

.tckb-r-plans {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.tckb-r-plans .tckb-r-plan {
	margin: 0;
	white-space: normal;
	text-align: center;
	line-height: 1.3;
}

.tckb-recharge-portal__hint {
	margin: 0 0 1rem;
	color: #6b7280;
	font-size: 0.9rem;
}

.tckb-recharge-portal__field {
	margin-bottom: 0.85rem;
}

.tckb-recharge-portal__field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.tckb-recharge-portal__field input,
.tckb-recharge-portal__field select {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-sizing: border-box;
}

.tckb-recharge-portal__actions {
	margin-top: 1rem;
}

.tckb-recharge-portal__actions .button,
.tckb-recharge-portal__actions button {
	margin-right: 0.5rem;
	margin-bottom: 0.35rem;
}

.tckb-recharge-portal__table-wrap {
	overflow-x: auto;
	margin-top: 0.75rem;
}

.tckb-recharge-portal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.tckb-recharge-portal th,
.tckb-recharge-portal td {
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
}

.tckb-recharge-portal th {
	font-weight: 600;
	background: #f9fafb;
}

.tckb-recharge-portal__packages-title {
	margin: 0.75rem 0 0.35rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.tckb-recharge-portal__packages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tckb-recharge-portal__packages .tckb-r-pkg.is-selected {
	box-shadow: 0 0 0 2px #2563eb;
	border-color: #2563eb;
}

.tckb-recharge-portal__qr {
	margin: 0 0 1.25rem;
	padding: 0.75rem 0 0;
	border-top: 1px solid #e5e7eb;
}

.tckb-recharge-portal__qr-title {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.tckb-recharge-portal__qr-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-start;
}

.tckb-recharge-portal__qr-item {
	margin: 0;
	max-width: 200px;
}

.tckb-recharge-portal__qr-item figcaption {
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	color: #4b5563;
}

.tckb-recharge-portal__qr-item img {
	display: block;
	max-width: 200px;
	width: 100%;
	height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fafafa;
}

.tckb-recharge-portal__usage {
	margin: 1rem 0 1.25rem;
	padding: 0.85rem 1rem;
	background: #fffdfb;
	border: 1px solid #fed7aa;
	border-radius: 10px;
}

.tckb-recharge-portal__usage-title {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.tckb-recharge-portal__usage-list {
	margin: 0;
	padding-left: 1.15rem;
	font-size: 0.88rem;
	color: #374151;
}

.tckb-recharge-portal__usage-note {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: #6b7280;
}
