/*
 * Pricing card presentation for the hbxl_product_packages shortcode.
 */

.hbxl-product-packages {
	margin: 3rem 0;
}

.hbxl-product-packages .w-content-carousel .owl-carousel > .hbxl-package-card {
	width: calc((100% - (2 * var(--items-gap, 24px))) / 3);
}

.hbxl-product-packages .w-content-carousel.hbxl-product-packages__carousel--peek-desktop .owl-carousel > .hbxl-package-card {
	width: calc((100% - (3 * var(--items-gap, 24px))) / 3.5);
}

.hbxl-product-packages .w-content-carousel .owl-stage {
	display: flex;
}

.hbxl-product-packages .w-content-carousel .owl-stage-outer:not(:has(.owl-item:nth-child(3))) {
	display: flex;
	justify-content: center;
}

.hbxl-product-packages .w-content-carousel .owl-item > .hbxl-package-card {
	width: 100%;
}

.hbxl-product-packages__intro {
	margin: 0 0 1.5rem;
}

.hbxl-product-packages__title {
	margin: 0;
}

.hbxl-product-packages__subtitle {
	max-width: 42rem;
	margin: 0.75rem 0 0;
	color: var(--color-content-text, #6d7c84);
}

.hbxl-product-packages__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.hbxl-package-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2rem;
	border: 1px solid rgba(10, 35, 48, 0.08);
	border-radius: 1rem;
	background: var(--color-content-bg, #ffffff);
	box-shadow: 0 16px 40px rgba(10, 35, 48, 0.08);
	overflow: hidden;
}

@media (max-width: 1024px) {
	.hbxl-product-packages .w-content-carousel.hbxl-product-packages__carousel--peek-single .owl-carousel > .hbxl-package-card {
		width: calc((100% - var(--items-gap, 24px)) / 1.5);
	}
}

.hbxl-package-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0.375rem;
	background: linear-gradient(90deg, var(--color-content-primary, #2298d6), #00d8ff);
}

.hbxl-package-card__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: start;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(10, 35, 48, 0.08);
}

.hbxl-package-card__badge-slot {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: 2rem;
}

.hbxl-package-card__badge {
	display: inline-flex;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(34, 152, 214, 0.1);
	color: var(--color-content-primary, #2298d6);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.hbxl-package-card__title {
	margin: 0;
}

.hbxl-package-card__description {
	margin-bottom: 1.25rem;
	color: var(--color-content-text, #6d7c84);
	line-height: 1.7;
	flex: 1 1 auto;
}

.hbxl-package-card__description > :last-child {
	margin-bottom: 0;
}

.hbxl-package-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(10, 35, 48, 0.08);
}

.hbxl-package-card__action {
	font-weight: 600;
	text-decoration: none;
}

.hbxl-package-card__action:hover {
	text-decoration: underline;
}

.hbxl-package-card__plans {
	display: grid;
	gap: 0;
	margin-top: auto;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(10, 35, 48, 0.08);
}

.hbxl-package-card__pricing {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem 0;
	border-radius: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.hbxl-package-card__pricing + .hbxl-package-card__pricing {
	border-top: 1px solid rgba(10, 35, 48, 0.08);
}

.hbxl-package-card__pricing-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.hbxl-package-card__pricing-label {
	margin: 0;
}

.hbxl-package-card__price {
	margin: 0;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	color: var(--color-content-heading, #0a2330);
}

.hbxl-package-card__pricing-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.hbxl-package-card__pricing-actions .w-btn {
	text-align: center;
	justify-content: center;
	min-width: 10rem;
}

.hbxl-compare-features-popup {
	color: var(--color-content-text, #6d7c84);
	line-height: 1.6;
}

.hbxl-package-popup .w-popup-box {
	max-height: calc(100vh - 2rem);
	border-radius: 1rem;
	box-shadow: 0 24px 60px rgba(10, 35, 48, 0.16);
}

.hbxl-package-popup .w-popup-box-h {
	display: flex;
	flex-direction: column;
	max-height: inherit;
	overflow: hidden;
}

.hbxl-package-popup .w-popup-wrap {
	max-width: 1080px;
	width: min(1080px, calc(100vw - 2rem));
}

.hbxl-package-popup .w-popup-box-title {
	padding: 1.5rem 2rem;
	margin: 0;
	border-bottom: 1px solid rgba(10, 35, 48, 0.08);
	background: var(--color-content-bg, #ffffff);
	color: var(--color-content-heading, #0a2330);
	font-size: 2rem;
	line-height: 1.15;
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.hbxl-package-popup .w-popup-box-content {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 2rem;
	background: var(--color-content-bg, #ffffff);
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.hbxl-package-popup .w-popup-closer {
	color: var(--color-content-heading, #0a2330);
}

.hbxl-compare-features-table-wrap,
.hbxl-system-requirements-table-wrap {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

.hbxl-compare-features-table {
	display: table;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.hbxl-system-requirements-table {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
}

.hbxl-compare-features-table th,
.hbxl-compare-features-table td {
	width: auto;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid rgba(10, 35, 48, 0.08);
	text-align: center;
	vertical-align: middle;
}

.hbxl-compare-features-table th:first-child,
.hbxl-compare-features-table td:first-child {
	width: 34%;
}

.hbxl-compare-features-table thead th {
	position: sticky;
	top: 0;
	background: var(--color-content-bg, #ffffff);
	z-index: 1;
	color: var(--color-content-heading, #0a2330);
}

.hbxl-compare-features-table tbody th {
	text-align: left;
	font-weight: 600;
	color: var(--color-content-heading, #0a2330);
	background: var(--color-content-bg, #ffffff);
}

.hbxl-system-requirements-table th,
.hbxl-system-requirements-table td {
	width: 50%;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid rgba(10, 35, 48, 0.08);
	vertical-align: top;
	white-space: normal;
}

.hbxl-system-requirements-table thead th {
	color: var(--color-content-heading, #0a2330);
}

.hbxl-compare-features-table__cell .fas {
	color: var(--color-content-primary, #2298d6);
	font-size: 1.05rem;
}

@media (max-width: 767px) {
	.hbxl-package-card {
		padding: 1.5rem;
	}

	.hbxl-package-card__pricing-header {
		flex-direction: column;
	}

	.hbxl-package-card__header {
		grid-template-columns: 1fr;
	}

	.hbxl-package-card__badge-slot {
		justify-content: flex-start;
		min-height: 0;
	}

	.hbxl-package-card__price {
		white-space: normal;
	}

	.hbxl-package-card__pricing-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hbxl-package-card__pricing-actions .w-btn {
		width: 100%;
		min-width: 0;
	}

	.hbxl-package-card__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.hbxl-package-popup .w-popup-wrap {
		width: calc(100vw - 1rem);
	}

	.hbxl-package-popup .w-popup-box {
		max-height: calc(100vh - 1rem);
	}

	.hbxl-package-popup .w-popup-box-h {
		max-height: inherit;
	}

	.hbxl-package-popup .w-popup-box-title {
		padding: 1.25rem 1.25rem 1rem;
		font-size: 1.5rem;
	}

	.hbxl-package-popup .w-popup-box-content {
		padding: 1.25rem;
	}

	.hbxl-compare-features-table {
		min-width: 720px;
	}

	.hbxl-system-requirements-table {
		min-width: 560px;
	}
}