/*
 * Heart Spring Health — custom CSS.
 * Child-theme's own stylesheet for visual tweaks.
 * Enqueued from functions.php (handle: hsh-custom).
 * Uses The7's accent color when available.
 */

/* Membership cards [hsh_membership] */
.hsh-memberships {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	align-items: stretch;
}

.hsh-memberships > p:empty,
.hsh-memberships > br {
	display: none;
}

.hsh-card {
	--hsh-accent: var(--the7-accent-color, #1e73be);
	--hsh-border: #dcdcdc;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--hsh-border);
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
}

.hsh-card--featured {
	border: 2px solid var(--hsh-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.hsh-card__head {
	background: #f4f4f4;
	border-bottom: 1px solid var(--hsh-border);
	padding: 18px 20px;
	text-align: center;
}

.hsh-card--featured .hsh-card__head {
	background: var(--hsh-accent);
	border-bottom-color: var(--hsh-accent);
}

.hsh-card--featured .hsh-card__title {
	color: #fff;
}

.hsh-card__title {
	margin: 0 !important;
	padding: 0;
	font-size: 1.15em;
	line-height: 1.3;
}

.hsh-card__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 24px 24px 8px !important;
	flex: 1 1 auto;
}

.hsh-card__spacer {
	flex: 1 1 auto;
}

.hsh-card__list li {
	position: relative;
	list-style: none !important;
	margin: 0 0 12px !important;
	padding: 0 0 0 30px !important;
	text-align: left;
	line-height: 1.45;
}

.hsh-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 16px;
	height: 16px;
	border: 2px solid var(--hsh-accent);
	border-radius: 4px;
	box-sizing: border-box;
	background: none;
}

.hsh-card__list li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: calc(.2em + 2px);
	width: 5px;
	height: 9px;
	border: solid var(--hsh-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.hsh-card__price {
	text-align: center;
	font-size: 1.9em;
	font-weight: 700;
	line-height: 1.2;
	margin: 8px 24px 18px;
}

.hsh-card__period {
	font-size: .5em;
	font-weight: 400;
	opacity: .7;
	margin-left: 2px;
}

.hsh-card__cta {
	text-align: center;
	padding: 0 24px 28px;
	min-height: 48px;
}

.hsh-card .healcode-contract-text-link {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 6px;
	background: var(--hsh-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	line-height: 1.2;
	transition: filter .2s ease, transform .2s ease;
}

.hsh-card .healcode-contract-text-link:hover,
.hsh-card .healcode-contract-text-link:focus {
	filter: brightness(.9);
	transform: translateY(-1px);
}
