/* ── Pricing Plans Widget ──────────────────────────────────────────────────── */

.cf-pricing {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	align-items: start;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.cf-pricing__card {
	background: #ffffff;
	border: 0.5px solid rgba(0, 0, 0, 0.10);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.cf-pricing__card--featured {
	border: 2px solid #378ADD;
}

/* ── Badge ───────────────────────────────────────────────────────────────── */

.cf-pricing__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 16px;
	width: fit-content;
	white-space: nowrap;
}

.cf-pricing__badge--green  { background: #E6F7F2; color: #1D9E75; }
.cf-pricing__badge--amber  { background: #FFF3E0; color: #B45309; }
.cf-pricing__badge--blue   { background: #E3F0FB; color: #378ADD; }
.cf-pricing__badge--purple { background: #F3E8FF; color: #7C3AED; }
.cf-pricing__badge--empty  { visibility: hidden; }

/* ── Plan name ───────────────────────────────────────────────────────────── */

.cf-pricing__plan-name {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

/* ── Description ─────────────────────────────────────────────────────────── */

.cf-pricing__description {
	font-size: 0.875rem;
	line-height: 1.55;
	color: #666666;
	margin: 0 0 20px;
}

/* ── Price block ─────────────────────────────────────────────────────────── */

.cf-pricing__price-block {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-bottom: 4px;
}

.cf-pricing__price {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.cf-pricing__price-suffix {
	font-size: 0.875rem;
	color: #888888;
}

.cf-pricing__price-note {
	font-size: 0.75rem;
	color: #aaaaaa;
	margin: 0;
	min-height: 1.2em;
	line-height: 1.5;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.cf-pricing__divider {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.10);
	margin: 20px 0;
}

/* ── Feature list ────────────────────────────────────────────────────────── */

.cf-pricing__features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	flex-grow: 1;
}

.cf-pricing__feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 5px 0;
	font-size: 0.875rem;
	line-height: 1.45;
}

.cf-pricing__feature-icon {
	flex-shrink: 0;
	width: 18px;
	text-align: center;
	line-height: 1.45;
}

.cf-pricing__feature--included .cf-pricing__feature-icon {
	color: #1D9E75;
	font-weight: 700;
}

.cf-pricing__feature--excluded .cf-pricing__feature-icon {
	color: #cccccc;
}

.cf-pricing__feature--excluded .cf-pricing__feature-label {
	color: #aaaaaa;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */

.cf-pricing__cta {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	background: var(--wp--preset--color--cyan, #40ffd3);
	color: var(--wp--preset--color--navy, #181075);
	border: 2px solid var(--wp--preset--color--cyan, #40ffd3);
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	margin-top: auto;
}

.cf-pricing__cta:hover,
.cf-pricing__cta:focus-visible {
	background: #1ae8ba;
	color: var(--wp--preset--color--navy, #181075);
	border-color: #1ae8ba;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (min-width: 768px) and (max-width: 1024px) {
	.cf-pricing {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.cf-pricing {
		grid-template-columns: 1fr;
	}
}
