/**
 * 套餐网格 + 统一支付（短代码 / 等级拦截页共用）
 *
 * @package ArttrekfutureEnterpriseMember
 */

.artt-em-plans-checkout {
	max-width: 920px;
	margin: 0 auto;
	text-align: left;
}

.artt-em-plans-checkout__hint {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #4b5563;
}

/* 我的会员：信息卡（短代码 artt_em_my_membership） */
.artt-em-membership-card {
	margin: 0 0 8px;
	padding: 20px 20px 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-sizing: border-box;
}

.artt-em-membership-card--empty {
	text-align: center;
	padding: 28px 22px 26px;
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.artt-em-membership-card__headline {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
}

.artt-em-membership-card__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #6b7280;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}

.artt-em-membership-card__dl {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.artt-em-membership-card__row {
	display: grid;
	grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
	gap: 10px 16px;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 1px solid #f3f4f6;
}

.artt-em-membership-card__row:first-child {
	padding-top: 0;
}

.artt-em-membership-card__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.artt-em-membership-card__row dt {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #6b7280;
	letter-spacing: 0.02em;
}

.artt-em-membership-card__row dd {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111827;
	word-break: break-word;
}

@media screen and (max-width: 480px) {
	.artt-em-membership-card__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

.artt-em-plans-checkout__register-caption {
	margin: 0 0 12px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #374151;
	text-align: center;
	line-height: 1.4;
}

.artt-em-plans-checkout--register-modal {
	margin-bottom: 4px;
}

.artt-em-plans-checkout--register-modal .artt-em-plans-checkout__grid {
	margin-bottom: 12px;
	gap: 12px 14px;
}

.artt-em-plans-checkout--register-modal .artt-em-plan-card {
	padding: 14px 12px;
}

.artt-em-plans-checkout__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 20px;
	margin-bottom: 28px;
}

@media (max-width: 640px) {
	.artt-em-plans-checkout__grid {
		grid-template-columns: 1fr;
	}
}

.artt-em-plan-card {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 18px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.artt-em-plan-card:hover {
	border-color: #9ca3af;
}

.artt-em-plan-card.is-selected {
	border: 2px solid #1d1d1f;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.artt-em-plan-card__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
}

.artt-em-plan-card__price {
	margin: 0 0 8px;
	font-size: 1.65rem;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.02em;
}

.artt-em-plan-card__duration {
	margin: 0 0 14px;
	font-size: 0.875rem;
	color: #6b7280;
}

.artt-em-plan-card__rule {
	height: 1px;
	background: #e5e7eb;
	border: 0;
	margin: 0 0 14px;
}

.artt-em-plan-card__desc {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: #6b7280;
	text-align: left;
}

.artt-em-plans-checkout__payment {
	text-align: center;
}

.artt-em-plans-checkout__pay-head {
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #111827;
	text-align: center;
}

.artt-em-plans-checkout__form {
	display: block;
}

.artt-em-plans-checkout__pay-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
}

.artt-em-plans-checkout__alipay-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
}

.artt-em-plans-checkout__alipay-choice {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 120px;
	min-height: 48px;
	padding: 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.artt-em-plans-checkout__alipay-choice.is-selected {
	border: 2px solid #1d1d1f;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.artt-em-plans-checkout__alipay-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: auto;
	border: none;
	border-radius: 8px;
	background: transparent;
	box-sizing: border-box;
	overflow: hidden;
}

.artt-em-plans-checkout__alipay-icon {
	display: block;
	width: 100%;
	height: auto;
	margin: auto;
	object-fit: contain;
}

.artt-em-plans-checkout__alipay-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #111827;
	background: transparent;
}

.artt-em-plans-checkout__pay-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 120px;
	padding: 0 28px;
	border: none;
	border-radius: 8px;
	background: #1d1d1f;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.artt-em-plans-checkout__pay-btn:hover {
	background: #000;
	transform: translateY(-1px);
}

/* —— 我的订单（短代码 artt_em_my_orders）—— */

.artt-em-orders-empty {
	margin: 0;
	padding: 36px 24px 32px;
	border-radius: 16px;
	text-align: center;
	background: linear-gradient(180deg, #fafbfc 0%, #fff 55%);
	border: 1px solid #e5e7eb;
	box-sizing: border-box;
}

.artt-em-orders-empty__icon {
	display: flex;
	justify-content: center;
	margin: 0 0 16px;
	color: #9ca3af;
}

.artt-em-orders-empty__headline {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
}

.artt-em-orders-empty__text {
	margin: 0 auto 22px;
	max-width: 26rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #6b7280;
}

.artt-em-orders-empty__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: #1d1d1f;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.artt-em-orders-empty__cta:hover,
.artt-em-orders-empty__cta:focus {
	background: #000;
	color: #fff !important;
	transform: translateY(-1px);
}

.artt-em-orders-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	background: #fff;
}

.artt-em-orders {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.45;
}

.artt-em-orders thead {
	background: #f9fafb;
}

.artt-em-orders th {
	padding: 12px 14px;
	text-align: left;
	font-weight: 600;
	color: #374151;
	border-bottom: 1px solid #e5e7eb;
	white-space: nowrap;
}

.artt-em-orders td {
	padding: 14px;
	vertical-align: middle;
	color: #1f2937;
	border-bottom: 1px solid #f3f4f6;
}

.artt-em-orders tbody tr:last-child td {
	border-bottom: 0;
}

.artt-em-orders tbody tr:hover td {
	background: #fafafa;
}

.artt-em-orders__mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8125rem;
	word-break: break-all;
}

.artt-em-orders__status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	background: #f3f4f6;
	color: #374151;
}

.artt-em-orders__status--paid {
	background: #ecfdf5;
	color: #047857;
}

.artt-em-orders__status--pending {
	background: #fffbeb;
	color: #b45309;
}

.artt-em-orders__status--closed {
	background: #f3f4f6;
	color: #6b7280;
}

.artt-em-orders__status--partial_refund,
.artt-em-orders__status--refunded {
	background: #fef2f2;
	color: #b91c1c;
}

@media screen and (max-width: 720px) {
	.artt-em-orders-scroll {
		border: 0;
		background: transparent;
		overflow: visible;
	}

	.artt-em-orders {
		min-width: 0;
		display: block;
	}

	.artt-em-orders thead {
		display: none;
	}

	.artt-em-orders tbody,
	.artt-em-orders tr,
	.artt-em-orders td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.artt-em-orders tr {
		margin-bottom: 14px;
		padding: 14px 16px;
		border: 1px solid #e5e7eb;
		border-radius: 14px;
		background: #fff;
	}

	.artt-em-orders td {
		padding: 8px 0;
		border: 0;
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		text-align: right;
	}

	.artt-em-orders td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #6b7280;
		text-align: left;
		flex-shrink: 0;
	}

	.artt-em-orders tbody tr:hover td {
		background: transparent;
	}
}
