.tepm-builder-placeholder {
	padding: 18px;
	border: 1px dashed currentColor;
	text-align: center;
	opacity: .75;
}

.tepm-module-heading {
	margin: 0 0 1em;
}

.tepm-spec-list {
	display: grid;
	gap: var(--tepm-row-gap, 10px);
}

.tepm-spec-row {
	display: grid;
	grid-template-columns: minmax(0, var(--tepm-label-width, 180px)) minmax(0, 1fr);
	column-gap: var(--tepm-column-gap, 24px);
	align-items: start;
}

.tepm-layout-stacked .tepm-spec-row {
	grid-template-columns: 1fr;
}

.tepm-spec-label {
	font-weight: 700;
}

.tepm-spec-value > :first-child,
.tepm-purchase-note > :first-child {
	margin-top: 0;
}

.tepm-spec-value > :last-child,
.tepm-purchase-note > :last-child {
	margin-bottom: 0;
}

.tepm-purchase-grid {
	display: grid;
	grid-template-columns: repeat(var(--tepm-columns, 1), minmax(0, 1fr));
	gap: var(--tepm-card-gap, 20px);
}

.tepm-purchase-option {
	min-width: 0;
	padding: var(--tepm-card-padding, 0);
}

.tepm-purchase-price {
	font-weight: 700;
	margin-bottom: 12px;
}

.tepm-purchase-button-wrap {
	margin-bottom: 12px;
}

.tepm-purchase-button-wrap:last-child,
.tepm-purchase-notes:empty {
	margin-bottom: 0;
}

.tepm-purchase-button.et_pb_button,
.tepm-purchase-button.et_pb_button:hover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 40px !important;
	background-color: #e9ad61 !important;
	border: 2px solid #e9ad61 !important;
	border-radius: 3px !important;
	color: #2d4c7a !important;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.25 !important;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	transition: filter .18s ease, transform .18s ease;
}

.tepm-purchase-button.et_pb_button::after,
.tepm-purchase-button.et_pb_button::before {
	display: none !important;
}

.tepm-purchase-button.et_pb_button:hover {
	filter: brightness(.96);
	transform: translateY(-1px);
}

.tepm-purchase-button.et_pb_button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.tepm-button-fullwidth .tepm-purchase-button.et_pb_button {
	display: flex;
	width: 100%;
}

/* Product image slider. */
.tepm-product-gallery-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tepm-gallery-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
	cursor: grab;
	outline: none;
}

.tepm-gallery-viewport:active {
	cursor: grabbing;
}

.tepm-gallery-viewport:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 4px;
}

.tepm-gallery-track {
	display: flex;
	align-items: stretch;
	width: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform .32s ease;
	will-change: transform;
}

.tepm-gallery-track.is-dragging {
	transition: none;
}

.tepm-gallery-slide {
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.tepm-gallery-main-link {
	display: block;
	width: 100%;
	text-align: center;
}

.tepm-gallery-main-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	user-select: none;
	-webkit-user-drag: none;
}

.tepm-fit-contain .tepm-gallery-main-image,
.tepm-fit-cover .tepm-gallery-main-image {
	height: var(--tepm-gallery-height, 520px);
}

.tepm-fit-contain .tepm-gallery-main-image {
	object-fit: contain;
}

.tepm-fit-cover .tepm-gallery-main-image {
	object-fit: cover;
}

.tepm-fit-natural .tepm-gallery-main-image {
	max-height: var(--tepm-gallery-height, 520px);
	object-fit: contain;
}

.tepm-gallery-caption {
	width: 100%;
	margin-top: 10px;
	text-align: center;
}

.tepm-gallery-controls {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
}

.tepm-gallery-thumbs {
	display: flex;
	gap: var(--tepm-gallery-gap, 12px);
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 3px;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.tepm-gallery-thumbs::-webkit-scrollbar {
	display: none;
}

.tepm-gallery-thumb {
	position: relative;
	flex: 0 0 calc((100% - (var(--tepm-gallery-gap, 12px) * (var(--tepm-thumbnails-visible, 4) - 1))) / var(--tepm-thumbnails-visible, 4));
	aspect-ratio: 1 / 1;
	min-width: 58px;
	padding: 3px;
	overflow: hidden;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	scroll-snap-align: start;
}

.tepm-gallery-thumb:hover,
.tepm-gallery-thumb.is-active {
	border-color: currentColor;
}

.tepm-gallery-thumb:focus-visible,
.tepm-gallery-arrow:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.tepm-gallery-thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.tepm-gallery-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 8px;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 3px;
	color: inherit;
	cursor: pointer;
}

.tepm-gallery-arrow:hover {
	background: rgba(0, 0, 0, .06);
}

.tepm-gallery-arrow svg {
	display: block;
	width: 24px;
	height: 24px;
}

@media (max-width: 980px) {
	.tepm-fit-contain .tepm-gallery-main-image,
	.tepm-fit-cover .tepm-gallery-main-image {
		height: min(var(--tepm-gallery-height, 520px), 60vw);
	}
}

@media (max-width: 767px) {
	.tepm-spec-row,
	.tepm-purchase-grid {
		grid-template-columns: 1fr;
	}

	.tepm-spec-label {
		margin-bottom: .25em;
	}

	.tepm-purchase-button.et_pb_button,
	.tepm-purchase-button.et_pb_button:hover {
		width: 100%;
		padding-right: 24px !important;
		padding-left: 24px !important;
	}

	.tepm-gallery-controls {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 6px;
	}

	.tepm-gallery-thumb {
		flex-basis: 72px;
	}

	.tepm-fit-contain .tepm-gallery-main-image,
	.tepm-fit-cover .tepm-gallery-main-image {
		height: min(var(--tepm-gallery-height, 520px), 80vw);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tepm-gallery-track,
	.tepm-gallery-thumbs,
	.tepm-purchase-button.et_pb_button {
		scroll-behavior: auto;
		transition: none;
	}
}

/* Native Divi 5 Visual Builder preview helpers. */
.tepm-vb-preview-note {
	margin: 0 0 14px;
	padding: 9px 12px;
	border: 1px dashed currentColor;
	font-size: 12px;
	line-height: 1.4;
	opacity: .7;
}

.tepm-vb-preview-card {
	border: 1px solid rgba(0, 0, 0, .15);
}

.tepm-vb-slider-main {
	display: grid;
	place-items: center;
	min-height: 260px;
	padding: 20px;
	background: rgba(0, 0, 0, .05);
	border: 1px dashed rgba(0, 0, 0, .25);
	text-align: center;
}

.tepm-vb-slider-controls {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.tepm-vb-slider-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.tepm-vb-slider-thumb {
	aspect-ratio: 1 / 1;
	background: rgba(0, 0, 0, .08);
	border: 2px solid transparent;
}

.tepm-vb-slider-thumb.is-active {
	border-color: currentColor;
}

/* Full description / more details tabs. */
.tepm-product-tabs {
	width: 100%;
	max-width: 100%;
}

.tepm-product-tab-list {
	display: none;
	align-items: stretch;
	gap: 0;
	width: 100%;
	border-bottom: 1px solid currentColor;
}

.tepm-tabs-enhanced .tepm-product-tab-list,
.tepm-vb-preview .tepm-product-tab-list {
	display: flex;
}

.tepm-product-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 48px;
	padding: 12px 24px;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	color: inherit;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}

.tepm-product-tab:hover {
	background: rgba(0, 0, 0, .045);
}

.tepm-product-tab.is-active {
	border-bottom-color: currentColor;
}

.tepm-product-tab:focus-visible {
	z-index: 1;
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.tepm-product-tab-panel {
	width: 100%;
	padding: 28px 0 0;
}

.tepm-tabs-enhanced .tepm-product-tab-panel[hidden],
.tepm-tabs-enhanced .tepm-product-tab-panel:not(.is-active) {
	display: none !important;
}

.tepm-product-description {
	width: 100%;
}

.tepm-description-section + .tepm-description-section {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid rgba(0, 0, 0, .12);
}

.tepm-product-description > :first-child,
.tepm-description-section > :first-child {
	margin-top: 0;
}

.tepm-product-description > :last-child,
.tepm-description-section > :last-child {
	margin-bottom: 0;
}

.tepm-product-description img {
	max-width: 100%;
	height: auto;
}

.tepm-product-description table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 767px) {
	.tepm-tabs-enhanced .tepm-product-tab-list,
	.tepm-vb-preview .tepm-product-tab-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tepm-product-tab {
		width: 100%;
		padding: 12px 10px;
	}

	.tepm-product-tab-panel {
		padding-top: 22px;
	}

	.tepm-description-section + .tepm-description-section {
		margin-top: 24px;
		padding-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tepm-product-tab {
		transition: none;
	}
}
