.sl-pricing-tabs {
	max-width: 1280px;
	margin: 0 auto;
}

.sl-pricing-tabs-nav {
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin-bottom: 40px;
}

.sl-pricing-tabs-nav-btn-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	position: relative;
}

.sl-pricing-tabs-line {
	flex: 1;
	position: relative;
	padding: 0 10px;
}
.sl-pricing-tabs-line::after {
	content: '';
	position: absolute;
	top: 50%;
	height: 3px;
	background: #6B4C7A;
	width: calc(100% - 20px);
}

.sl-pricing-tab-btn {
	padding: 5px 10px;
	border: none;
	background-color: #E8E5E5 !important;
	color: #094C73 !important;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6em;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0px 4px 3px 0px rgba(0, 0, 0, 0.25);
}

.sl-pricing-tab-btn:hover {
	background: #094C73 !important;
	color: #fff !important;
}

.sl-pricing-tab-btn.is-active {
	background: #094C73 !important;
	color: #fff !important;
}

.sl-pricing-tab-panel {
	display: none;
}

.sl-pricing-tab-panel.is-active {
	display: block;
}

/* ===== FLEXBOX GRID ===== */
.sl-pricing-grid {
	--row-gap: 40px;
	--col-gap: 30px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: var(--row-gap) var(--col-gap);
	padding: 0 20px;
}
.sl-pricing-grid.has-single-row {
    justify-content: center; /* only center single rows */
}
.sl-pricing-card {
	flex: 0 0 calc(25% - var(--col-gap) * 3 / 4);
	max-width: calc(25% - var(--col-gap) * 3 / 4);
	display: flex;
	flex-direction: column;
	position: relative;
}

/* ===== DIVIDER LINES - Controlled by JS ===== */

/* Hide all dividers by default */
.sl-pricing-card::before,
.sl-pricing-card::after {
	display: none;
}

/* Horizontal line below card - shown via JS class */
.sl-pricing-card.has-line-below::before {
	display: block;
	content: '';
	position: absolute;
	bottom: calc((var(--row-gap) / -2) + 5px);
	left: calc(var(--col-gap) / -2);
	right: calc(var(--col-gap) / -2);
	height: 1px;
	background: #8FD0DD;
}

/* Vertical line on left - shown via JS class */
.sl-pricing-card.has-line-left::after {
	display: block;
	content: '';
	position: absolute;
	left: calc(var(--col-gap) / -2);
	bottom: calc((var(--row-gap) / -2) - 17px);
	height: 44px;
	width: 1px;
	background: #8FD0DD;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
	.sl-pricing-grid {
		--row-gap: 30px;
		--col-gap: 20px;
	}

	.sl-pricing-card {
		flex: 0 0 calc(33.333% - var(--col-gap) * 2 / 3);
		max-width: calc(33.333% - var(--col-gap) * 2 / 3);
	}

	.sl-pricing-tabs-nav::before,
	.sl-pricing-tabs-nav::after {
		display: none;
	}
}

/* Small tablet - 2 columns */
@media (max-width: 767px) {
	.sl-pricing-grid {
		--row-gap: 30px;
		--col-gap: 20px;
	}

	.sl-pricing-card {
		flex: 0 0 calc(50% - var(--col-gap) / 2);
		max-width: calc(50% - var(--col-gap) / 2);
	}
}

/* Phone - 1 column */
@media (max-width: 480px) {
	.sl-pricing-grid {
		--row-gap: 30px;
		--col-gap: 0px;
	}

	.sl-pricing-card {
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* Override JS - no vertical lines in single column */
	.sl-pricing-card.has-line-left::after {
		display: none;
	}

	/* Adjust horizontal line for full width */
	.sl-pricing-card.has-line-below::before {
		left: 0;
		right: 0;
	}

	.sl-pricing-tabs-nav {
		gap: 8px;
	}

	.sl-pricing-tab-btn {
		padding: 8px 12px;
		font-size: 14px;
	}

	.sl-price {
		font-size: 30px;
	}

	.sl-price-unit {
		font-size: 16px;
	}
}

/* ===== CARD CONTENT STYLES ===== */

.sl-pricing-card-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.sl-price {
	font-size: 36px;
	font-weight: 800;
	color: #6B4C7A;
	line-height: 1;
	font-family: inherit;
}

.sl-price-unit {
	font-size: 18px;
	font-weight: 400;
	color: #094d74;
}

/* ACH/CC payment method label on primary price line */
.sl-price-method {
	font-size: 14px;
	font-weight: 600;
	color: #6B4C7A;
}

/* ===== DUAL PRICING - CC PRICE LINE ===== */

.sl-pricing-card-cc-price {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.sl-cc-price {
	font-size: 20px;
	font-weight: 700;
	color: #094d74;
	line-height: 1;
}

.sl-cc-price-unit {
	font-size: 14px;
	font-weight: 400;
	color: #094d74;
}

.sl-cc-price-method {
	font-size: 13px;
	font-weight: 400;
	color: #666;
}

/* ===== ACH SAVINGS TOOLTIP ===== */

.sl-price-info-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin-left: 2px;
}

.sl-price-info-icon {
	font-size: 16px;
	color: #6B4C7A;
	line-height: 1;
	font-style: normal;
}

.sl-price-info-bubble {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #094C73;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	padding: 10px 14px;
	border-radius: 8px;
	white-space: normal;
	width: 220px;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

/* Tooltip arrow */
.sl-price-info-bubble::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #094C73;
}

/* Show on hover and focus (for keyboard accessibility) */
.sl-price-info-tooltip:hover .sl-price-info-bubble,
.sl-price-info-tooltip:focus .sl-price-info-bubble {
	display: block;
}

/* Keep tooltip in bounds on small cards - shift left if near right edge */
.sl-pricing-card:last-child .sl-price-info-bubble,
.sl-pricing-card:nth-child(4n) .sl-price-info-bubble {
	left: auto;
	right: -10px;
	transform: none;
}
.sl-pricing-card:last-child .sl-price-info-bubble::after,
.sl-pricing-card:nth-child(4n) .sl-price-info-bubble::after {
	left: auto;
	right: 16px;
	transform: none;
}

/* ===== END DUAL PRICING ===== */

.sl-pricing-card-note {
	font-size: 16px;
	font-weight: 400;
	color: #094d74;
	margin-bottom: 4px;
	line-height: 1.3;
}

.sl-pricing-card-fee {
	font-size: 16px;
	font-weight: 400;
	color: #094d74;
	margin-bottom: 16px;
	line-height: 1.3;
}

.sl-pricing-card-service {
	margin-bottom: 10px;
}

.sl-service-link {
	display: inline;
	text-decoration: none;
	color: inherit;
}

.sl-service-link:hover .sl-service-name {
	color: #6B4C7A;
}

/* Arrow as pseudo element - word joiner prevents arrow from wrapping alone */
.sl-service-link .sl-service-name::after,
.sl-service-toggle .sl-service-name::after {
	content: '\2060\00a0▶';  /* Word joiner + non-breaking space + arrow */
	font-size: 10px;
	color: #094C73;
	display: inline; 
	padding-left: 5px;
	transition: transform 0.3s ease;
}

.sl-service-name {
	font-size: 16px;
	font-weight: 800;
	color: #094C73;
	transition: color 0.3s ease;
	line-height: 1.4;
	position: relative;
	display: inline;
}

/* Toggle button for expandable description */
.sl-service-toggle {
	background-color: rgba(0, 0, 0, 0) !important;
	display: inline;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.sl-service-toggle:hover .sl-service-name {
	color: #6B4C7A;
}

/* Expanded state - rotate arrow */
.sl-pricing-card.is-expanded .sl-service-toggle .sl-service-name::after {
	display: inline-block;  /* Need inline-block for transform to work */
	transform: rotate(90deg);
}

/* Description panel */
.sl-pricing-card-description {
	display: none;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5em;
	color: #094d74;
	margin-bottom: 16px;
	padding-top: 0;
}

.sl-pricing-card.is-expanded .sl-pricing-card-description {
	display: block;
}

/* Learn More link - always visible */
.sl-pricing-card-link {
	margin-top: auto;
}

.sl-learn-more {
	display: inline-block;
	color: #6B4C7A !important;
	font-weight: 800;
	text-decoration: none;
}

.sl-learn-more:hover {
	color: #6B4C7A;
}

.sl-pricing-card-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	justify-content: space-between;
}

.sl-btn {
	display: inline-block;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3em !important;
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.3s ease;
	text-align: center;
	background: #094C73;
	color: #fff !important;
	box-shadow: 0px 4px 3px 0px rgba(0, 0, 0, 0.25) !important;
	padding: 6px 12px;
}

.sl-btn:hover {
	background: #0a5d8a;
	color: #fff;
}

/* ===== RESPONSIVE - DUAL PRICING ===== */
@media (max-width: 480px) {
	.sl-cc-price {
		font-size: 17px;
	}

	.sl-cc-price-unit {
		font-size: 13px;
	}

	.sl-cc-price-method {
		font-size: 12px;
	}

	.sl-price-method {
		font-size: 12px;
	}

	/* On mobile, position tooltip bubble to avoid overflow */
	.sl-price-info-bubble {
		left: auto;
		right: -10px;
		transform: none;
		width: 200px;
	}
	.sl-price-info-bubble::after {
		left: auto;
		right: 16px;
		transform: none;
	}
}