/* Account center (profile/index.html + partials) — theme.css .btn rules break outline buttons */

/* 「等待付款」弹框：适中宽度、二维码清晰；底部按钮单行不换行 */
#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog,
#reg-wait-pay-modal .profile-wait-pay-modal-dialog {
	max-width: min(28rem, calc(100vw - 1.25rem));
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog .modal-header,
#reg-wait-pay-modal .profile-wait-pay-modal-dialog .modal-header {
	padding: 0.65rem 0.9rem;
}

#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog .modal-title,
#reg-wait-pay-modal .profile-wait-pay-modal-dialog .modal-title {
	font-size: 1.05rem;
}

#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog .modal-body,
#reg-wait-pay-modal .profile-wait-pay-modal-dialog .modal-body {
	padding: 0.85rem 0.9rem 1rem;
}

#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog .modal-footer,
#reg-wait-pay-modal .profile-wait-pay-modal-dialog .modal-footer {
	padding: 0.65rem 0.85rem;
	gap: 0.5rem;
	flex-wrap: nowrap;
	justify-content: center !important;
	align-items: center;
}

#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog .modal-footer .btn,
#reg-wait-pay-modal .profile-wait-pay-modal-dialog .modal-footer .btn {
	white-space: nowrap;
	flex: 0 0 auto;
}

@media (max-width: 359px) {
	#profile-fee-wait-pay-modal .profile-wait-pay-modal-dialog .modal-footer .btn,
	#reg-wait-pay-modal .profile-wait-pay-modal-dialog .modal-footer .btn {
		font-size: 0.8125rem;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
}

.profile-wait-pay-group-qr {
	max-width: 100%;
}

.profile-wait-pay-group-qr-frame {
	width: 100%;
	max-width: 100%;
	padding: 0.35rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0.5rem;
	box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.06);
}

.profile-wait-pay-group-qr-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

#profile-fee-amount-display {
	background-color: #f8f9fa;
}

/* Registration fee — order confirmation (inline preview, matches registration-form look) */
#profile-section-fee-preview .section-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #2c3e50;
	border-bottom: 2px solid #098dcf;
	padding-bottom: 0.5rem;
	display: inline-block;
}

#profile-section-fee-preview .profile-fee-preview-summary {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 1.5rem 1.25rem;
}

#profile-section-fee-preview .profile-fee-preview-field .form-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
	margin-bottom: 0.35rem;
}

#profile-section-fee-preview .profile-fee-preview-value {
	font-size: 1rem;
	color: #141c25;
	font-weight: 500;
	line-height: 1.45;
	word-break: break-word;
}

#profile-section-fee-preview .profile-fee-preview-field--amount {
	margin-top: 0.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #dee2e6;
}

#profile-section-fee-preview .profile-fee-preview-field--amount .form-label {
	color: #098dcf;
}

#profile-section-fee-preview .profile-fee-preview-amount {
	font-size: 1.5rem;
	font-weight: 700;
	color: #098dcf;
	line-height: 1.2;
}

#profile-section-fee-preview .profile-fee-preview-currency {
	font-size: 1rem;
	font-weight: 600;
	color: #6c757d;
	margin-left: 0.25rem;
}

#profile-section-fee-preview #profile-fee-preview-pay.btn-primary {
	font-weight: 600;
	color: #fff !important;
	background-color: #098dcf !important;
	border: none !important;
	box-shadow: none;
}

#profile-section-fee-preview #profile-fee-preview-pay.btn-primary:hover {
	background-color: rgb(6.875, 107.71, 158.13) !important;
	color: #fff !important;
}
.profile-abstract-list-table { font-size: 0.95rem; }
.profile-abstract-list-table th { white-space: nowrap; }
.profile-abs-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
}
.profile-abs-actions .btn.btn-sm {
	font-weight: 600;
	color: #fff !important;
	border: none !important;
	box-shadow: none;
}
.profile-abs-actions .btn-primary {
	background-color: #098dcf !important;
}
.profile-abs-actions .btn-primary:hover {
	background-color: rgb(6.875, 107.71, 158.13) !important;
	color: #fff !important;
}
.profile-abs-actions .btn-danger {
	background-color: #dc3545 !important;
}
.profile-abs-actions .btn-danger:hover {
	background-color: #bb2d3b !important;
	color: #fff !important;
}
#profile-section-abstract a.btn.btn-primary.btn-sm {
	font-weight: 600;
	color: #fff !important;
	background-color: #098dcf !important;
	border: none !important;
	box-shadow: none;
}
#profile-section-abstract a.btn.btn-primary.btn-sm:hover {
	background-color: rgb(6.875, 107.71, 158.13) !important;
	color: #fff !important;
}
#reg-edit-btn.btn {
	font-weight: 600;
	color: #fff !important;
	background-color: #098dcf !important;
	border: none !important;
	box-shadow: none;
}
#reg-edit-btn.btn:hover {
	background-color: rgb(6.875, 107.71, 158.13) !important;
	color: #fff !important;
}
#reg-go-pay-btn.btn {
	font-weight: 600;
	color: #fff !important;
	background-color: #098dcf !important;
	border: none !important;
	box-shadow: none;
}
#reg-go-pay-btn.btn:hover {
	background-color: rgb(6.875, 107.71, 158.13) !important;
	color: #fff !important;
}
#reg-cancel-btn.btn {
	font-weight: 600;
	color: #dc3545 !important;
	background-color: #fff !important;
	border: 1px solid #dc3545 !important;
	box-shadow: none;
}
#reg-cancel-btn.btn:hover {
	color: #fff !important;
	background-color: #dc3545 !important;
	border-color: #dc3545 !important;
}
#profile-fee-wait-pay-reorder.btn,
#reg-wait-pay-reorder.btn {
	font-weight: 600;
	color: #6c757d !important;
	background-color: #fff !important;
	border: 1px solid #ced4da !important;
	box-shadow: none;
}
#profile-fee-wait-pay-reorder.btn:hover,
#reg-wait-pay-reorder.btn:hover {
	color: #495057 !important;
	background-color: #f8f9fa !important;
	border-color: #adb5bd !important;
}
#profile-fee-wait-pay-completed.btn,
#reg-wait-pay-completed.btn {
	font-weight: 600;
	color: #fff !important;
	background-color: #098dcf !important;
	border: none !important;
	box-shadow: none;
}
#profile-fee-wait-pay-completed.btn:hover,
#reg-wait-pay-completed.btn:hover {
	color: #fff !important;
	background-color: rgb(6.875, 107.71, 158.13) !important;
}
#registration-empty-register-btn.btn {
	font-weight: 600;
	color: #fff !important;
	background-color: #098dcf !important;
	border: none !important;
	box-shadow: none;
}
#registration-empty-register-btn.btn:hover {
	background-color: rgb(6.875, 107.71, 158.13) !important;
	color: #fff !important;
}

/* Registration fee + pay modal — Alipay / WeChat icon tiles */
.profile-fee-payway-group {
	margin-top: 0.25rem;
	align-items: stretch;
}
.profile-fee-payway-card,
.profile-fee-payway-card--unavailable {
	display: flex;
	flex-direction: column;
	min-width: 156px;
}
.profile-fee-payway-card {
	cursor: pointer;
}
.profile-fee-payway-card-inner {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 72px;
	padding: 0.7rem 1.15rem;
	border: 2px solid #dee2e6;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-fee-payway-card:hover .profile-fee-payway-card-inner {
	border-color: #adb5bd;
}
.profile-fee-payway-input:checked + .profile-fee-payway-card-inner {
	border-color: #098dcf;
	box-shadow: 0 0 0 2px rgba(9, 141, 207, 0.2);
}
.profile-fee-payway-input:focus-visible + .profile-fee-payway-card-inner {
	border-color: #098dcf;
	box-shadow: 0 0 0 2px rgba(9, 141, 207, 0.35);
}
.profile-fee-payway-img {
	max-height: 50px;
	width: auto;
	max-width: 176px;
	object-fit: contain;
	vertical-align: middle;
}

.profile-fee-payway-card--unavailable {
	cursor: not-allowed;
	pointer-events: none;
	user-select: none;
}
.profile-fee-payway-card--unavailable .profile-fee-payway-card-inner {
	position: relative;
	opacity: 0.52;
	filter: grayscale(0.45);
	border-style: dashed !important;
}
.profile-fee-payway-hint {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.55;
	color: #212529;
	letter-spacing: 0.01em;
}
@media (min-width: 768px) {
	.profile-fee-payway-hint {
		font-size: 1rem;
	}
}

.profile-fee-payway-soon {
	position: absolute;
	right: 0.45rem;
	bottom: 0.4rem;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6c757d;
	background: rgba(255, 255, 255, 0.92);
	padding: 0.15rem 0.35rem;
	border-radius: 4px;
}
