/* assets/component-product-prehab-bundle.min.css */

.c-product-prehab-bundle {
	background: var(--neutral-light);
	display: grid;
	gap: 1rem;
	margin-top: 0.75rem;
	padding: 1.25rem 1rem 1rem;
	margin-top: -0.5rem;
}

/* Heading */

.c-product-prehab-bundle__heading {
	color: var(--text);
	font-family: var(--font-display);
	font-size: var(--font-responsive-heading-sm);
	font-weight: 900;
	line-height: 1;
}

.c-product-prehab-bundle__heading strong {
	color: var(--blue-base);
	font-family: inherit;
	font-weight: inherit;
}

/* Gift Boxes */

.c-product-prehab-bundle__items {
	display: grid;
}

.c-product-prehab-bundle__entry {
	position: relative;
}

.c-product-prehab-bundle__item {
	align-items: center;
	background: transparent;
	border: 0;
	border-bottom: 0.0625rem solid var(--neutral-border);
	color: var(--text);
	cursor: default;
	display: grid;
	font: inherit;
	gap: 1rem;
	grid-template-columns: 3.5rem minmax(0, 1fr) auto;
	line-height: 1.2;
	padding: 1rem 0.75rem;
	position: relative;
	text-align: left;
	width: 100%;
}

.c-product-prehab-bundle__items > .c-product-prehab-bundle__item:last-child,
.c-product-prehab-bundle__items > .c-product-prehab-bundle__entry:last-child .c-product-prehab-bundle__item {
	border-bottom: 0;
}

button.c-product-prehab-bundle__item {
	cursor: pointer;
}

.c-product-prehab-bundle__item--highlight {
	background: var(--blue-lighter);
	border-bottom: 0;
	border-radius: 0.75rem;
	margin-top: 0.75rem;
}

/* Pill */

.c-product-prehab-bundle__pill {
	align-items: center;
	background: var(--blue-base);
	border-radius: var(--radius-pill);
	color: var(--neutral-white);
	display: inline-flex;
	font-family: var(--font-display);
	font-size: var(--font-static-sm);
	font-weight: 700;
	gap: 0.375rem;
	line-height: 1;
	padding: 0.375rem 0.75rem;
	position: absolute;
	right: 1rem;
	text-transform: uppercase;
	top: 0;
	transform: translateY(-50%);
	z-index: 1;
}

.c-product-prehab-bundle__pill-icon {
	flex-shrink: 0;
	height: 0.875rem;
	width: 0.875rem;
}

/* Image */

.c-product-prehab-bundle__media {
	aspect-ratio: 1 / 1;
	border-radius: 0.5rem;
	display: block;
	overflow: hidden;
}

.c-product-prehab-bundle__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Text */

.c-product-prehab-bundle__body {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.c-product-prehab-bundle__logo {
	display: block;
	height: 1.25rem;
	max-width: 8rem;
	object-fit: contain;
	object-position: left center;
	width: auto;
}

.c-product-prehab-bundle__title {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-family: var(--font-display);
	font-size: var(--font-static-lg);
	font-weight: 700;
	gap: 0.375rem;
}

.c-product-prehab-bundle__info-icon {
	flex-shrink: 0;
	height: 1rem;
	width: 1rem;
}

.c-product-prehab-bundle__text {
	font-family: var(--font-body-light);
	font-size: var(--font-static-sm);
	line-height: 1.4;
}

/* Price */

.c-product-prehab-bundle__price {
	display: grid;
	font-family: var(--font-display);
	font-weight: 700;
	gap: 0.125rem;
	justify-items: end;
	text-align: right;
	white-space: nowrap;
}

.c-product-prehab-bundle__compare {
	color: var(--neutral-base);
	font-size: var(--font-static-md);
}

.c-product-prehab-bundle__free {
	color: var(--blue-base);
	font-size: var(--font-responsive-sm);
	text-transform: uppercase;
}

/* Popover (small box above the gift) */

.c-product-prehab-bundle__popover {
	background: var(--neutral-white);
	border-radius: 0.75rem;
	bottom: calc(100% + 0.5rem);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
	color: var(--text);
	left: 0;
	max-width: 24rem;
	padding: 1.25rem 1.5rem;
	position: absolute;
	right: 0;
	z-index: 20;
}

.c-product-prehab-bundle__popover[hidden] {
	display: none;
}

.c-product-prehab-bundle__popover-image {
	aspect-ratio: 16 / 9;
	border-radius: 0.5rem;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.c-product-prehab-bundle__popover-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.c-product-prehab-bundle__popover-heading {
	font-family: var(--font-display);
	font-size: var(--font-static-lg);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.c-product-prehab-bundle__popover-text {
	font-family: var(--font-body-light);
	font-size: var(--font-static-md);
	line-height: 1.4;
}

.c-product-prehab-bundle__popover-text > :last-child {
	margin-bottom: 0;
}

/* Total Line */

.c-product-prehab-bundle__total {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
	padding-inline: 0.75rem;
}

.c-product-prehab-bundle__total-text {
	font-family: var(--font-body-light);
	font-size: var(--font-static-md);
}

.c-product-prehab-bundle__total-prices {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	font-family: var(--font-display);
	font-weight: 700;
	gap: 0.5rem;
}

.c-product-prehab-bundle__total-compare {
	color: var(--neutral-base);
	font-size: var(--font-static-lg);
}

.c-product-prehab-bundle__total-price {
	color: var(--text);
	font-size: var(--font-static-xxl);
	font-weight: 900;
}

.c-product-prehab-bundle__savings {
	color: var(--blue-base);
	font-size: var(--font-static-lg);
	text-transform: uppercase;
}

/* Larger screens */

@media (min-width: 30em) {
	.c-product-prehab-bundle {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	.c-product-prehab-bundle__item {
		gap: 1.25rem;
		grid-template-columns: 4.25rem minmax(0, 1fr) auto;
		padding: 1rem 1.25rem;
	}

	.c-product-prehab-bundle__title {
		font-size: var(--font-static-xl);
	}

	.c-product-prehab-bundle__text {
		font-size: var(--font-static-md);
	}

	.c-product-prehab-bundle__total {
		padding-inline: 1.25rem;
	}
}

@media (hover: hover) {
	.c-product-prehab-bundle__item[aria-controls]:hover .c-product-prehab-bundle__title {
		text-decoration: underline;
		text-underline-offset: 0.15em;
	}
}