/* Snow Mate Viewer — layout inherits theme typography/colors where possible */
body{
	background-color: white !important;
}
.smv-viewer-wrap {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 60px 20px;
	box-sizing: border-box;
}
.smv-viewer-wrap *{
	font-family: "Inter", ui-sans-serif;
}
.smv-viewer-wrap .smv-page-title{
    font-family: "Inter", ui-sans-serif;
    color: black;
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 20px;
    text-align: center;
}

.smv-viewer-main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%	;
}

.smv-page-header {
	margin-bottom: 16px;
}

.smv-page-intro {
	margin-bottom: 24px;
}

/* Sheets */
.smv-sheets {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.smv-sheet {
	position: relative;
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.smv-sheet svg {
	display: block;
	width: 100%;
	height: auto;
}

/* SVG hotspots */
.smv-hotspot {
	cursor: pointer;
	outline: none;
}

/*
 * Parts 1 & 2: the original trace remains invisible and keeps its generous
 * hit area.  A separate visual copy gives the part a clean, fitted hover fill
 * without exposing the oversized transparent stroke used for clicking.
 */
.smv-sheet[data-sheet="2"] .smv-hotspot-visual,
.smv-sheet[data-sheet="3"] .smv-hotspot-visual {
	opacity: 0;
	fill: #FF871E;
	fill-opacity: 0.35;
	stroke: #FF871E;
	stroke-opacity: 0.78;
	stroke-width: 1.35px;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
	mix-blend-mode: multiply;
	transition: opacity 90ms ease-out;
}

.smv-sheet[data-sheet="2"] .smv-hotspot-visual rect,
.smv-sheet[data-sheet="3"] .smv-hotspot-visual rect {
	stroke: none;
}

.smv-sheet[data-sheet="2"] .smv-hotspot.is-active .smv-hotspot-visual,
.smv-sheet[data-sheet="3"] .smv-hotspot.is-active .smv-hotspot-visual,
.smv-sheet[data-sheet="2"] .smv-hotspot:focus .smv-hotspot-visual,
.smv-sheet[data-sheet="3"] .smv-hotspot:focus .smv-hotspot-visual {
	opacity: 1;
}

/* Keep the clickable trace effectively invisible but available to pointer hit testing. */
.smv-sheet[data-sheet="2"] .smv-hotspot-hit,
.smv-sheet[data-sheet="3"] .smv-hotspot-hit {
	opacity: 0.001;
}

/*
 * Knuckle Assembly: use the same separate hit-target + visual-overlay pattern
 * as Parts 1 & 2. This makes the green state cover the complete traced part
 * while keeping the clickable geometry invisible.
 */
.smv-knuckle-sheet .smv-hotspot-visual,
.smv-pdf-sheet .smv-hotspot-visual {
	opacity: 0;
	fill: #FF871E;
	fill-opacity: 0.35;
	stroke: #FF871E;
	stroke-opacity: 0.9;
	stroke-width: 1.4px;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
	mix-blend-mode: multiply;
	transition: opacity 90ms ease-out;
}

.smv-knuckle-sheet .smv-hotspot.is-active .smv-hotspot-visual,
.smv-knuckle-sheet .smv-hotspot:focus .smv-hotspot-visual,
.smv-pdf-sheet .smv-hotspot.is-active .smv-hotspot-visual,
.smv-pdf-sheet .smv-hotspot:focus .smv-hotspot-visual {
	opacity: 1;
}

/* Only normal Knuckle hit groups may receive pointer input. The original
 * broad helper polygons are retained in the SVG for fallback/reference, but
 * once a precision mask is installed they must stay completely inert. */
.smv-knuckle-sheet .smv-hotspot-hit:not(.smv-hotspot-hit--legacy) {
	opacity: 0.001;
	pointer-events: all;
}

/* Important: this rule intentionally outranks the generic hit-target rule.
 * Without it the legacy helper polygons become clickable again and cause
 * hover activation outside the real part silhouette. */
.smv-knuckle-sheet .smv-hotspot-hit--legacy {
	opacity: 0 !important;
	pointer-events: none !important;
}

.smv-knuckle-sheet .smv-knuckle-precision-hit {
	opacity: 0.001;
	pointer-events: visiblePainted;
}

.smv-knuckle-sheet .smv-knuckle-precision-hit path,
.smv-knuckle-sheet .smv-knuckle-precision-hit polygon,
.smv-knuckle-sheet .smv-knuckle-precision-hit rect,
.smv-knuckle-sheet .smv-knuckle-precision-hit circle,
.smv-knuckle-sheet .smv-knuckle-precision-hit ellipse {
	fill: #000;
	fill-opacity: 1;
	stroke: none;
	pointer-events: visiblePainted;
}

/* Precision Knuckle masks are already traced to the actual part edges.
 * Do not add another SVG stroke around them, because that would extend the
 * orange state outside the physical part outline. */
.smv-knuckle-sheet .smv-hotspot-visual--precision,
.smv-pdf-sheet .smv-hotspot-visual--precision {
	stroke: none;
	stroke-width: 0;
}

/* Knuckle-only polish: keep the orange translucent but composite normally so
 * black threaded shafts / dark hardware are visibly highlighted too. */
.smv-knuckle-sheet .smv-hotspot-visual {
	fill-opacity: 0.55;
	mix-blend-mode: normal;
	shape-rendering: geometricPrecision;
}
.smv-knuckle-sheet .smv-hotspot-visual--precision {
	stroke: none;
	filter: none;
}

/* PDF-derived templates: each hotspot uses the exact same alpha mask for
 * hit testing and the visible green state, so the hover cannot extend beyond
 * the traced part silhouette. */
.smv-pdf-sheet .smv-hotspot-hit-image {
	opacity: 0.001;
	pointer-events: visiblePainted;
}

.smv-pdf-sheet .smv-hotspot-visual {
	stroke: none;
	filter: none;
}

/* Sidebar */
.smv-viewer-sidebar {
	flex: 0 0 320px;
	width: 320px;
	position: sticky;
    top: 50px;
    margin-top: 58px;
}

.smv-cart-sticky {
	position: sticky;
	top: 24px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: #fff;
	padding: 18px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
}

.smv-cart-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px;
	font-size: 1.1rem;
    color: black;
}

.smv-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #FF871E;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
}

.smv-cart-body {
	overflow-y: auto;
	flex: 1 1 auto;
}

.smv-cart-empty {
	color: #666;
	font-size: 0.9rem;
	margin: 8px 0 4px;
}

.smv-cart-items {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.smv-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.smv-ci-thumb img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.smv-ci-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.smv-ci-name {
	font-size: 0.85rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.smv-ci-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 5px;
}

.smv-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
}

.smv-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px !important;
	height: 25px !important;
	min-width: 25px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #f7f7f7 !important;
	color: #222 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.smv-qty-btn:hover {
	background: #ededed !important;
}

.smv-qty-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.smv-qty-input {
	width: 30px !important;
	height: 25px !important;
	min-height: 25px !important;
	margin: 0 !important;
	padding: 0 2px !important;
	border: 0 !important;
	border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
	border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #222 !important;
	font-size: 12px !important;
	line-height: 25px !important;
	text-align: center;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.smv-qty-input::-webkit-outer-spin-button,
.smv-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.smv-ci-price {
	flex: 0 0 auto;
	color: #555;
	font-size: 0.78rem;
	white-space: nowrap;
}

.smv-ci-remove {
	    flex: 0 0 auto;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: transparent;
    color: #b00 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

.smv-ci-remove:hover {
	background: rgba(176, 0, 0, 0.08) !important;
}

.smv-cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 0.95rem;
}

.smv-checkout-btn {
	display: block;
    text-align: center;
    border-radius: 3px;
    color: #fff !important;
    transition: background 0.15s ease;
    background-color: #FF871E;
    font-family: "Hanken Grotesk", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    fill: #FFFFFF;
    color: #FFFFFF;
    border: 1px solid #FF871E;
    padding: 15px 10px 15px 10px;
    line-height: 1;
}

.smv-checkout-btn:hover {
	background: #fff;
	color: #FF871E !important;
	border-color: #FF871E;
}

/* Floating "click to add to cart" tooltip that tracks the cursor */
.smv-tooltip {
	position: fixed;
	z-index: 9999;
	pointer-events: none;
	background: #111;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	padding: 6px 9px;
	border-radius: 6px;
	max-width: 240px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
}

.smv-tooltip.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.smv-tooltip .smv-tt-cta {
	display: block;
	font-weight: 700;
	color: #FF871E;
}

.smv-tooltip .smv-tt-name {
	display: block;
	opacity: 0.9;
}

.smv-tooltip.is-mobile-preview {
	pointer-events: auto;
    min-width: 190px;
    padding: 10px;
    left: 20px !important;
    right: 20px !important;
    bottom: 20px !important;
    top: auto !important;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
}

.smv-tooltip .smv-tt-add {
	display: block;
	width: 100%;
	margin-top: 9px;
	border: 1px solid #FF871E;
	border-radius: 4px;
	background: #FF871E;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	padding: 9px 12px;
	cursor: pointer;
	touch-action: manipulation;
}

.smv-tooltip .smv-tt-add:active {
	transform: translateY(1px);
}

.smv-tooltip .smv-tt-add:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Add-to-cart confirmation toast */
.smv-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 10000;
	background: #FF871E;
	color: #fff;
	padding: 12px 16px;
	border-radius: 3px;
	font-size: 0.9rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.smv-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.smv-toast.is-error {
	background: #b00;
}

/* Busy state on a hotspot while its AJAX request is in flight */
.smv-sheet.is-busy {
	cursor: progress;
}

@media (max-width: 900px) {
	.smv-viewer-wrap {
		flex-direction: column;
	}

	.smv-viewer-sidebar {
		flex-basis: auto;
		width: 100%;
		position: initial !important;
		margin-top: 0;
	}

	.smv-cart-sticky {
		position: static;
		max-height: none;
	}
	.smv-viewer-wrap .smv-page-title{
		font-size: 1.75rem;
	}
}

/* Assembly templates: vector exploded view on top, BOM table below. */
.smv-knuckle-sheet,
.smv-pdf-sheet {
	padding: 12px;
}

.smv-knuckle-sheet svg,
.smv-pdf-sheet svg {
	display: block;
	width: 100%;
	max-width: 1100px;
	height: auto;
	max-height: none;
	margin: 0 auto;
	overflow: hidden;
}

.smv-knuckle-parts-section,
.smv-parts-section {
	margin-top: 28px;
}

.smv-knuckle-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	margin-bottom:0;
}

.smv-knuckle-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	border-spacing: 0;
	background: #fff;
	color: #111;
	font-size: 14px;
	margin-bottom:0;
}

.smv-knuckle-table th,
.smv-knuckle-table td {
	padding: 12px 14px;
	border-right: 1px solid rgba(0, 0, 0, 0.12);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	vertical-align: middle;
	text-align: left;
}

.smv-knuckle-table th:last-child,
.smv-knuckle-table td:last-child {
	border-right: 0;
	text-align: center;
}

.smv-knuckle-table thead th {
	background: #f5f5f5;
	font-weight: 700;
	white-space: nowrap;
}

.smv-knuckle-table tbody tr:last-child td {
	border-bottom: 0;
}

.smv-knuckle-table tbody td {
	transition: background-color .12s ease;
}

.smv-knuckle-table tbody tr:hover td,
.smv-knuckle-table tbody tr.is-active td,
.smv-knuckle-table tbody tr:focus td {
	background: rgba(255, 135, 30, 0.16);
}

.smv-knuckle-part-row {
	cursor: pointer;
	outline: none;
}

.smv-knuckle-part-row:focus-visible {
	outline: 2px solid #FF871E;
	outline-offset: -2px;
}

.smv-knuckle-table th:first-child,
.smv-knuckle-table td:first-child {
	width: 86px;
	text-align: center;
}

.smv-knuckle-table th:nth-child(2),
.smv-knuckle-table td:nth-child(2) {
	width: 160px;
	white-space: nowrap;
}

.smv-knuckle-table th:last-child,
.smv-knuckle-table td:last-child {
	width: 170px;
}

@media (max-width: 767px) {
	.smv-knuckle-sheet,
	.smv-pdf-sheet {
		padding: 6px;
	}

	.smv-knuckle-parts-section,
	.smv-parts-section {
		margin-top: 20px;
	}
}

/* Product details popup shown when a part is clicked/tapped */
body.smv-modal-open {
	overflow: hidden;
}

.smv-product-modal,
.smv-product-modal * {
	box-sizing: border-box;
}

.smv-product-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
	font-family: "Hanken Grotesk", "Inter", Arial, sans-serif;
}

.smv-product-modal.is-open {
	display: flex;
}

.smv-product-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 7, 8, 0.84);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.smv-product-modal__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
	gap: 0;
	width: min(940px, 100%);
	max-height: calc(100vh - 56px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 14px;
	background: #121212;
	color: #fff;
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.smv-product-modal__panel.has-no-image {
	grid-template-columns: minmax(0, 1fr);
	width: min(620px, 100%);
}

.smv-product-modal__close {
	position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 0 3px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 6px !important;
    background: rgba(18, 18, 18, 0.86) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 10px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

.smv-product-modal__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 430px;
	padding: 42px;
	background: #f4f4f2;
	overflow: hidden;
}

.smv-product-modal__media::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 74px;
	height: 6px;
	background: #F26522;
}

.smv-product-modal__media-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 320px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.smv-product-modal__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 330px;
	object-fit: contain;
}

.smv-product-modal__image[hidden],
.smv-product-modal__model[hidden],
.smv-product-modal__model-loading[hidden] {
	display: none !important;
}

.smv-product-modal__model {
	position: relative;
	width: 100%;
	min-width: 0;
	height: 330px;
	min-height: 280px;
	overflow: hidden;
	border-radius: 6px;
	background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f6f6f4 72%, #eeeeeb 100%);
}

.smv-product-modal__model-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.smv-product-modal__model-canvas canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	outline: 0;
	cursor: grab;
}

.smv-product-modal__model-canvas canvas:active {
	cursor: grabbing;
}

.smv-product-modal__model-hint {
	position: absolute;
	left: 50%;
	bottom: 10px;
	z-index: 2;
	max-width: calc(100% - 24px);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(18, 18, 18, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-align: center;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
	backdrop-filter: blur(5px);
}

.smv-product-modal__model-loading {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.82);
	color: #333;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	backdrop-filter: blur(2px);
}

.smv-product-modal__model-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(242, 101, 34, 0.22);
	border-top-color: #F26522;
	border-radius: 50%;
	animation: smvModelSpin .7s linear infinite;
}

@keyframes smvModelSpin {
	to { transform: rotate(360deg); }
}

.smv-product-modal__content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	min-width: 0;
	max-height: calc(100vh - 56px);
	padding: 46px 44px 42px;
	overflow-y: auto;
	background: #121212;
}

.smv-product-modal__eyebrow {
	margin: 0 46px 11px 0;
	color: #F26522;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.smv-product-modal__title {
	margin: 0 46px 16px 0;
	padding: 0;
	color: #fff !important;
	font: inherit;
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.smv-product-modal__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 20px;
}

.smv-product-modal__sku {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 5px;
	color: #bdbdbd;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .06em;
}

.smv-product-modal__price {
	margin-left: auto;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.smv-product-modal__rule {
	position: relative;
	height: 1px;
	margin: 0 0 22px;
	background: rgba(255, 255, 255, 0.13);
}

.smv-product-modal__rule::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 54px;
	height: 3px;
	background: #F26522;
}

.smv-product-modal__description {
	margin: 0 0 25px;
	color: #d5d5d5;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
}

.smv-product-modal__description p,
.smv-product-modal__description li,
.smv-product-modal__description span,
.smv-product-modal__description strong {
	color: inherit !important;
}

.smv-product-modal__description > :first-child {
	margin-top: 0;
}

.smv-product-modal__description > :last-child {
	margin-bottom: 0;
}

.smv-product-modal__quantity-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 22px;
}

.smv-product-modal__quantity-label {
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.smv-product-modal__quantity-control {
	display: inline-grid;
	grid-template-columns: 38px 52px 38px;
	align-items: stretch;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	overflow: hidden;
	background: #1a1a1a;
}

.smv-product-modal__quantity-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font: inherit;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background-color .18s ease, color .18s ease !important;
}

.smv-product-modal__quantity-btn:hover,
.smv-product-modal__quantity-btn:focus-visible {
	background: #F26522 !important;
	color: #4F1800 !important;
	outline: none !important;
}

.smv-product-modal__quantity-input {
	width: 52px !important;
	height: 38px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 0 !important;
	border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font: inherit;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 38px !important;
	text-align: center;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.smv-product-modal__quantity-input::-webkit-outer-spin-button,
.smv-product-modal__quantity-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.smv-product-modal__status {
	display: none;
	margin: -8px 0 16px;
	padding: 10px 12px;
	border-radius: 5px;
	background: rgba(242, 101, 34, 0.11);
	color: #ffb38f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.smv-product-modal__status.is-error {
	display: block;
}

.smv-product-modal__add {
	display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100% !important;
    min-height: 54px;
    margin: 0;
    padding: 14px 17px 14px 19px !important;
    border: 1px solid #F26522 !important;
    border-radius: 6px !important;
    background: #F26522 !important;
    color: #4F1800 !important;
    font: inherit;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: .01em;
    text-align: left !important;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

.smv-product-modal__add-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
	transition: transform .18s ease;
}

.smv-product-modal__add:hover,
.smv-product-modal__add:focus,
.smv-product-modal__add:focus-visible {
	border-color: #fff !important;
	background: #fff !important;
	color: #4F1800 !important;
	outline: none !important;
}

.smv-product-modal__add:hover .smv-product-modal__add-arrow,
.smv-product-modal__add:focus-visible .smv-product-modal__add-arrow {
	transform: translateX(3px);
}

.smv-product-modal__add:disabled {
	cursor: not-allowed;
	opacity: .58;
	transform: none;
}

.smv-product-modal__add.is-loading .smv-product-modal__add-arrow {
	animation: smvAddPulse .8s ease-in-out infinite alternate;
}

.smv-product-modal__view-more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	min-height: 50px;
	margin: 12px 0 0;
	padding: 13px 17px 13px 19px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 6px;
	background: transparent;
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .01em;
	text-decoration: none !important;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.smv-product-modal__view-more[hidden] {
	display: none !important;
}

.smv-product-modal__view-more-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
	transition: transform .18s ease;
}

.smv-product-modal__view-more:hover,
.smv-product-modal__view-more:focus,
.smv-product-modal__view-more:focus-visible {
	border-color: #FF871E;
	background: rgba(255, 135, 30, 0.10);
	color: #FF871E !important;
	outline: none;
}

.smv-product-modal__view-more:hover .smv-product-modal__view-more-arrow,
.smv-product-modal__view-more:focus-visible .smv-product-modal__view-more-arrow {
	transform: translateX(3px);
}

@keyframes smvAddPulse {
	from { opacity: .35; transform: translateX(0); }
	to { opacity: 1; transform: translateX(4px); }
}

@media (max-width: 760px) {
	.smv-product-modal {
		align-items: center;
		padding: 14px;
	}

	.smv-product-modal__panel {
		grid-template-columns: 1fr;
		width: min(520px, 100%);
		max-height: calc(100vh - 28px);
		overflow-y: auto;
		border-radius: 10px;
	}

	.smv-product-modal__media {
		min-height: 250px;
		padding: 28px 20px 22px;
	}

	.smv-product-modal__media-inner {
		min-height: 210px;
		padding: 16px;
	}

	.smv-product-modal__image {
		max-height: 230px;
	}

	.smv-product-modal__model {
		height: 230px;
		min-height: 210px;
	}

	.smv-product-modal__content {
		max-height: none;
		padding: 26px 22px 24px;
		overflow: visible;
	}

	.smv-product-modal__eyebrow {
		margin-right: 38px;
		font-size: 12px;
	}

	.smv-product-modal__title {
		margin-right: 38px;
		font-size: 24px;
	}

	.smv-product-modal__meta {
		align-items: flex-start;
		flex-wrap: wrap;
		margin-bottom: 18px;
	}

	.smv-product-modal__price {
		font-size: 18px;
	}

	.smv-product-modal__description {
		margin-bottom: 21px;
		font-size: 14px;
	}

	.smv-product-modal__quantity-row {
		margin-bottom: 20px;
	}

	.smv-product-modal__close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
		background: rgba(18, 18, 18, 0.94);
	}
}

@media (max-width: 420px) {
	.smv-product-modal {
		padding: 8px;
	}

	.smv-product-modal__panel {
		max-height: calc(100vh - 16px);
	}

	.smv-product-modal__media {
		min-height: 220px;
		padding: 24px 16px 18px;
	}

	.smv-product-modal__media-inner {
		min-height: 180px;
	}

	.smv-product-modal__image {
		max-height: 200px;
	}

	.smv-product-modal__model {
		height: 200px;
		min-height: 180px;
	}

	.smv-product-modal__model-hint {
		font-size: 10px;
		white-space: normal;
	}

	.smv-product-modal__content {
		padding: 23px 18px 20px;
	}

	.smv-product-modal__title {
		font-size: 22px;
	}
}

/* v1.5.9 — Knuckle Assembly solid silhouette precision polish.
 * The source drawing's annotation vectors are removed from the SVG itself.
 * A pointer-events-free copy of the original engineering linework is rendered
 * above the orange masks so hover edges, holes and internal details stay crisp.
 */
.smv-knuckle-sheet .smv-knuckle-line-overlay {
	fill: none;
	pointer-events: none;
	shape-rendering: geometricPrecision;
}

.smv-knuckle-sheet .smv-hotspot-visual--precision {
	stroke: none !important;
	stroke-width: 0 !important;
	filter: none !important;
	shape-rendering: geometricPrecision;
}


/* v1.5.9 — Solid Knuckle silhouettes.
 * Each visible mask is slightly inset from the traced outer edge and has its
 * internal gaps filled, so the orange state cannot bleed outside the part or
 * leave white seams/spots inside the hovered part.
 */
.smv-knuckle-sheet .smv-hotspot-visual--precision {
	stroke: none !important;
	stroke-width: 0 !important;
	stroke-opacity: 0 !important;
	vector-effect: none !important;
	paint-order: fill !important;
}


/* v1.6.1 — Knuckle Assembly only: complete solid hover silhouettes.
 * Precision masks render above the Knuckle engineering line copy, with transparent
 * opacity, and without a stroke so orange fills the traced part completely
 * but never grows beyond the traced physical edge. */
.smv-knuckle-sheet .smv-hotspot-visual--precision {
	fill: #FF871E !important;
	fill-opacity: 0.35 !important;
	stroke: none !important;
	stroke-width: 0 !important;
	stroke-opacity: 0 !important;
	filter: none !important;
	paint-order: fill !important;
	shape-rendering: geometricPrecision;
}


/* v1.7.5 — Knuckle Assembly exact-silhouette hover masks.
 * The JavaScript masks are traced to the rendered outer engineering outline,
 * including visible side faces, so highlight and pointer coverage end on the
 * physical part edge with no enlarged helper hit area. */

/* v1.8.6 - 36+ Winglets Poly Blade: keep the PDF-derived SVG/BOM readable
 * on dark WordPress themes, matching the existing assembly templates. */
.smv-winglets_poly_blade-sheet {
	background: #fff !important;
	color: #111 !important;
}
.smv-winglets_poly_blade-sheet svg {
	background: #fff !important;
}
.smv-assembly-viewer-wrap .smv-parts-table-wrap,
.smv-assembly-viewer-wrap .smv-parts-table {
	background: #fff !important;
	color: #111 !important;
}
.smv-assembly-viewer-wrap .smv-parts-table th,
.smv-assembly-viewer-wrap .smv-parts-table td {
	color: #111 !important;
}

/* v1.9.1 - All PDF-derived exploded views are engineering drawings on white.
 * Keep them readable even when the active WordPress theme is dark. */
.smv-pdf-sheet {
	background: #fff !important;
	color: #111 !important;
}
.smv-pdf-sheet svg {
	background: #fff !important;
}

/* v1.9.2 exact part-only hover; SVG mask constrains highlight to PDF silhouette. */
