/* Only loaded for HostFact forms 11 and 21; enhancement also checks the form id. */
.hf-checkout-body:is([data-hf-orderform-id="11"], [data-hf-orderform-id="21"]) .hf-plan-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 0 14px !important;
	align-items: stretch;
	padding: 8px 0 0 !important;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card,
.hf-checkout-body .hf-plan-grid .hf-plan-card.last_col {
	--plan-accent: #4210a6;
	--plan-tint: #f4f0fc;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: subgrid;
	grid-template-areas: none;
	grid-row: span 3;
	align-items: stretch;
	gap: 0;
	min-width: 0;
	padding: 0 0 8px !important;
	border: 1px solid #d6cbe7 !important;
	border-radius: 18px !important;
	background: var(--plan-accent) !important;
	box-shadow: 0 5px 16px #2712410a !important;
	color: #21192e !important;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card--professional {
	--plan-accent: #bd0758;
	--plan-tint: #fff1f6;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card:hover {
    border-color: #aaa1b7 !important;
    box-shadow: 0 4px 14px #27124116 !important;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card.active {
    border-color: #08784a !important;
    box-shadow: 0 0 0 2px #08784a, 0 6px 18px #08784a16 !important;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card:has(:focus-visible) {
	outline: 2px dashed #312445;
	outline-offset: 4px;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card > input[type="radio"] {
	position: absolute;
	top: 11px;
	right: 12px;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	accent-color: #08784a;
	cursor: pointer;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__badge {
	display: block;
	min-height: 39px;
	padding: 12px 36px 11px 16px !important;
	background: radial-gradient(ellipse at 12% 0, #ffffff16 0 24%, transparent 25%), radial-gradient(ellipse at 78% 110%, #00000012 0 32%, transparent 33%);
	color: #fff;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.4;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__intro {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	align-items: flex-start;
	gap: 0;
	padding: 16px !important;
	border-radius: 16px 16px 0 0;
	background: #fff;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__guarantee {
	display: inline-block;
	margin: 0 0 10px;
	padding: 6px 9px !important;
	border-radius: 20px;
	background: #201a2b;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card .amount_span {
	display: block;
	align-self: stretch;
	min-width: 0;
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--plan-accent) !important;
	font-size: clamp(25px, 2.2vw, 32px) !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: -.035em;
	text-align: left !important;
	white-space: normal;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__period {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	white-space: nowrap;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card h3.hf-plan-card__name {
	min-height: 0;
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #21192e !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: -.025em;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__description {
	min-height: 0;
	margin: 0 0 14px !important;
	padding: 0 !important;
	color: #61586d;
	font-size: 13px;
	line-height: 1.5;
}

.hf-checkout-body .hf-plan-grid button.hf-plan-card__choose {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: auto 0 0 !important;
    padding: 0 14px !important;
    border: 1px solid #c9c4d1;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    color: #352d41;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

.hf-checkout-body .hf-plan-grid button.hf-plan-card__choose:hover {
    border-color: #8c8497;
    background: #f4f3f6;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card.active .hf-plan-card__choose {
    border-color: #08784a;
    background: #08784a;
    color: #fff;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__choose .hf-plan-card__choose-label {
    display: block !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit;
    line-height: 20px !important;
}

/* Use a small geometric check, unaffected by font glyph metrics or HostFact span rules. */
.hf-checkout-body .hf-plan-grid .hf-plan-card__choose .hf-plan-card__arrow {
    display: none !important;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card.active .hf-plan-card__choose .hf-plan-card__arrow {
    position: relative;
    display: block !important;
    flex: 0 0 16px;
    width: 16px;
    height: 20px;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    color: inherit;
    font-size: 0 !important;
    line-height: 0 !important;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card.active .hf-plan-card__arrow::before {
    position: absolute;
    top: 5px;
    left: 2px;
    width: 11px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
    content: '';
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__benefits {
	flex: 1 0 auto;
	margin: 0;
	padding: 15px !important;
	border-top: 1px solid #e4ddeb;
	border-radius: 0 0 13px 13px;
	background: #f7f6f9;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__features {
	display: grid;
	gap: 7px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__features li {
	position: relative;
	margin: 0 !important;
	padding: 0 0 0 19px !important;
	color: #352c41;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__features li::before {
	position: absolute;
	left: 0;
	content: '✓';
	color: #bd0758;
	font-weight: 800;
}

.hf-checkout-body .hf-plan-grid .hf-plan-card__migration {
	display: block;
	margin: 17px 0 0;
	padding: 8px !important;
	border: 1px solid #b6e6cd;
	border-radius: 7px;
	background: #e9f8ef;
	color: #146c43;
	font-size: 11px;
	font-weight: 750;
	text-align: center;
}

@media (max-width: 1199px) and (min-width: 1024px) {
	.hf-checkout-body:is([data-hf-orderform-id="11"], [data-hf-orderform-id="21"]) .hf-plan-grid { column-gap: 10px !important; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card__intro { padding: 16px 12px !important; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card__benefits { padding: 16px 11px !important; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card__badge { font-size: 10px; }
}

@media (max-width: 760px) {
	.hf-checkout-body:is([data-hf-orderform-id="11"], [data-hf-orderform-id="21"]) .hf-plan-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 0 !important;
	}
	.hf-checkout-body .hf-plan-grid .hf-plan-card,
	.hf-checkout-body .hf-plan-grid .hf-plan-card.last_col { margin-bottom: 16px !important; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card__intro { padding: 16px !important; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card__benefits { padding: 16px !important; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card h3.hf-plan-card__name,
	.hf-checkout-body .hf-plan-grid .hf-plan-card__description { min-height: 0; }
	.hf-checkout-body .hf-plan-grid .hf-plan-card .amount_span { font-size: 30px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.hf-checkout-body .hf-plan-grid .hf-plan-card,
	.hf-checkout-body .hf-plan-grid .hf-plan-card.last_col { transition: none; }
}
