.lx-mepr-loop-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

.lx-mepr-loop-grid--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lx-mepr-loop-grid--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lx-mepr-loop-grid--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lx-mepr-loop-grid--columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lx-mepr-loop-grid--columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lx-mepr-loop-grid__item {
	border: 1px solid #bfeeff;
	border-radius: 14px;
	cursor: pointer;
	min-width: 0;
	padding: 0;
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.lx-mepr-user-courses__item {
	border: 0;
	border-radius: 0;
	cursor: default;
}

.lx-mepr-loop-grid--equal-height {
	align-items: stretch;
}

.lx-mepr-loop-grid--equal-height .lx-mepr-loop-grid__item {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
}

.lx-mepr-loop-grid--equal-height .lx-mepr-loop-grid__template {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	min-height: 0;
}

.lx-mepr-loop-grid--equal-height .lx-mepr-loop-grid__template > * {
	flex: 1 1 auto;
	min-height: 0;
}

.lx-mepr-loop-grid__item.is-selected {
	background: #e9fbff;
	border-color: #74cbf7;
	box-shadow: none;
}

/* 选中样式：无单选框，仅由卡片、角标或横条表示 */
.lx-mepr-loop-grid--style-normal .lx-mepr-loop-grid__item,
.lx-mepr-loop-grid--style-badge .lx-mepr-loop-grid__item,
.lx-mepr-loop-grid--style-bar .lx-mepr-loop-grid__item {
	position: relative;
}

.lx-mepr-loop-grid--style-normal .lx-mepr-loop-grid__radio,
.lx-mepr-loop-grid--style-badge .lx-mepr-loop-grid__radio,
.lx-mepr-loop-grid--style-bar .lx-mepr-loop-grid__radio {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.lx-mepr-loop-grid--style-normal .lx-mepr-loop-grid__choice,
.lx-mepr-loop-grid--style-badge .lx-mepr-loop-grid__choice,
.lx-mepr-loop-grid--style-bar .lx-mepr-loop-grid__choice {
	display: none;
}

.lx-mepr-loop-grid__check {
	align-items: center;
	background: #74cbf7;
	border-radius: 999px;
	color: #fff;
	display: none;
	justify-content: center;
	line-height: 1;
	padding: 6px;
	pointer-events: none;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 3;
}

.lx-mepr-loop-grid__item.is-selected .lx-mepr-loop-grid__check {
	display: inline-flex;
}

.lx-mepr-loop-grid__check i,
.lx-mepr-loop-grid__check svg {
	display: block;
}

.lx-mepr-loop-grid__bar {
	background: #74cbf7;
	color: #fff;
	display: none;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 7px 16px;
	pointer-events: none;
	position: absolute;
	top: 30px;
	z-index: 3;
}

.lx-mepr-loop-grid--bar-left .lx-mepr-loop-grid__bar {
	border-radius: 0 6px 6px 0;
	left: 0;
}

.lx-mepr-loop-grid--bar-right .lx-mepr-loop-grid__bar {
	border-radius: 6px 0 0 6px;
	right: 0;
}

.lx-mepr-loop-grid__item.is-selected .lx-mepr-loop-grid__bar {
	display: inline-flex;
}

.lx-mepr-loop-grid__choice {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 12px;
}

.lx-mepr-loop-grid__choice input {
	flex: 0 0 auto;
}

.lx-mepr-loop-grid__notice {
	color: #69727d;
	font-size: 14px;
}

.lx-mepr-loop-grid__empty-message {
	color: #69727d;
	font-size: 14px;
	grid-column: 1 / -1;
	margin: 0;
	width: 100%;
}

.lx-mepr-loop-grid__empty-message[hidden] {
	display: none !important;
}

.lx-mepr-option-grid[hidden],
.lx-mepr-membership-content__panel,
.lx-mepr-checkout-switcher__form {
	display: none !important;
}

.lx-mepr-loop-conditional-container {
	display: none;
}

.lx-mepr-loop-conditional-container.is-visible {
	display: block !important;
}

/* 隐藏整个组件根元素（含 Elementor wrapper 的 margin/padding），彻底不占位 */
.elementor-widget.lx-mepr-loop-conditional-hidden {
	display: none !important;
}

.lx-mepr-membership-content__panel.is-active {
	display: block !important;
}

.lx-mepr-option-grid__heading {
	color: #6bb9f2;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.lx-mepr-option-grid__items {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.lx-mepr-option-grid--columns-2 .lx-mepr-option-grid__items {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lx-mepr-option-grid--columns-3 .lx-mepr-option-grid__items {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lx-mepr-option-grid--columns-4 .lx-mepr-option-grid__items {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lx-mepr-option-grid--columns-5 .lx-mepr-option-grid__items {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lx-mepr-option-card {
	background: #fff;
	border: 1px solid #edf1ec;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	position: relative;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.lx-mepr-option-grid--equal-height .lx-mepr-option-grid__items {
	align-items: stretch;
}

.lx-mepr-option-grid--equal-height .lx-mepr-option-card {
	height: 100%;
}

.lx-mepr-option-card.is-selected {
	border-color: #74cafa;
	box-shadow: 0 0 0 1px rgba(116, 202, 250, .35);
}

.lx-mepr-option-card input[type="radio"] {
	position: absolute;
	right: 8px;
	top: 8px;
	z-index: 2;
}

.lx-mepr-option-card__image {
	aspect-ratio: 1.35;
	display: block;
	object-fit: cover;
	width: 100%;
}

.lx-mepr-option-card__badge {
	background: #f5f572;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	left: 8px;
	padding: 3px 7px;
	position: absolute;
	top: 8px;
}

.lx-mepr-option-card__title,
.lx-mepr-option-card__subtitle,
.lx-mepr-option-card__meta,
.lx-mepr-option-card__price {
	display: block;
	padding-left: 12px;
	padding-right: 12px;
}

.lx-mepr-option-card__title {
	font-size: 13px;
	margin-top: 10px;
}

.lx-mepr-option-card__subtitle,
.lx-mepr-option-card__meta {
	color: #4d5662;
	font-size: 11px;
	line-height: 1.35;
	margin-top: 4px;
}

.lx-mepr-option-card__price {
	font-size: 12px;
	font-weight: 800;
	margin: auto 0 10px;
	padding-top: 8px;
}

.lx-mepr-summary {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(25, 43, 68, .08);
	padding: 48px 34px;
}

.lx-mepr-summary__title {
	font-size: 16px;
	font-weight: 900;
	margin: 0 0 28px;
	text-transform: uppercase;
}

.lx-mepr-summary__rows {
	border-bottom: 1px solid #d9d9d9;
	padding-bottom: 18px;
}

.lx-mepr-summary__total {
	padding: 18px 0 30px;
}

.lx-mepr-summary__row {
	align-items: center;
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	margin: 0 0 16px;
}

.lx-mepr-summary__row strong {
	font-weight: 500;
	text-align: right;
}

.lx-mepr-summary__total .lx-mepr-summary__row {
	font-weight: 900;
}

.lx-mepr-summary__features {
	display: grid;
	gap: 24px;
}

.lx-mepr-summary__feature {
	align-items: flex-start;
	display: grid;
	gap: 14px;
	grid-template-columns: 44px minmax(0, 1fr);
}

.lx-mepr-summary__feature-icon {
	align-items: center;
	background: #f3f57b;
	border-radius: 999px;
	display: inline-flex;
	font-size: 9px;
	font-weight: 900;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.lx-mepr-summary__feature strong,
.lx-mepr-summary__feature small {
	display: block;
}

.lx-mepr-summary__feature strong {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.lx-mepr-summary__feature small {
	color: #4d5662;
	font-size: 11px;
	line-height: 1.55;
	margin-top: 4px;
}

.lx-mepr-payments {
	--lx-mepr-payment-duration: 260ms;
	display: grid;
	gap: 14px;
}

.lx-mepr-payment {
	align-items: center;
	background: #fff;
	border: 1px solid #e7efe6;
	border-radius: 999px;
	cursor: pointer;
	display: grid;
	gap: 12px;
	grid-template-columns: auto auto 1fr auto;
	padding: 13px 28px;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lx-mepr-payment:not(.is-selected) {
	row-gap: 0;
}

.lx-mepr-payment.is-selected {
	border-color: #7ad3fb;
}

.lx-mepr-payment__label {
	font-weight: 800;
}

.lx-mepr-payment__visual {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	line-height: 1;
}

.lx-mepr-payment__visual img {
	display: block;
	height: 22px;
	object-fit: contain;
	width: 22px;
}

.lx-mepr-payment__visual i,
.lx-mepr-payment__visual svg {
	display: block;
	height: 22px;
	width: 22px;
}

.lx-mepr-payment__right-visual {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	line-height: 1;
	justify-self: end;
}

.lx-mepr-payment__right-visual img {
	display: block;
	height: 42px;
	object-fit: contain;
	width: 42px;
}

.lx-mepr-payment__right-visual i,
.lx-mepr-payment__right-visual svg {
	display: block;
	height: 28px;
	width: 28px;
}

.lx-mepr-payment__fields {
	display: grid;
	gap: 10px;
	grid-column: 2 / -1;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: max-height var(--lx-mepr-payment-duration) ease, opacity var(--lx-mepr-payment-duration) ease, transform var(--lx-mepr-payment-duration) ease, visibility var(--lx-mepr-payment-duration) ease;
	visibility: hidden;
}

.lx-mepr-payment.is-selected .lx-mepr-payment__fields {
	max-height: 420px;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.lx-mepr-payment__field-row {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
}

.lx-mepr-payment__field {
	display: grid;
	gap: 5px;
	margin: 0;
	min-width: 0;
}

.lx-mepr-payment__field-label {
	color: #202124;
	font-size: 13px;
	line-height: 1.2;
}

.lx-mepr-payment__fields input {
	border: 1px solid #e6dfd0;
	border-radius: 999px;
	padding: 9px 14px;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
	width: 100%;
}

.lx-mepr-payment__fields input:focus {
	border-color: #7ad3fb;
	box-shadow: 0 0 0 3px rgba(122, 211, 251, 0.2);
	outline: none;
}

.lx-mepr-checkout-switcher__form.is-active {
	display: block !important;
}

.lx-mepr-checkout-switcher--hide-payment-methods .mepr-payment-methods-wrapper {
	display: none !important;
}

.lx-mepr-checkout-switcher--hide-submit .mp-form-submit .mepr-submit {
	display: none !important;
}

.lx-mepr-checkout-switcher--hide-account-fields .mepr_first_name,
.lx-mepr-checkout-switcher--hide-account-fields .mepr_last_name,
.lx-mepr-checkout-switcher--hide-account-fields .mepr_username,
.lx-mepr-checkout-switcher--hide-account-fields .mepr_email,
.lx-mepr-checkout-switcher--hide-account-fields .mepr_password,
.lx-mepr-checkout-switcher--hide-account-fields .mepr_password_confirm {
	display: none !important;
}

.lx-mepr-checkout-form--loading {
	opacity: .6;
	pointer-events: none;
	position: relative;
}

.lx-mepr-checkout-field {
	display: grid;
	gap: 6px;
	margin: 0;
	min-width: 0;
	width: 100%;
}

.lx-mepr-checkout-field--checkbox {
	align-items: center;
	display: inline-grid;
	gap: 10px;
	grid-template-columns: auto 1fr;
	width: auto;
}

.lx-mepr-checkout-field__label {
	color: #202124;
	font-size: 13px;
	line-height: 1.2;
}

.lx-mepr-checkout-field__input {
	background: #fff;
	border: 1px solid #e6dfd0;
	border-radius: 999px;
	color: #202124;
	font: inherit;
	min-height: 44px;
	padding: 9px 14px;
	width: 100%;
}

.lx-mepr-checkout-field--checkbox .lx-mepr-checkout-field__label {
	order: 2;
}

.lx-mepr-checkout-field--checkbox .lx-mepr-checkout-field__input {
	border-radius: 4px;
	min-height: 0;
	order: 1;
	padding: 0;
	width: auto;
}

.lx-mepr-checkout-switcher__button {
	align-items: center;
	background: #70bdf5;
	border-radius: 999px;
	color: #f5fb77;
	display: inline-flex;
	font-size: 18px;
	font-weight: 900;
	justify-content: center;
	min-height: 58px;
	padding: 0 42px;
	text-decoration: none;
	text-transform: uppercase;
}

.lx-mepr-checkout-submit-button {
	align-items: center;
	background: #70bdf5;
	border: 0;
	border-radius: 999px;
	color: #f5fb77;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 18px;
	font-weight: 900;
	justify-content: center;
	min-height: 58px;
	padding: 0 42px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 1024px) {
	.lx-mepr-loop-grid--columns-3,
	.lx-mepr-loop-grid--columns-4,
	.lx-mepr-loop-grid--columns-5,
	.lx-mepr-loop-grid--columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lx-mepr-option-grid--columns-3 .lx-mepr-option-grid__items,
	.lx-mepr-option-grid--columns-4 .lx-mepr-option-grid__items,
	.lx-mepr-option-grid--columns-5 .lx-mepr-option-grid__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.lx-mepr-loop-grid {
		grid-template-columns: 1fr;
	}

	.lx-mepr-option-grid__items,
	.lx-mepr-option-grid--columns-2 .lx-mepr-option-grid__items,
	.lx-mepr-option-grid--columns-3 .lx-mepr-option-grid__items,
	.lx-mepr-option-grid--columns-4 .lx-mepr-option-grid__items,
	.lx-mepr-option-grid--columns-5 .lx-mepr-option-grid__items {
		grid-template-columns: 1fr;
	}

	.lx-mepr-payment {
		grid-template-columns: auto auto 1fr;
	}

	.lx-mepr-payment__right-visual {
		grid-column: 3;
	}

	.lx-mepr-payment__fields {
		grid-column: 1 / -1;
	}

	.lx-mepr-payment__field-row {
		grid-template-columns: 1fr;
	}
}
