/* 基础 / 退压 支付页（pay-default-mode、pay-tuiya-mode） */
.pay-base {
	display: none;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	padding: 0 0 28px;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
	color: #e8ecf4;
}

body.pay-default-mode #pay_legacy.pay-base {
	display: block;
}

body.pay-default-mode #pay_tuiya.pay-base {
	display: none !important;
}

body.pay-tuiya-mode #pay_tuiya.pay-base {
	display: block;
}

body.pay-tuiya-mode #pay_legacy.pay-base {
	display: none !important;
}

body.pay-default-mode,
body.pay-tuiya-mode {
	overflow: auto;
	background: linear-gradient(180deg, #1a2a4a 0%, #12182a 35%, #0d111c 100%);
}

body.pay-default-mode .container,
body.pay-tuiya-mode .container {
	background: transparent;
	height: auto;
	min-height: 100vh;
	overflow: visible;
	align-items: flex-start;
}

body.pay-default-mode .box,
body.pay-tuiya-mode .box {
	width: 100%;
	max-width: 420px;
	padding: 16px 16px 32px;
}

.pay-base__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pay-base__order-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	margin-bottom: 14px;
	font-size: 12px;
	color: #c8d0e0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
}

.pay-base__order-badge svg {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

.pay-base__title {
	font-size: 20px;
	font-weight: 700;
	color: #f0f4fc;
	text-align: center;
	margin: 0 0 20px;
	letter-spacing: 1px;
}

.pay-base__card {
	background: rgba(22, 28, 42, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.pay-base__card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #b8c4d8;
}

.pay-base__card-head svg {
	width: 16px;
	height: 16px;
	opacity: 0.85;
}

.pay-base__meta-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
	color: #9aa8bc;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-base__meta-row:first-of-type {
	border-top: none;
	padding-top: 0;
}

.pay-base__meta-val {
	color: #e8ecf4;
	font-weight: 500;
	max-width: 62%;
	text-align: right;
	word-break: break-all;
	font-size: 13px;
}

.pay-base__meta-val.is-pending {
	color: #8a9bb0;
	font-size: 13px;
}

.pay-base__meta-val.is-error {
	color: #f87171;
	font-size: 13px;
}

.pay-base__price-card {
	background: rgba(12, 18, 32, 0.95);
	border: 1px solid rgba(80, 160, 255, 0.35);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 14px;
	box-shadow: 0 0 20px rgba(60, 140, 255, 0.08);
}

.pay-base__price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #9aa8bc;
}

.pay-base__price-total {
	font-size: 22px;
	font-weight: 700;
	color: #5ee0ff;
	letter-spacing: 0.02em;
}

.pay-base__hint {
	text-align: center;
	font-size: 13px;
	color: #6eb5ff;
	margin-bottom: 16px;
	line-height: 1.5;
}

.pay-base__hint strong {
	color: #5ee0ff;
	font-weight: 600;
	width: auto !important;
}

.pay-base__wallets {
	display: none;
	margin-bottom: 16px;
}

.pay-base__wallets.is-show {
	display: block;
}

.pay-base__wallets-title {
	text-align: center;
	font-size: 14px;
	color: #6eb5ff;
	margin-bottom: 12px;
}

.pay-base__wallet-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: rgba(28, 36, 52, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.pay-base__wallet-btn:hover {
	background: rgba(36, 46, 66, 0.98);
	border-color: rgba(110, 181, 255, 0.35);
}

.pay-base__wallet-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: contain;
	flex-shrink: 0;
	background: #fff;
}

.pay-base__wallet-name {
	font-size: 15px;
	font-weight: 600;
	color: #f0f4fc;
}

.pay-base__btn {
	width: 100%;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	border: none;
	border-radius: 14px;
	background: linear-gradient(90deg, #3c8ce7 0%, #00eaff 100%);
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(60, 140, 255, 0.35);
	transition: opacity 0.2s, transform 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.pay-base__btn:hover:not(:disabled) {
	opacity: 0.95;
}

.pay-base__btn:active:not(:disabled) {
	transform: scale(0.98);
}

.pay-base__btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	background: linear-gradient(90deg, #5a5a6a 0%, #4a4a58 100%);
	box-shadow: none;
	font-size: 14px;
	line-height: 1.4;
	padding: 14px 12px;
}

/* 隐藏旧版绿按钮样式，逻辑按钮保留在 DOM */
body.pay-default-mode .pay-base .input_submit.pay-base__logic-btn,
body.pay-tuiya-mode .pay-base .input_submit.pay-base__logic-btn {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
}
