.lp-plans-wrap {
	margin: 2rem 0;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.lp-billing-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem;
	margin: 0 auto 1.5rem;
	background: #f1f5f9;
	border-radius: 999px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.lp-billing-toggle__btn {
	border: 0;
	background: transparent;
	color: #475569;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.lp-billing-toggle__btn.is-active {
	background: #fff;
	color: #0f172a;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.lp-billing-toggle__save {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #dcfce7;
	color: #166534;
	padding: 0.15rem 0.4rem;
	border-radius: 999px;
}

.lp-plans {
	--lp-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--lp-cols), minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

@media (max-width: 900px) {
	.lp-plans {
		grid-template-columns: 1fr;
	}
}

.lp-plan-card {
	--lp-accent: #0f766e;
	position: relative;
	background: #fff;
	border: 2px solid var(--lp-accent);
	border-radius: 14px;
	padding: 1.75rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-plan-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.lp-plan-card__badge {
	position: absolute;
	top: -0.65rem;
	right: 1rem;
	background: var(--lp-accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
}

.lp-plan-card__name {
	margin: 0.35rem 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lp-accent);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.lp-plan-card__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	margin-bottom: 1rem;
}

.lp-plan-card__amount {
	display: block;
}

/* Monthly: only monthly price. Yearly: only yearly pricing (cut + sale). */
.lp-plans-wrap[data-cycle="month"] .lp-price-year,
.lp-plans-wrap[data-cycle="month"] .lp-billing-year,
.lp-plans-wrap[data-cycle="month"] .lp-save-year {
	display: none !important;
}

.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="1"] .lp-price-month,
.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="1"] .lp-billing-month {
	display: none !important;
}

.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="1"] .lp-price-year,
.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="1"] .lp-billing-year {
	display: block !important;
}

.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="1"] .lp-save-year {
	display: inline-block !important;
}

.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="0"] .lp-price-year,
.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="0"] .lp-billing-year,
.lp-plans-wrap[data-cycle="year"] .lp-plan-card[data-has-yearly="0"] .lp-save-year {
	display: none !important;
}

.lp-plan-card__price-row {
	display: inline-flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
}

.lp-plan-card__price .lp-price-month .woocommerce-Price-amount,
.lp-plan-card__sale .woocommerce-Price-amount {
	font-size: 2rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
}

.lp-plan-card__was {
	display: inline-flex;
	align-items: baseline;
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: #94a3b8;
	opacity: 0.75;
	color: #94a3b8;
}

.lp-plan-card__was .woocommerce-Price-amount,
.lp-plan-card__was .woocommerce-Price-currencySymbol,
.lp-plan-card__was bdi {
	font-size: 1.05rem !important;
	font-weight: 500 !important;
	color: #94a3b8 !important;
	line-height: 1.2;
}

.lp-plan-card__sale {
	display: inline-flex;
	align-items: baseline;
}

.lp-plan-card__billing {
	font-size: 0.85rem;
	color: #64748b;
	text-transform: lowercase;
}

.lp-plan-card__save {
	margin-top: 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #166534;
	background: #dcfce7;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.lp-plan-card__cta {
	display: inline-block;
	background: var(--lp-accent);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.7rem 1.6rem;
	border-radius: 999px;
	margin: 0.25rem 0 1rem;
	transition: filter 0.15s ease;
}

.lp-plan-card__cta:hover {
	filter: brightness(1.08);
	color: #fff !important;
}

.lp-plan-card__desc {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.45;
}

.lp-plan-card__features-label {
	align-self: stretch;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	margin-bottom: 0.4rem;
	text-align: left;
}

.lp-plan-card__features {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	text-align: left;
}

.lp-plan-card__features li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.65rem;
	font-size: 0.92rem;
	color: #334155;
}

.lp-plan-card__features li:nth-child(odd) {
	background: #f8fafc;
}

.lp-plan-card__check {
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	flex-shrink: 0;
	border: 2px solid #94a3b8;
	position: relative;
}

.lp-plan-card__features .is-included .lp-plan-card__check {
	background: #16a34a;
	border-color: #16a34a;
}

.lp-plan-card__features .is-included .lp-plan-card__check::after {
	content: "";
	position: absolute;
	left: 0.22rem;
	top: 0.05rem;
	width: 0.28rem;
	height: 0.5rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.lp-plan-card__features .is-excluded {
	color: #94a3b8;
}

/* Featured style (raised middle card look) */
.lp-plans--featured {
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem 0.5rem;
}

.lp-plans--featured .lp-plan-card {
	border: none;
	border-radius: 18px;
	padding-top: 0;
	overflow: hidden;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.lp-plans--featured .lp-plan-card.is-highlight {
	transform: scale(1.05);
	z-index: 2;
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.lp-plans--featured .lp-plan-card__header {
	width: 100%;
	height: 72px;
	background: #e2e8f0;
	margin-bottom: 1rem;
	clip-path: ellipse(75% 100% at 50% 0%);
}

.lp-plans--featured .lp-plan-card.is-highlight .lp-plan-card__header {
	background: var(--lp-accent);
}

.lp-plan-card__icon {
	display: block;
	width: 36px;
	height: 36px;
	margin: 1.1rem auto 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.lp-plans--featured .lp-plan-card__cta {
	margin-top: auto;
	width: calc(100% - 0.5rem);
}
