/**
 * Z2W Subscription Switching — Plan Comparison Widget
 * Frontend styles for My Account > View Subscription plan cards.
 * @since 1.40.0
 */

.z2w-plan-comparison {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px 24px;
	background: #fafafa;
}

.z2w-plan-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}

.z2w-plan-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.z2w-plan-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.z2w-plan-card--current {
	border-color: #2563eb;
	background: #eff6ff;
}

.z2w-plan-card__badge {
	min-height: 22px;
}

.z2w-plan-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.z2w-plan-badge--current {
	background: #2563eb;
	color: #fff;
}

.z2w-plan-badge--upgrade {
	background: #dcfce7;
	color: #166534;
}

.z2w-plan-badge--downgrade {
	background: #fef2f2;
	color: #991b1b;
}

.z2w-plan-badge--crossgrade {
	background: #f3f4f6;
	color: #4b5563;
}

.z2w-plan-card__name {
	font-weight: 600;
	font-size: 15px;
	color: #1f2937;
}

.z2w-plan-card__price {
	font-size: 14px;
	color: #6b7280;
}

.z2w-plan-card__switch.button {
	margin-top: auto;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

@media (max-width: 600px) {
	.z2w-plan-cards {
		grid-template-columns: 1fr;
	}
}
