.plan-subtitle * {
	margin: 0 0 var(--sp-5xs) 0;
}

.plan-subtitle *:last-child {
	margin: 0;
}

.border-t-8px {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.border-b-0 {
	border-bottom: none;
}

.plans-flex-grow {
	flex-grow: 1;
}

.highlight-text {
	background: #2DAC78;
}

.highlight-text * {
	margin: 0;
}

.acf-block-preview .plan-content ul,
.plan-content ul {
	list-style: none;
	padding: 0;
}

.plan-content ul li {
	position: relative;
	padding-left: 25px;
}

.plan-content ul li::before {
	content: '';
	font-weight: bold;
	background-color: #2DAC78;
	-webkit-mask-image: var(--content-list-icon);
	mask-image: var(--content-list-icon);
	height: 20px;
	width: 20px;
	mask-repeat: no-repeat;
	mask-size: contain;
	margin-top: 0;
	display: block;
	border: 1px solid;
	position: absolute;
	top: 3px;
	left: 0;
}

.plan-content ul + p {
	margin-top: var(--sp-2xs);
}

.tooltip {
	position: relative;
	cursor: help;
}

.tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: 100%;
	margin-bottom: 12px;
	padding: 10px 16px;

	background: hsla(var(--color-main), 1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	color: hsla(var(--color-white), 1);
	font-size: 0.9rem;
	line-height: 1.45;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	border: 1px solid hsla(var(--color-main), 1);

	white-space: pre-wrap;
	max-width: 200px;
	width: max-content;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	transform: translateX(-50%) translateY(8px);
	pointer-events: none;
	z-index: 50;
}

.tooltip:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.tooltip::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translateX(-50%);
	margin-bottom: -2px;
	border: 7px solid transparent;
	border-top-color: hsla(var(--color-main), 1);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tooltip:hover::before {
  	opacity: 1;
}

.tooltip.tooltip-icon {
	border: 1px solid;
	border-radius: 50%;
	padding: 0px 5px;
}

/* 1. Main card now spans 4 explicit rows (Promo + 2 Header rows + Body) */
.plans-advanced-block {
    display: grid;
    grid-row: span 4; 
    grid-template-rows: subgrid;
    gap: 0; 
    background-color: transparent; 
    border: none;
}

.plan-featured-heading.empty-promo {
    visibility: hidden;
    margin: 0;
    padding: 0;
}

/* 2. Make the header a subgrid spanning 2 rows */
.plan-header {
    display: grid !important; /* Overrides Tailwind flex utilities */
    grid-row: span 2;
    grid-template-rows: subgrid;
    height: 100%;
    width: 100%;
    gap: 0;
}

.plan-body {
    height: 100%;
    width: 100%;
}

/* 3. EXPLICIT PLACEMENT: Locks internal items across all cards */
.plans-title {
    grid-row: 1;
    height: 100%; /* Lets the inner blue divider still push to the bottom */
}

.header-pricing {
	grid-row: 2;
}

.plans-advanced-block.is-regular .plan-header {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.plans-advanced-block.is-regular .plan-body {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.plans-advanced-block.is-featured .plan-featured-heading {
    border: 3px solid hsla(var(--color-orange),1);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.plans-advanced-block.is-featured .plan-header {
    border-left: 3px solid hsla(var(--color-orange),1);
    border-right: 3px solid hsla(var(--color-orange),1);
    /*border-radius: 0;*/
}
.plans-advanced-block.is-featured .plan-body {
    border: 3px solid hsla(var(--color-orange),1);
    border-top: none;
    border-radius: 0 0 8px 8px;
}