/*
 * VK Pricing Blocks.
 *
 * Every configurable value arrives as a custom property set on the block
 * element itself: --vfk-pb-* for the Pricing Block, --vfk-pt-* for the
 * Pricing Table. The fallbacks below are the same defaults declared in
 * includes/vk-pricing-block.php and includes/vk-pricing-table.php, so a block
 * still renders sanely if a property is missing.
 *
 * Typography properties follow one naming rule per element slug:
 *   --vfk-pb-<slug>-ff | -fs | -fw | -fst | -lh | -ls | -tt | -color
 */

/* ====================================================================== *
 * Pricing Block
 * ====================================================================== */

.vfk-pricing-block {
	box-sizing: border-box;
	/* Named container so the layout below can respond to the card's own
	   width rather than the viewport's. */
	container-type: inline-size;
	container-name: vfk-pricing-card;
	display: flex;
	flex-direction: column;
	gap: var(--vfk-pb-gap, 18px);
	max-width: var(--vfk-pb-maxw, 480px);
	padding: var(--vfk-pb-pad, 28px);
	background: var(--vfk-pb-bg, #ffffff);
	border: var(--vfk-pb-border, 1px solid #e5e7eb);
	border-radius: var(--vfk-pb-radius, 14px);
	box-shadow: var(--vfk-pb-shadow, none);
}

.vfk-pricing-block *,
.vfk-pricing-block *::before,
.vfk-pricing-block *::after {
	box-sizing: border-box;
}

.vfk-pricing-block.alignleft { margin-right: auto; }
.vfk-pricing-block.alignright { margin-left: auto; }
.vfk-pricing-block.aligncenter { margin-left: auto; margin-right: auto; }

/* --- Featured ribbon --------------------------------------------------- */

.vfk-pricing-block__featured-label {
	align-self: flex-start;
	padding: var(--vfk-pb-featured-label-pad-y, 6px) var(--vfk-pb-featured-label-pad-x, 12px);
	background: var(--vfk-pb-featured-label-bg, #1e9e63);
	border-radius: var(--vfk-pb-featured-label-radius, 999px);
	font-family: var(--vfk-pb-featured-label-ff, inherit);
	font-size: var(--vfk-pb-featured-label-fs, 11px);
	font-weight: var(--vfk-pb-featured-label-fw, 700);
	font-style: var(--vfk-pb-featured-label-fst, normal);
	text-decoration: var(--vfk-pb-featured-label-td, none);
	line-height: var(--vfk-pb-featured-label-lh, 1.2);
	letter-spacing: var(--vfk-pb-featured-label-ls, 0.8px);
	text-transform: var(--vfk-pb-featured-label-tt, uppercase);
	color: var(--vfk-pb-featured-label-color, #ffffff);
}

/* --- Header row -------------------------------------------------------- */

.vfk-pricing-block__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.vfk-pricing-block__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: var(--vfk-pb-badge-size, 64px);
	height: var(--vfk-pb-badge-size, 64px);
	border-radius: var(--vfk-pb-badge-radius, 12px);
	background: var(--vfk-pb-badge-bg, #1e9e63);
	font-family: var(--vfk-pb-badge-ff, inherit);
	font-size: var(--vfk-pb-badge-fs, 30px);
	font-weight: var(--vfk-pb-badge-fw, 700);
	font-style: var(--vfk-pb-badge-fst, normal);
	text-decoration: var(--vfk-pb-badge-td, none);
	line-height: var(--vfk-pb-badge-lh, 1);
	letter-spacing: var(--vfk-pb-badge-ls, 0);
	text-transform: var(--vfk-pb-badge-tt, none);
	color: var(--vfk-pb-badge-color, #ffffff);
}

.vfk-pricing-block__badge img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--vfk-pb-badge-fit, cover);
}

.vfk-pricing-block__heading {
	flex: 1 1 auto;
	min-width: 0;
}

.vfk-pricing-block__title {
	/* A long single-word tier name must break rather than overlap the price. */
	overflow-wrap: anywhere;
	font-family: var(--vfk-pb-title-ff, inherit);
	font-size: var(--vfk-pb-title-fs, 34px);
	font-weight: var(--vfk-pb-title-fw, 700);
	font-style: var(--vfk-pb-title-fst, normal);
	text-decoration: var(--vfk-pb-title-td, none);
	line-height: var(--vfk-pb-title-lh, 1.15);
	letter-spacing: var(--vfk-pb-title-ls, 0);
	text-transform: var(--vfk-pb-title-tt, none);
	color: var(--vfk-pb-title-color, #111827);
}

.vfk-pricing-block__subtitle {
	margin-top: 4px;
	font-family: var(--vfk-pb-subtitle-ff, inherit);
	font-size: var(--vfk-pb-subtitle-fs, 15px);
	font-weight: var(--vfk-pb-subtitle-fw, 400);
	font-style: var(--vfk-pb-subtitle-fst, normal);
	text-decoration: var(--vfk-pb-subtitle-td, none);
	line-height: var(--vfk-pb-subtitle-lh, 1.4);
	letter-spacing: var(--vfk-pb-subtitle-ls, 0);
	text-transform: var(--vfk-pb-subtitle-tt, none);
	color: var(--vfk-pb-subtitle-color, #6b7280);
}

/* --- Price ------------------------------------------------------------- */

.vfk-pricing-block__pricing {
	flex: 0 0 auto;
	margin-left: auto;
	text-align: right;
}

.vfk-pricing-block__price-line {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 1px;
	white-space: nowrap;
}

.vfk-pricing-block__price {
	font-family: var(--vfk-pb-price-ff, inherit);
	font-size: var(--vfk-pb-price-fs, 38px);
	font-weight: var(--vfk-pb-price-fw, 800);
	font-style: var(--vfk-pb-price-fst, normal);
	text-decoration: var(--vfk-pb-price-td, none);
	line-height: var(--vfk-pb-price-lh, 1);
	letter-spacing: var(--vfk-pb-price-ls, 0);
	text-transform: var(--vfk-pb-price-tt, none);
	color: var(--vfk-pb-price-color, #1e9e63);
}

.vfk-pricing-block__price-suffix {
	font-family: var(--vfk-pb-price-suffix-ff, inherit);
	font-size: var(--vfk-pb-price-suffix-fs, 17px);
	font-weight: var(--vfk-pb-price-suffix-fw, 600);
	font-style: var(--vfk-pb-price-suffix-fst, normal);
	text-decoration: var(--vfk-pb-price-suffix-td, none);
	line-height: var(--vfk-pb-price-suffix-lh, 1);
	letter-spacing: var(--vfk-pb-price-suffix-ls, 0);
	text-transform: var(--vfk-pb-price-suffix-tt, none);
	color: var(--vfk-pb-price-suffix-color, #1e9e63);
}

.vfk-pricing-block__price-note {
	margin-top: 6px;
	font-family: var(--vfk-pb-price-note-ff, inherit);
	font-size: var(--vfk-pb-price-note-fs, 13px);
	font-weight: var(--vfk-pb-price-note-fw, 400);
	font-style: var(--vfk-pb-price-note-fst, normal);
	text-decoration: var(--vfk-pb-price-note-td, none);
	line-height: var(--vfk-pb-price-note-lh, 1.3);
	letter-spacing: var(--vfk-pb-price-note-ls, 0);
	text-transform: var(--vfk-pb-price-note-tt, none);
	color: var(--vfk-pb-price-note-color, #6b7280);
}

/* --- Description ------------------------------------------------------- */

.vfk-pricing-block__description {
	font-family: var(--vfk-pb-description-ff, inherit);
	font-size: var(--vfk-pb-description-fs, 15px);
	font-weight: var(--vfk-pb-description-fw, 400);
	font-style: var(--vfk-pb-description-fst, normal);
	text-decoration: var(--vfk-pb-description-td, none);
	line-height: var(--vfk-pb-description-lh, 1.55);
	letter-spacing: var(--vfk-pb-description-ls, 0);
	text-transform: var(--vfk-pb-description-tt, none);
	color: var(--vfk-pb-description-color, #1f2937);
}

.vfk-pricing-block__description p:first-child { margin-top: 0; }
.vfk-pricing-block__description p:last-child { margin-bottom: 0; }

/* --- Section heading --------------------------------------------------- */

.vfk-pricing-block__included {
	font-family: var(--vfk-pb-included-ff, inherit);
	font-size: var(--vfk-pb-included-fs, 12px);
	font-weight: var(--vfk-pb-included-fw, 700);
	font-style: var(--vfk-pb-included-fst, normal);
	text-decoration: var(--vfk-pb-included-td, none);
	line-height: var(--vfk-pb-included-lh, 1.3);
	letter-spacing: var(--vfk-pb-included-ls, 1.2px);
	text-transform: var(--vfk-pb-included-tt, uppercase);
	color: var(--vfk-pb-included-color, #9ca3af);
}

/* --- Feature list ------------------------------------------------------ */

.vfk-pricing-block__features {
	display: flex;
	flex-direction: column;
	gap: var(--vfk-pb-feature-gap, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vfk-pricing-block__features > li::marker {
	content: "";
}

.vfk-pricing-block__feature {
	display: flex;
	align-items: flex-start;
	gap: var(--vfk-pb-feature-icon-gap, 12px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vfk-pricing-block__feature-icon {
	flex: 0 0 auto;
	display: block;
	width: var(--vfk-pb-feature-icon-size, 20px);
	height: var(--vfk-pb-feature-icon-size, 20px);
	color: var(--vfk-pb-feature-icon-color, #1e9e63);
	/* Optically align the icon with the first line of text. */
	margin-top: calc((var(--vfk-pb-feature-fs, 15px) * var(--vfk-pb-feature-lh, 1.5) - var(--vfk-pb-feature-icon-size, 20px)) / 2);
}

.vfk-pricing-block__feature-icon svg,
.vfk-pricing-block__feature-icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.vfk-pricing-block__feature-icon img {
	object-fit: contain;
}

.vfk-pricing-block__feature-text {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--vfk-pb-feature-ff, inherit);
	font-size: var(--vfk-pb-feature-fs, 15px);
	font-weight: var(--vfk-pb-feature-fw, 400);
	font-style: var(--vfk-pb-feature-fst, normal);
	text-decoration: var(--vfk-pb-feature-td, none);
	line-height: var(--vfk-pb-feature-lh, 1.5);
	letter-spacing: var(--vfk-pb-feature-ls, 0);
	text-transform: var(--vfk-pb-feature-tt, none);
	color: var(--vfk-pb-feature-color, #1f2937);
}

/* --- Call to action ---------------------------------------------------- */

.vfk-pricing-block__button-wrap {
	display: flex;
	justify-content: var(--vfk-pb-button-justify, center);
}

.vfk-pricing-block__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--vfk-pb-button-pad-y, 12px) var(--vfk-pb-button-pad-x, 20px);
	background: var(--vfk-pb-button-bg, #1e9e63);
	border: 0;
	border-radius: var(--vfk-pb-button-radius, 8px);
	text-align: center;
	transition: background-color 0.15s ease;
	font-family: var(--vfk-pb-button-ff, inherit);
	font-size: var(--vfk-pb-button-fs, 15px);
	font-weight: var(--vfk-pb-button-fw, 700);
	font-style: var(--vfk-pb-button-fst, normal);
	text-decoration: var(--vfk-pb-button-td, none);
	line-height: var(--vfk-pb-button-lh, 1.2);
	letter-spacing: var(--vfk-pb-button-ls, 0);
	text-transform: var(--vfk-pb-button-tt, none);
	color: var(--vfk-pb-button-color, #ffffff);
}

.vfk-pricing-block__button.is-full-width {
	width: 100%;
}

a.vfk-pricing-block__button:hover,
a.vfk-pricing-block__button:focus {
	background: var(--vfk-pb-button-bg-hover, #177a4d);
	color: var(--vfk-pb-button-color, #ffffff);
	text-decoration: var(--vfk-pb-button-td, none);
}

/* --- Quote bar --------------------------------------------------------- */

.vfk-pricing-block__quote {
	padding: var(--vfk-pb-quote-pad, 16px);
	background: var(--vfk-pb-quote-bg, #2f2f2f);
	border-radius: var(--vfk-pb-quote-radius, 8px);
	text-align: var(--vfk-pb-quote-align, left);
}

.vfk-pricing-block__quote-text {
	margin: 0;
	font-family: var(--vfk-pb-quote-ff, inherit);
	font-size: var(--vfk-pb-quote-fs, 16px);
	font-weight: var(--vfk-pb-quote-fw, 700);
	font-style: var(--vfk-pb-quote-fst, italic);
	text-decoration: var(--vfk-pb-quote-td, none);
	line-height: var(--vfk-pb-quote-lh, 1.45);
	letter-spacing: var(--vfk-pb-quote-ls, 0);
	text-transform: var(--vfk-pb-quote-tt, none);
	color: var(--vfk-pb-quote-color, #ffffff);
}

/* Typographic quotes as decoration, kept out of the stored text. */
.vfk-pricing-block__quote.is-quoted .vfk-pricing-block__quote-text::before { content: "\201C"; }
.vfk-pricing-block__quote.is-quoted .vfk-pricing-block__quote-text::after { content: "\201D"; }

/* --- Narrow layouts ---------------------------------------------------- */

/*
 * Keyed to the width of the card, not the viewport. Inside a Pricing Table a
 * column can be 350px wide on a 1400px screen, where a viewport media query
 * would never fire and the title would collide with the price.
 *
 * A size container is measured on its CONTENT box, so 380px here is roughly a
 * 436px card once padding is added - wide enough that the standalone 480px
 * default still keeps the price beside the title, narrow enough that a table
 * column stacks before the two collide.
 */
@container vfk-pricing-card (max-width: 380px) {
	.vfk-pricing-block__head {
		flex-wrap: wrap;
	}

	.vfk-pricing-block__pricing {
		width: 100%;
		margin-left: 0;
		text-align: left;
	}

	.vfk-pricing-block__price-line {
		justify-content: flex-start;
	}
}

/* Fallback for browsers without container queries: same rules, viewport
   keyed, so a narrow screen still stacks the price under the title. */
@supports not (container-type: inline-size) {
	@media (max-width: 460px) {
		.vfk-pricing-block__head {
			flex-wrap: wrap;
		}

		.vfk-pricing-block__pricing {
			width: 100%;
			margin-left: 0;
			text-align: left;
		}

		.vfk-pricing-block__price-line {
			justify-content: flex-start;
		}
	}
}

/* ====================================================================== *
 * Pricing Table - feature comparison matrix
 * ====================================================================== */

.vfk-pricing-table {
	box-sizing: border-box;
	max-width: var(--vfk-pt-maxw, 1100px);
	margin-left: auto;
	margin-right: auto;
}

.vfk-pricing-table *,
.vfk-pricing-table *::before,
.vfk-pricing-table *::after {
	box-sizing: border-box;
}

.vfk-pricing-table__header {
	margin-bottom: var(--vfk-pt-heading-gap, 32px);
	text-align: var(--vfk-pt-text-align, center);
}

.vfk-pricing-table__heading {
	font-family: var(--vfk-pt-heading-ff, inherit);
	font-size: var(--vfk-pt-heading-fs, 32px);
	font-weight: var(--vfk-pt-heading-fw, 700);
	font-style: var(--vfk-pt-heading-fst, normal);
	text-decoration: var(--vfk-pt-heading-td, none);
	line-height: var(--vfk-pt-heading-lh, 1.2);
	letter-spacing: var(--vfk-pt-heading-ls, 0);
	text-transform: var(--vfk-pt-heading-tt, none);
	color: var(--vfk-pt-heading-color, #111827);
}

.vfk-pricing-table__subheading {
	margin-top: 8px;
	font-family: var(--vfk-pt-subheading-ff, inherit);
	font-size: var(--vfk-pt-subheading-fs, 16px);
	font-weight: var(--vfk-pt-subheading-fw, 400);
	font-style: var(--vfk-pt-subheading-fst, normal);
	text-decoration: var(--vfk-pt-subheading-td, none);
	line-height: var(--vfk-pt-subheading-lh, 1.5);
	letter-spacing: var(--vfk-pt-subheading-ls, 0);
	text-transform: var(--vfk-pt-subheading-tt, none);
	color: var(--vfk-pt-subheading-color, #6b7280);
}

/*
 * The frame lives on the scroll container so the rounded corners clip the
 * table, and so a table too wide for the page scrolls sideways instead of
 * squashing its columns. Cell min-widths do the pushing.
 */
.vfk-pricing-table__scroll {
	overflow-x: auto;
	background: var(--vfk-pt-bg, #ffffff);
	border: var(--vfk-pt-border, 1px solid #e5e7eb);
	border-radius: var(--vfk-pt-radius, 14px);
	box-shadow: var(--vfk-pt-shadow, none);
}

.vfk-pricing-table__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
}

.vfk-pricing-table__table th,
.vfk-pricing-table__table td {
	border: 0;
}

/* --- Header row -------------------------------------------------------- */

.vfk-pricing-table__head-row {
	background: var(--vfk-pt-head-bg, #ffffff);
}

.vfk-pricing-table__corner,
.vfk-pricing-table__plan {
	padding: var(--vfk-pt-head-pad-y, 24px) var(--vfk-pt-cell-pad-x, 16px);
	vertical-align: bottom;
}

.vfk-pricing-table__corner {
	width: var(--vfk-pt-label-w, 260px);
	min-width: var(--vfk-pt-label-w, 260px);
	text-align: left;
	font-weight: inherit;
}

.vfk-pricing-table__plan {
	min-width: var(--vfk-pt-plan-minw, 150px);
	text-align: center;
	font-weight: inherit;
}

.vfk-pricing-table__plan.is-featured {
	background: var(--vfk-pt-featured-head-bg, rgba(30, 158, 99, 0.12));
}

.vfk-pricing-table__featured-label {
	display: inline-block;
	margin-bottom: 10px;
	padding: var(--vfk-pt-featured-label-pad-y, 6px) var(--vfk-pt-featured-label-pad-x, 12px);
	background: var(--vfk-pt-featured-label-bg, #1e9e63);
	border-radius: var(--vfk-pt-featured-label-radius, 8px);
	font-family: var(--vfk-pt-featured-label-ff, inherit);
	font-size: var(--vfk-pt-featured-label-fs, 11px);
	font-weight: var(--vfk-pt-featured-label-fw, 700);
	font-style: var(--vfk-pt-featured-label-fst, normal);
	text-decoration: var(--vfk-pt-featured-label-td, none);
	line-height: var(--vfk-pt-featured-label-lh, 1.2);
	letter-spacing: var(--vfk-pt-featured-label-ls, 0.8px);
	text-transform: var(--vfk-pt-featured-label-tt, uppercase);
	color: var(--vfk-pt-featured-label-color, #ffffff);
}

.vfk-pricing-table__plan-name {
	overflow-wrap: anywhere;
	font-family: var(--vfk-pt-plan-name-ff, inherit);
	font-size: var(--vfk-pt-plan-name-fs, 22px);
	font-weight: var(--vfk-pt-plan-name-fw, 700);
	font-style: var(--vfk-pt-plan-name-fst, normal);
	text-decoration: var(--vfk-pt-plan-name-td, none);
	line-height: var(--vfk-pt-plan-name-lh, 1.2);
	letter-spacing: var(--vfk-pt-plan-name-ls, 0);
	text-transform: var(--vfk-pt-plan-name-tt, none);
	color: var(--vfk-pt-plan-name-color, #111827);
}

.vfk-pricing-table__plan-price-line {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.vfk-pricing-table__plan-price {
	font-family: var(--vfk-pt-plan-price-ff, inherit);
	font-size: var(--vfk-pt-plan-price-fs, 28px);
	font-weight: var(--vfk-pt-plan-price-fw, 800);
	font-style: var(--vfk-pt-plan-price-fst, normal);
	text-decoration: var(--vfk-pt-plan-price-td, none);
	line-height: var(--vfk-pt-plan-price-lh, 1.1);
	letter-spacing: var(--vfk-pt-plan-price-ls, 0);
	text-transform: var(--vfk-pt-plan-price-tt, none);
	color: var(--vfk-pt-plan-price-color, #111827);
}

.vfk-pricing-table__plan-original {
	font-family: var(--vfk-pt-plan-original-ff, inherit);
	font-size: var(--vfk-pt-plan-original-fs, 16px);
	font-weight: var(--vfk-pt-plan-original-fw, 500);
	font-style: var(--vfk-pt-plan-original-fst, normal);
	text-decoration: var(--vfk-pt-plan-original-td, none);
	line-height: var(--vfk-pt-plan-original-lh, 1.1);
	letter-spacing: var(--vfk-pt-plan-original-ls, 0);
	text-transform: var(--vfk-pt-plan-original-tt, none);
	color: var(--vfk-pt-plan-original-color, #9ca3af);
}

.vfk-pricing-table__plan-note {
	margin-top: 6px;
	font-family: var(--vfk-pt-plan-note-ff, inherit);
	font-size: var(--vfk-pt-plan-note-fs, 13px);
	font-weight: var(--vfk-pt-plan-note-fw, 400);
	font-style: var(--vfk-pt-plan-note-fst, normal);
	text-decoration: var(--vfk-pt-plan-note-td, none);
	line-height: var(--vfk-pt-plan-note-lh, 1.3);
	letter-spacing: var(--vfk-pt-plan-note-ls, 0);
	text-transform: var(--vfk-pt-plan-note-tt, none);
	color: var(--vfk-pt-plan-note-color, #6b7280);
}

/* --- Buttons ----------------------------------------------------------- */

.vfk-pricing-table__button-wrap {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.vfk-pricing-table__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--vfk-pt-button-pad-y, 12px) var(--vfk-pt-button-pad-x, 20px);
	background: var(--vfk-pt-button-bg, #1e9e63);
	border: 0;
	border-radius: var(--vfk-pt-button-radius, 8px);
	text-align: center;
	transition: background-color 0.15s ease;
	font-family: var(--vfk-pt-plan-button-ff, inherit);
	font-size: var(--vfk-pt-plan-button-fs, 14px);
	font-weight: var(--vfk-pt-plan-button-fw, 700);
	font-style: var(--vfk-pt-plan-button-fst, normal);
	text-decoration: var(--vfk-pt-plan-button-td, none);
	line-height: var(--vfk-pt-plan-button-lh, 1.2);
	letter-spacing: var(--vfk-pt-plan-button-ls, 0);
	text-transform: var(--vfk-pt-plan-button-tt, none);
	color: var(--vfk-pt-plan-button-color, #ffffff);
}

.vfk-pricing-table__button.is-full-width {
	width: 100%;
}

a.vfk-pricing-table__button:hover,
a.vfk-pricing-table__button:focus {
	background: var(--vfk-pt-button-bg-hover, #177a4d);
	color: var(--vfk-pt-plan-button-color, #ffffff);
	text-decoration: var(--vfk-pt-plan-button-td, none);
}

/* --- Body rows --------------------------------------------------------- */

/* v1.4.0: section-heading rows span the whole table. */
.vfk-pricing-table__section > th {
	padding: calc(var(--vfk-pt-row-pad-y, 16px) * 0.75) var(--vfk-pt-cell-pad-x, 16px);
	border-top: var(--vfk-pt-row-border, 1px solid #e5e7eb);
	background: var(--vfk-pt-section-bg, #eef6f5);
	color: var(--vfk-pt-section-color, #0b8276);
	font-family: var(--vfk-pt-row-label-ff, inherit);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
}

.vfk-pricing-table__row {
	background: var(--vfk-pt-bg, #ffffff);
}

.vfk-pricing-table.is-striped .vfk-pricing-table__row:nth-child(even) {
	background: var(--vfk-pt-stripe, #f9fafb);
}

.vfk-pricing-table__row > th,
.vfk-pricing-table__row > td {
	border-top: var(--vfk-pt-row-border, 1px solid #e5e7eb);
}

.vfk-pricing-table__row-label {
	width: var(--vfk-pt-label-w, 260px);
	min-width: var(--vfk-pt-label-w, 260px);
	padding: var(--vfk-pt-row-pad-y, 16px) var(--vfk-pt-cell-pad-x, 16px);
	text-align: left;
	vertical-align: middle;
	font-family: var(--vfk-pt-row-label-ff, inherit);
	font-size: var(--vfk-pt-row-label-fs, 15px);
	font-weight: var(--vfk-pt-row-label-fw, 500);
	font-style: var(--vfk-pt-row-label-fst, normal);
	text-decoration: var(--vfk-pt-row-label-td, none);
	line-height: var(--vfk-pt-row-label-lh, 1.45);
	letter-spacing: var(--vfk-pt-row-label-ls, 0);
	text-transform: var(--vfk-pt-row-label-tt, none);
	color: var(--vfk-pt-row-label-color, #1f2937);
}

.vfk-pricing-table__cell {
	position: relative;
	min-width: var(--vfk-pt-plan-minw, 150px);
	padding: var(--vfk-pt-row-pad-y, 16px) var(--vfk-pt-cell-pad-x, 16px);
	text-align: center;
	vertical-align: middle;
}

.vfk-pricing-table__cell.is-featured {
	background: var(--vfk-pt-featured-bg, rgba(30, 158, 99, 0.06));
}

.vfk-pricing-table__cell-text {
	font-family: var(--vfk-pt-cell-text-ff, inherit);
	font-size: var(--vfk-pt-cell-text-fs, 14px);
	font-weight: var(--vfk-pt-cell-text-fw, 400);
	font-style: var(--vfk-pt-cell-text-fst, normal);
	text-decoration: var(--vfk-pt-cell-text-td, none);
	line-height: var(--vfk-pt-cell-text-lh, 1.4);
	letter-spacing: var(--vfk-pt-cell-text-ls, 0);
	text-transform: var(--vfk-pt-cell-text-tt, none);
	color: var(--vfk-pt-cell-text-color, #6b7280);
}

.vfk-pricing-table__cell-icon {
	display: inline-block;
	width: var(--vfk-pt-icon-size, 20px);
	height: var(--vfk-pt-icon-size, 20px);
	vertical-align: middle;
}

.vfk-pricing-table__cell-icon.is-check {
	color: var(--vfk-pt-check-color, #1e9e63);
}

.vfk-pricing-table__cell-icon.is-cross {
	color: var(--vfk-pt-cross-color, #9ca3af);
}

.vfk-pricing-table__cell-icon svg,
.vfk-pricing-table__cell-icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.vfk-pricing-table__cell-icon img {
	object-fit: contain;
}

/*
 * The feature column stays put while the plan columns scroll under it.
 * background:inherit picks up the row's stripe so the sticky cell is opaque.
 */
.vfk-pricing-table.has-sticky-labels .vfk-pricing-table__corner,
.vfk-pricing-table.has-sticky-labels .vfk-pricing-table__row-label {
	position: sticky;
	left: 0;
	z-index: 2;
	background: inherit;
}

/* Announced to screen readers, invisible on screen. */
.vfk-pricing-table__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --- Editor-only cell type control ------------------------------------- */

.vfk-pricing-table__cell-type {
	position: absolute;
	top: 4px;
	right: 4px;
	padding: 1px 5px;
	opacity: 0;
	background: #ffffff;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	font-size: 10px;
	line-height: 1.6;
	color: #50575e;
	cursor: pointer;
	transition: opacity 0.12s ease;
}

.vfk-pricing-table__cell:hover .vfk-pricing-table__cell-type,
.vfk-pricing-table__cell-type:focus {
	opacity: 1;
}

/* ====================================================================== *
 * Inspector helper classes (editor only)
 * ====================================================================== */

.vk-pricing-field {
	margin-bottom: 16px;
}

.vk-pricing-field__label {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	color: #1e1e1e;
}

.vk-pricing-field__hint {
	margin: 0 0 8px;
	font-size: 12px;
	font-style: italic;
	color: #757575;
}

.vk-pricing-field__preview {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 8px;
	object-fit: contain;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.vk-pricing-rule {
	margin: 16px 0;
	border: 0;
	border-top: 1px solid #e0e0e0;
}

.vk-pricing-feature-row {
	margin-bottom: 12px;
	padding: 10px;
	background: #f6f7f7;
	border-radius: 4px;
}

.vk-pricing-feature-row__title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: #1e1e1e;
	overflow-wrap: anywhere;
}

.vk-pricing-feature-row__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

.vk-pricing-feature-row .vk-pricing-field {
	margin-bottom: 8px;
}

/* --- Editor-only affordances ------------------------------------------ */

.vfk-pricing-block__add-feature {
	align-self: flex-start;
	margin-top: 2px;
}

.vfk-pricing-block [data-rich-text-placeholder]::after {
	opacity: 0.55;
}

/* Keep an emptied field clickable while editing. */
.wp-block-verifikitchen-pricing-block .vfk-pricing-block__badge-text:empty::after,
.wp-block-verifikitchen-pricing-block .vfk-pricing-block__title:empty::after {
	content: "\200B";
}
