/* NutriHealth product-page information redesign. All selectors are scoped so
 * Flatsome's generic button, panel, tab, and line-height rules cannot leak in. */

.nh-product-gallery-grid {
	display: none;
}

.nh-pdp-v2 {
	box-sizing: border-box;
	margin-top: 38px;
	margin-bottom: 8px;
}

.nh-pdp-v2 *,
.nh-pdp-v2 *::before,
.nh-pdp-v2 *::after {
	box-sizing: border-box;
}

.nh-pdp-v2__card {
	overflow: hidden;
	border: 1px solid #e2e5e9;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.nh-pdp-v2__header {
	padding: 17px 22px;
	border-bottom: 1px solid #eceef1;
	background: #f8f9fa;
}

.nh-pdp-v2__header h2 {
	margin: 0;
	color: #202124;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
}

.nh-pdp-v2__columns {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 0 48px;
	padding: 26px 28px 20px;
}

.nh-pdp-v2__columns--single {
	grid-template-columns: minmax(0, 1fr);
}

.nh-pdp-v2__column {
	min-width: 0;
}

.nh-pdp-v2__section {
	margin: 0 0 25px;
	padding: 0;
	border: 0;
	background: transparent;
}

.nh-pdp-v2__section:last-child {
	margin-bottom: 0;
}

.nh-pdp-v2__section > .nh-pdp-v2__summary {
	display: none;
}

.nh-pdp-v2__section-content {
	display: block;
	color: #30343a;
	font-size: 14px;
	line-height: 1.68;
}

.nh-pdp-v2__desktop-heading {
	margin: 0 0 10px;
	color: #22262b;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
}

.nh-pdp-v2__copy > :first-child {
	margin-top: 0;
}

.nh-pdp-v2__copy > :last-child {
	margin-bottom: 0;
}

.nh-pdp-v2__copy p {
	margin-bottom: 12px;
}

.nh-pdp-v2__list {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: disc outside;
}

.nh-pdp-v2__list li {
	margin: 0 0 5px;
	padding: 0;
	line-height: 1.55;
}

.nh-pdp-v2__list li:last-child {
	margin-bottom: 0;
}

.nh-pdp-v2__specs {
	margin: 0;
	border-top: 1px solid #dfe3e7;
}

.nh-pdp-v2__spec-row {
	display: grid;
	grid-template-columns: minmax(118px, 42%) minmax(0, 58%);
	margin: 0;
	border-bottom: 1px solid #dfe3e7;
	background: #fff;
}

.nh-pdp-v2__spec-row:nth-child(odd) {
	background: #f7f8f9;
}

.nh-pdp-v2__spec-row dt,
.nh-pdp-v2__spec-row dd {
	min-width: 0;
	margin: 0;
	padding: 8px 10px;
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.nh-pdp-v2__spec-row dt {
	color: #34383d;
	font-weight: 650;
}

.nh-pdp-v2__spec-row dd {
	color: #4b5057;
}

.nh-pdp-v2__spec-row--wide {
	display: block;
}

.nh-pdp-v2__sources {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nh-pdp-v2__sources li {
	margin: 0;
	padding: 0;
}

.nh-pdp-v2__sources a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 32px;
	padding: 6px 10px;
	border: 1px solid #dfe3e7;
	border-radius: 8px;
	background: #fff;
	color: #166534;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.nh-pdp-v2__sources a:hover,
.nh-pdp-v2__sources a:focus-visible {
	border-color: #149447;
	color: #087a3a;
}

.nh-pdp-v2__sources i {
	margin: 0;
	font-size: 14px;
	line-height: 1;
}

.nh-pdp-v2__faq-section {
	padding: 0 28px 26px;
}

.nh-pdp-v2__faq-section > .nh-pdp-v2__section {
	padding-top: 23px;
	border-top: 1px solid #e4e7ea;
}

.nh-pdp-v2__faq-list {
	border-top: 1px solid #e2e5e9;
}

.nh-pdp-v2__faq-item {
	margin: 0;
	border-bottom: 1px solid #e2e5e9;
}

.nh-pdp-v2__faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
	margin: 0;
	padding: 12px 2px;
	color: #25292e;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.45;
	list-style: none;
	cursor: pointer;
}

.nh-pdp-v2__faq-item > summary::-webkit-details-marker,
.nh-pdp-v2__summary::-webkit-details-marker {
	display: none;
}

.nh-pdp-v2__faq-item > summary::marker,
.nh-pdp-v2__summary::marker {
	content: '';
}

.nh-pdp-v2__faq-item > summary i {
	flex: 0 0 auto;
	margin: 0;
	font-size: 20px;
	line-height: 1;
	transition: transform 180ms ease;
}

.nh-pdp-v2__faq-item[open] > summary i {
	transform: rotate(180deg);
}

.nh-pdp-v2__faq-answer {
	padding: 0 28px 16px 2px;
	color: #4a5057;
	font-size: 14px;
	line-height: 1.65;
}

.nh-pdp-v2__faq-answer > :last-child {
	margin-bottom: 0;
}

@media (min-width: 850px) {
	.single-product .nh-product-page-v2 .product-main,
	.single-product .nh-product-page-v2 .product-main .content-row {
		overflow: visible;
	}

	.single-product .nh-product-page-v2 .product-gallery {
		position: sticky;
		top: calc(var(--product-pricing-sticky-header-offset, 0px) + 18px);
		align-self: flex-start;
	}

	.single-product .nh-product-page-v2 .product-gallery > .product-images,
	.single-product .nh-product-page-v2 .product-gallery > .nh-product-thumbnails {
		display: none !important;
	}

	.single-product .nh-product-page-v2 .nh-product-gallery-grid {
		display: grid;
                  grid-template-columns: repeat(auto-fill, 80px);
		gap: 12px;
		width: 100%;
                  justify-content: start;
	}

	.single-product .nh-product-page-v2 .nh-product-gallery-grid--single {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-product .nh-product-page-v2 .nh-product-gallery-grid__item.is-featured {
		grid-column: 1 / -1;
	}

	.single-product .nh-product-page-v2 .nh-product-gallery-grid__item {
		position: relative;
		min-width: 0;
		overflow: hidden;
		border: 1px solid #e7e9ec;
		border-radius: 12px;
		background: #fafafa;
	}

        .single-product .nh-product-page-v2 .nh-product-gallery-grid__item:not(.is-featured) { width: 80px; height: 80px; }
	.single-product .nh-product-page-v2 .nh-product-gallery-grid__item .woocommerce-product-gallery__image,
	.single-product .nh-product-page-v2 .nh-product-gallery-grid__item > span {
		position: relative !important;
		left: auto !important;
		width: 100% !important;
		margin: 0 !important;
		transform: none !important;
	}

	.single-product .nh-product-page-v2 .nh-product-gallery-grid__item a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		aspect-ratio: 1 / 1;
		padding: 8px;
		background: #fafafa;
	}

	.single-product .nh-product-page-v2 .nh-product-gallery-grid__item .woocommerce-product-gallery__image > a > img {
		display: block;
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: contain;
	}

	.single-product .nh-product-page-v2 .product-info.product-info-smart-sticky-active {
		position: relative !important;
		top: auto !important;
		bottom: auto !important;
		left: auto !important;
		right: auto !important;
		z-index: auto !important;
	}

	.single-product .nh-product-page-v2 .product-info-smart-sticky-placeholder {
		display: none !important;
	}
}

@media (max-width: 849px) {
	.nh-pdp-v2 {
		margin-top: 18px;
		margin-bottom: 0;
		padding-right: 15px;
		padding-left: 15px;
	}

	.nh-pdp-v2__card {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.nh-pdp-v2__header {
		padding: 16px 8px 12px;
		background: #fff;
	}

	.nh-pdp-v2__header h2 {
		font-size: 18px;
	}

	.nh-pdp-v2__columns {
		display: block;
		padding: 0 8px;
	}

	.nh-pdp-v2__column {
		display: contents;
	}

	.nh-pdp-v2__section {
		margin: 0;
		border-bottom: 1px solid #e5e7eb;
	}

	.nh-pdp-v2__section > .nh-pdp-v2__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 57px;
		margin: 0 !important;
		padding: 15px 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		color: #303236;
		font-size: 16px;
		font-weight: 650;
		letter-spacing: 0;
		line-height: 1.35 !important;
		list-style: none;
		text-transform: none;
		cursor: pointer;
	}

	.nh-pdp-v2__summary i {
		flex: 0 0 auto;
		margin: 0 !important;
		font-size: 21px;
		line-height: 1 !important;
		transition: transform 180ms ease;
	}

	.nh-pdp-v2__section[open] > .nh-pdp-v2__summary i {
		transform: rotate(180deg);
	}

	.nh-pdp-v2__section-content {
		padding: 0 0 18px;
		font-size: 14px;
		line-height: 1.65;
	}

	.nh-pdp-v2__desktop-heading {
		display: none;
	}

	.nh-pdp-v2__spec-row {
		grid-template-columns: minmax(105px, 40%) minmax(0, 60%);
	}

	.nh-pdp-v2__spec-row dt,
	.nh-pdp-v2__spec-row dd {
		padding: 8px;
		font-size: 12px;
	}

	.nh-pdp-v2__sources {
		display: block;
	}

	.nh-pdp-v2__sources li + li {
		margin-top: 7px;
	}

	.nh-pdp-v2__sources a {
		justify-content: space-between;
		width: 100%;
	}

	.nh-pdp-v2__faq-section {
		padding: 0 8px;
	}

	.nh-pdp-v2__faq-section > .nh-pdp-v2__section {
		padding-top: 0;
		border-top: 0;
	}

	.nh-pdp-v2__faq-list {
		margin-top: -2px;
	}

	.nh-pdp-v2__faq-item > summary {
		min-height: 48px;
		padding: 11px 2px;
		font-size: 14px;
	}

	.nh-pdp-v2__faq-answer {
		padding: 0 22px 14px 2px;
		font-size: 13px;
	}
}
