.vp-group-health {
	--vp-health-accent: #efb73c;
	--vp-health-savings: #f66b48;
	background: #F5F5F5;
	border-radius: 16px;
	color: #55544f;
	padding: 0 4% 28px;
	line-height: 1.5;
	font-size: 1rem;
}

.vp-group-health *,
.vp-group-health *::before,
.vp-group-health *::after {
	box-sizing: border-box;
}

.vp-group-health [hidden] {
	display: none !important;
}

.vp-group-health__tabs {
	display: flex;
	position: relative;
	top: -24px;
	background: white;
	box-shadow: 0 8px 30px #0002;
	border-radius: 6px;
    overflow: hidden;
}

.vp-group-health__tabs button {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	border: 0;
	border-radius: 0;
	padding: 20px 12px 28px;
	font: inherit;
	line-height: 1.4;
	color: inherit;
	background: white;
	cursor: pointer;
	font-size: 1rem;
}

.vp-group-health__tabs button[aria-selected="true"] {
	background: var(--vp-health-accent);
	color: #35342f;
}

.vp-group-health__tabs button::after {
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 0;
    transition: 0.3s ease-in;
	bottom: 15px;
	background: currentColor;
}

.vp-group-health__tabs button[aria-selected="true"]::after,
.vp-group-health__tabs button:hover::after,
.vp-group-health__tabs button:focus-visible::after {
	width: 56px;
}

/* Keep keyboard focus visible inside the tab bar's clipped rounded corners. */
.vp-group-health .vp-group-health__tabs button:focus-visible {
	outline: 3px solid #245e8a;
	outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
	.vp-group-health__tabs button::after {
		transition: none;
	}
}

.vp-group-health__tabs span {
	display: block;
	font-weight: 700;
	font-size: 14px;
}

.vp-group-health__tabs small {
	display: block;
	margin-top: 6px;
	font-size: 12px;
}

.vp-group-health__selector {
	display: none;
}

.vp-group-health__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	grid-template-rows: auto 1fr auto;
	column-gap: 10%;
	row-gap: 18px;
	padding: 12px 3% 0;
}

.vp-group-health__panel + .vp-group-health__panel {
	margin-top: 24px;
}

.vp-group-health[data-health-ready] .vp-group-health__panel {
	margin-top: 0;
}

.vp-group-health__intro {
	grid-column: 1;
	grid-row: 1;
}

.vp-group-health__intro p {
	margin: 0 0 12px;
}

.vp-group-health__card {
	grid-column: 2;
	grid-row: 1 / 3;
	align-self: start;
	min-width: 0;
	background: white;
	border-radius: 7px;
	box-shadow: 0 5px 28px #0003;
}

.vp-group-health__header {
	padding: 28px 22px 18px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.vp-group-health .vp-group-health__header h3 {
	color: inherit;
	font-weight: 700;
	line-height: 1.5;
	margin: 5px 0 0;
}

.vp-group-health__cost {
	text-align: right;
	flex-shrink: 0;
}

.vp-group-health__title {
	min-width: 0;
}

.vp-group-health__title .vp-group-health__join {
	margin-top: 12px;
}

.vp-group-health__cost strong {
	display: block;
	font-size: clamp(20px, 2.2vw, 35px);
	line-height: 1.1;
	letter-spacing: -.6px;
}

.vp-group-health__cost small {
	display: block;
	font-size: 12px;
	margin-top: 4px;
}

.vp-group-health .vp-group-health__services {
	border: 0;
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font: inherit;
	table-layout: fixed;
}

.vp-group-health .vp-group-health__services th {
	background: white;
	color: inherit;
	border: 0;
	padding: 0 22px 7px;
	font-size: 12px;
	font-weight: 400;
	text-align: left;
	vertical-align: bottom;
}

.vp-group-health__services th:last-child {
	width: 23%;
	text-align: right;
}

.vp-group-health .vp-group-health__services td {
	border: 0;
	padding: 14px 22px;
	vertical-align: middle;
	line-height: 1.5;
}

.vp-group-health .vp-group-health__services tr {
	border-bottom: 2px solid #fff;
}

.vp-group-health .vp-group-health__services tr td {
	background: #F8F8F8;
}

.vp-group-health__services td:first-child {
	position: relative;
	padding-left: 56px;
	font-weight: 600;
}

.vp-group-health__services td:last-child {
	text-align: right;
	font-size: 12px;
}

.vp-group-health__check {
	position: absolute;
	left: 24px;
	top: 14px;
	font-weight: 700;
	color: #169a41;
}

.vp-group-health__quantity {
	display: block;
	font-weight: 400;
	font-size: 12px;
}

.vp-group-health__note {
	display: inline;
	position: relative;
	margin-left: 4px;
	font-weight: 400;
}

.vp-group-health__note summary {
	display: inline;
	cursor: pointer;
	list-style: none;
	font-size: 15px; 
	font-weight: 700;
}

.vp-group-health__note summary::-webkit-details-marker {
	display: none;
}

.vp-group-health__note-content {
	position: absolute;
	z-index: 2;
	top: 24px;
	left: -100px;
	width: 210px;
	padding: 14px;
	background: white;
	box-shadow: 0 4px 18px #0003;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.vp-group-health__note-content p {
	margin: 0 0 8px;
}

.vp-group-health__note-content p:last-child {
	margin-bottom: 0;
}

.vp-group-health__note-content a {
	color: inherit;
	text-decoration: underline;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-row td {
	border-bottom: 1px solid #d9d9d9;
	vertical-align: top;
	padding-top: 24px;
	padding-bottom: 24px;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-row td:first-child {
	border-left: 2px solid #d9d9d9;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-row td:last-child {
	border-right: 2px solid #d9d9d9;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-start td {
	border-top: 2px solid #d9d9d9;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-end td {
	border-bottom: 2px solid #d9d9d9;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-separator-row {
	height: 0;
	border: 0;
}

.vp-group-health .vp-group-health__services .vp-group-health__group-separator-row td {
	position: relative;
	height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	line-height: 0;
}

.vp-group-health__group-separator {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 52px;
	max-width: calc(100% - 32px);
	padding: 5px 18px;
	border-radius: 999px;
	background: var(--vp-health-accent);
	color: #222;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	overflow-wrap: anywhere;
}

.vp-group-health__group-row .vp-group-health__check {
	top: 24px;
}

.vp-group-health__group-note {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 400;
}

.vp-group-health__group-note p {
	margin: 0 0 6px;
}

.vp-group-health__footer {
	padding: 18px 26px;
}

.vp-group-health .vp-group-health__join {
	width: 100%;
}

.vp-group-health__saving {
	grid-column: 1;
	grid-row: 2;
	align-self: start;
	padding: 22px;
	background: var(--vp-health-savings);
	color: #fff;
	border-radius: 3px;
}

.vp-group-health .vp-group-health__saving h4 {
	margin: 0 0 16px;
	font-size: 20px;
	line-height: 1.4;
	color: inherit;
	font-weight: 700;
}

.vp-group-health__saving p {
	margin: 0 0 12px;
}

.vp-group-health__saving p:last-child {
	margin-bottom: 0;
}

.vp-group-health__terms {
	grid-column: 2;
	grid-row: 3;
	padding: 20px;
	border: 1px solid #d1d1d1;
	border-radius: 8px;
}

.vp-group-health__terms p {
	margin: 0 0 12px;
}

.vp-group-health__terms p:last-child {
	margin-bottom: 0;
}

.vp-group-health__terms a {
	color: #ad3d24;
	text-decoration: underline;
}

.vp-group-health :is(button, select, a, summary):focus-visible {
	outline: 3px solid #245e8a;
	outline-offset: 3px;
}

.vp-group-health-editor {
	border: 1px solid #ddd;
	padding: 20px;
}

.vp-group-health-editor__benefit {
	border-top: 1px solid #ddd;
	margin-top: 20px;
	padding-top: 16px;
}

.vp-group-health-editor__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}

.vp-group-health-editor .vp-group-health__panel {
	display: block;
}

.vp-group-health-editor .vp-group-health__panel > * {
	margin-bottom: 18px;
}

@media (max-width: 767px) {
	.vp-group-health {
		padding: 20px 16px;
		border-radius: 0;
	}

	.vp-group-health__tabs {
		display: none;
	}

	.vp-group-health__selector {
		display: block;
		margin-bottom: 28px;
	}

	.vp-group-health__selector label {
		display: block;
		font-weight: 700;
		font-size: 13px;
		margin-bottom: 10px;
	}

	.vp-group-health__selector select {
		display: block;
		width: 100%;
		max-width: 100%;
		min-height: 48px;
		border: 1px solid #dedede;
		border-radius: 28px;
		padding: 10px 34px 10px 18px;
		background: white;
		color: inherit;
		font: inherit;
		font-size: 12px;
	}

	.vp-group-health__panel {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 0;
	}

	.vp-group-health__intro {
		order: 0;
	}

	.vp-group-health__card {
		order: 1;
		width: 100%;
	}

	.vp-group-health__saving {
		order: 2;
		width: 100%;
		padding: 22px;
	}

	.vp-group-health__terms {
		order: 3;
		border: 0;
		padding: 0;
	}

	.vp-group-health__header {
		display: block;
		padding: 22px 18px;
	}

	.vp-group-health__cost {
		text-align: left;
		margin-top: 14px;
	}

	.vp-group-health__cost strong {
		font-size: 28px;
	}

	.vp-group-health .vp-group-health__services {
		font-size: 12px;
	}

	.vp-group-health .vp-group-health__services th {
		padding-left: 18px;
	}

	.vp-group-health .vp-group-health__services th:first-child  {
		padding-right: 18px;
	}

	.vp-group-health .vp-group-health__services td {
		padding: 14px 18px 14px 0;
	}

	.vp-group-health .vp-group-health__services td:first-child {
		padding-left: 48px;
	}

	.vp-group-health__check {
		left: 18px;
	}

	.vp-group-health__footer {
		padding: 18px;
	}

	.vp-group-health__services th:last-child {
		width: 30%;
	}
}

.vp-group-health__join { display: block; text-align: center; }
