.vilifa-product-details .product-entry-wrapper {
	max-width: 1200px;
}

.vilifa-product-details #main > .ct-container-full[data-vertical-spacing*="top"] {
	padding-block-start: clamp(48px, 6vw, 80px);
}

.vilifa-product-details div.product > .woocommerce-tabs {
	--tab-ink: #3f5549;
	position: relative;
	box-sizing: border-box;
	width: var(--theme-container-width);
	max-width: var(--theme-block-max-width, var(--theme-normal-container-max-width));
	margin-inline: auto;
	margin-block-start: clamp(40px, 5.55vw, 80px);
	padding: clamp(20px, 3.82vw, 55px) clamp(20px, 4.17vw, 60px);
	border: 0;
	border-radius: clamp(18px, 2.1vw, 30px);
	background: #e4f1ea;
	overflow: visible;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs {
	display: inline-flex;
	flex-flow: row wrap;
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin-inline: 0;
	border: 2px solid var(--tab-ink);
	border-radius: 7px;
	overflow: hidden;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs::after {
	content: none;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs > li {
	margin: 0;
	border: 0;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs > li + li {
	border-inline-start: 2px solid var(--tab-ink);
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs > li > a {
	padding: 15px 30px;
	color: var(--tab-ink);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs li.active a {
	background: var(--tab-ink);
	color: #fff;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.vilifa-product-details.woocommerce div.product .woocommerce-tabs > article > .woocommerce-Tabs-panel {
	width: 100%;
	max-width: none;
	min-height: 200px;
	padding-top: 30px;
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.45;
}

.vilifa-product-details :is(.woocommerce-product-details__short-description, #tab-description, #tab-reviews) {
	text-align: start;
}

.vilifa-product-details #tab-description p {
	text-align: start !important; /* Override alignment on imported paragraphs. */
	margin-block-end: 0.65em;
}

.vilifa-product-details .vilifa-additional-details {
	margin-block-start: 1em;
}

.vilifa-product-details .vilifa-additional-details > summary {
	width: fit-content;
	cursor: pointer;
	font-weight: 600;
}

.vilifa-product-details .vilifa-additional-details[open] > summary {
	margin-block-end: 1em;
}

.vilifa-product-details .woocommerce-product-details__short-description table {
	width: 100% !important; /* Imported tables may specify a narrower inline width. */
	table-layout: fixed;
	text-align: start;
	overflow-wrap: anywhere;
}

.vilifa-product-details .woocommerce-product-details__short-description :is(th, td):first-child {
	width: 36%;
}

@media (min-width: 1000px) {
	.vilifa-product-details .product-entry-wrapper {
		align-items: flex-start;
	}

	.vilifa-product-details .thumbs-left {
		--thumbs-width: clamp(100px, 8.33vw, 120px);
		--thumbs-spacing: clamp(15px, 1.75vw, 25px);
	}

	/* Gallery and summary share the row equally; the summary holds the spec table so it needs the room. */
	.vilifa-product-details .product-entry-wrapper {
		--vilifa-column-gap: clamp(40px, 5.55vw, 80px);
	}

	.vilifa-product-details .product-entry-wrapper > .woocommerce-product-gallery,
	.vilifa-product-details .product-entry-wrapper > .entry-summary {
		flex: 0 0 calc(50% - var(--vilifa-column-gap) / 2);
		width: calc(50% - var(--vilifa-column-gap) / 2);
		min-width: 0;
	}

	.vilifa-product-details .entry-summary {
		margin-inline-start: var(--vilifa-column-gap);
	}

	.vilifa-product-details div.product > .woocommerce-tabs::before {
		content: "";
		position: absolute;
		inset-block-start: clamp(-68px, -4.5vw, -55px);
		inset-inline-end: max(-5%, -4vw);
		width: min(60%, 709px, calc(100% - 500px));
		aspect-ratio: 709 / 216;
		background-color: #7DA993;
		background-color: color-mix(in srgb, var(--theme-palette-color-1) 50%, var(--theme-palette-color-6));
		mask: url("./product-vine.svg") center / contain no-repeat;
		pointer-events: none;
	}
}

@media (max-width: 600px) {
	.vilifa-product-details .woocommerce-product-details__short-description table :is(th, td) {
		padding: 10px clamp(8px, 2.5vw, 12px);
	}

	.vilifa-product-details .woocommerce-product-details__short-description :is(th, td):first-child {
		width: 40%;
	}

	.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs > li + li {
		border-inline-start: 0;
		border-block-start: 2px solid var(--tab-ink);
	}

	.vilifa-product-details.woocommerce div.product .woocommerce-tabs > .tabs > li > a {
		padding: 10px 14px;
	}
}

.vilifa-product-details :is(.woocommerce-product-details__short-description, .woocommerce-Tabs-panel) [style*="font-family"] {
	font-family: inherit !important;
}
