.hod-vld {
	--hod-vld-accent: #d71920;
	--hod-vld-border: #d8dce2;
	--hod-vld-muted: #68707c;
	display: grid;
	gap: 22px;
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(20, 25, 35, 0.06);
}

.hod-vld-wide-stage {
	clear: both;
	width: 100%;
	max-width: none;
	padding-top: 32px;
}

.hod-vld-wide-stage::before {
	display: table;
	clear: both;
	content: "";
}

.hod-vld-wide-stage .hod-vld-cart-form {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.hod-vld.is-wide {
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: none;
}

.hod-vld.is-wide .hod-vld__preview {
	min-height: 360px;
	padding: 28px;
}

.hod-vld.is-wide .hod-vld__svg {
	height: 310px;
}

.hod-vld.is-wide .hod-vld__controls {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hod-vld-wide-stage .quantity,
.hod-vld-wide-stage .single_add_to_cart_button {
	margin-top: 4px;
}

.hod-vld *,
.hod-vld *::before,
.hod-vld *::after {
	box-sizing: border-box;
}

.hod-vld__preview-panel {
	min-width: 0;
}

.hod-vld__preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.hod-vld__preview-toolbar label {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	color: var(--hod-vld-muted);
}

.hod-vld__background-control {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	max-width: none;
}

.hod-vld__background-note {
	color: var(--hod-vld-muted);
	font-size: 11px;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
}

.hod-vld__background-picker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 5px 4px 9px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 7px;
	background: #fff;
	color: #303640;
	font-size: 11px;
	font-weight: 650;
	line-height: 1;
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.hod-vld__background-picker:hover {
	border-color: var(--hod-vld-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--hod-vld-accent) 10%, transparent);
}

.hod-vld__preview-toolbar input[type="color"] {
	width: 34px;
	height: 28px;
	padding: 2px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 6px;
	background: #fff;
}

.hod-vld__preview {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 245px;
	overflow: hidden;
	padding: 22px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 10px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.025)),
		var(--hod-vld-preview-bg, #f3f4f6);
	transition: background-color 0.2s ease;
}

.hod-vld__svg {
	display: block;
	width: 100%;
	height: 210px;
	overflow: visible;
}

.hod-vld__path {
	transition: fill 0.18s ease;
}

.hod-vld__loading {
	position: absolute;
	inset: auto 16px 14px;
	padding: 7px 10px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.9);
	color: #303640;
	font-size: 12px;
	text-align: center;
	backdrop-filter: blur(4px);
}

.hod-vld__measurements {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
	margin-top: 9px;
}

.hod-vld__measurements > span {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f5f6f8;
	transition: background-color 160ms ease, box-shadow 160ms ease;
}

.hod-vld__measure-range {
	margin-left: 3px;
	color: #858c96;
	font-size: 10px;
	font-weight: 400;
	white-space: nowrap;
}

.hod-vld__measurements small,
.hod-vld__summary small {
	margin-bottom: 2px;
	color: var(--hod-vld-muted);
	font-size: 11px;
	line-height: 1.25;
}

.hod-vld__measurements strong {
	font-size: 14px;
	line-height: 1.35;
	transition: color 160ms ease;
}

.hod-vld__measurements > span.is-out-of-range {
	background: #fff1f0;
	box-shadow: inset 0 0 0 1px #efb2ad;
}

.hod-vld__measurements strong.is-out-of-range {
	color: #b42318;
}

.hod-vld__measurements > span.is-out-of-range small,
.hod-vld__measurements > span.is-out-of-range .hod-vld__measure-range {
	color: #9f2018;
}

.hod-vld__controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.hod-vld__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.hod-vld__field--full {
	grid-column: 1 / -1;
}

.hod-vld__field > label,
.hod-vld__field > legend,
.hod-vld__label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
	color: #242a33;
}

.hod-vld__field input[type="text"],
.hod-vld__field input[type="number"],
.hod-vld__field textarea,
.hod-vld__field select {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 11px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 8px;
	background: #fff;
	color: #1f252e;
	font: inherit;
	line-height: 1.3;
	box-shadow: none;
}

.hod-vld__field textarea {
	min-height: 44px;
	resize: vertical;
}

.hod-vld__field input:focus,
.hod-vld__field textarea:focus,
.hod-vld__field select:focus {
	border-color: var(--hod-vld-accent);
	outline: 2px solid color-mix(in srgb, var(--hod-vld-accent) 18%, transparent);
	outline-offset: 0;
}

.hod-vld__size-input {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
}

.hod-vld__size-input input {
	border-radius: 8px 0 0 8px !important;
}

.hod-vld__size-input select {
	border-left: 0;
	border-radius: 0 8px 8px 0 !important;
}

.hod-vld__font-select.is-enhanced {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.hod-vld__font-picker {
	position: relative;
}

.hod-vld__font-picker[hidden],
.hod-vld__font-panel[hidden] {
	display: none;
}

.hod-vld__font-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 8px 11px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 8px;
	background: #fff;
	color: #1f252e;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.hod-vld__font-trigger:hover,
.hod-vld__font-trigger[aria-expanded="true"] {
	border-color: var(--hod-vld-accent);
}

.hod-vld__font-trigger:focus-visible {
	border-color: var(--hod-vld-accent);
	outline: 2px solid color-mix(in srgb, var(--hod-vld-accent) 18%, transparent);
	outline-offset: 0;
}

.hod-vld__font-current {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.hod-vld__font-current-name {
	color: var(--hod-vld-muted);
	font-family: inherit;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.2;
}

.hod-vld__font-current-sample {
	overflow: hidden;
	color: #1f252e;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hod-vld__font-chevron {
	flex: 0 0 auto;
	color: var(--hod-vld-muted);
	font-size: 20px;
	line-height: 1;
	transition: transform 0.18s ease;
}

.hod-vld__font-trigger[aria-expanded="true"] .hod-vld__font-chevron {
	transform: rotate(180deg);
}

.hod-vld__font-panel {
	position: absolute;
	z-index: 50;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	overflow: hidden;
	border: 1px solid var(--hod-vld-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 16px 38px rgba(20, 25, 35, 0.18);
}

.hod-vld__font-search {
	width: calc(100% - 16px) !important;
	min-height: 40px !important;
	margin: 8px !important;
	padding: 8px 10px !important;
	border: 1px solid var(--hod-vld-border) !important;
	border-radius: 7px !important;
	background: #f8f9fa !important;
	font-size: 12px !important;
	box-shadow: none !important;
}

.hod-vld__font-list {
	max-height: 330px;
	overflow-y: auto;
	padding: 0 7px 7px;
	overscroll-behavior: contain;
}

.hod-vld__font-option {
	display: grid;
	gap: 3px;
	width: 100%;
	min-height: 58px;
	margin: 0 0 4px;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: #1f252e;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.hod-vld__font-option[hidden],
.hod-vld__font-option.is-filtered {
	display: none !important;
}

.hod-vld__font-empty {
	margin: 0;
	padding: 18px 12px 22px;
	color: var(--hod-vld-muted);
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
}

.hod-vld__font-empty[hidden] {
	display: none !important;
}

.hod-vld__font-variants {
	margin-top: 9px;
	padding: 9px;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	background: #f7f8fa;
}

.hod-vld__font-variants[hidden] {
	display: none !important;
}

.hod-vld__font-variants > span {
	display: block;
	margin-bottom: 7px;
	color: var(--hod-vld-muted);
	font-size: 10px;
	font-weight: 650;
	line-height: 1.2;
}

.hod-vld__font-variant-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hod-vld__font-variant {
	min-height: 32px;
	margin: 0;
	padding: 5px 10px;
	border: 1px solid #d5d9df;
	border-radius: 7px;
	background: #fff;
	color: #303640;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}

.hod-vld__font-variant:hover {
	border-color: var(--hod-vld-accent);
}

.hod-vld__font-variant.is-selected {
	border-color: #232830;
	background: #232830;
	color: #fff;
}

.hod-vld__font-option:hover {
	border-color: #e1e4e8;
	background: #f6f7f9;
}

.hod-vld__font-option.is-selected {
	border-color: color-mix(in srgb, var(--hod-vld-accent) 35%, #fff);
	background: color-mix(in srgb, var(--hod-vld-accent) 7%, #fff);
}

.hod-vld__font-option-name {
	color: var(--hod-vld-muted);
	font-family: inherit;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.2;
}

.hod-vld__font-option-sample {
	display: block;
	overflow: hidden;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hod-vld__font-option:not(.is-font-loaded) .hod-vld__font-option-sample {
	color: #777e88;
}

.hod-vld__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.hod-vld__swatch {
	position: relative;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: 0 0 0 1px #c7ccd3;
	cursor: pointer;
}

.hod-vld__swatch.is-selected {
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 4px var(--hod-vld-accent);
}

.hod-vld__selected-color {
	margin-top: 9px;
	font-size: 12px;
	color: var(--hod-vld-muted);
}

.hod-vld__segmented {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	border: 1px solid var(--hod-vld-border);
	border-radius: 8px;
}

.hod-vld__segmented--three {
	grid-template-columns: repeat(3, 1fr);
}

.hod-vld__segmented label {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 42px;
	margin: 0;
	cursor: pointer;
}

.hod-vld__segmented label + label {
	border-left: 1px solid var(--hod-vld-border);
}

.hod-vld__segmented input {
	position: absolute;
	opacity: 0;
}

.hod-vld__segmented label:has(input:checked) {
	background: #232830;
	color: #fff;
}

.hod-vld__multiline-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	padding: 13px;
	border: 1px solid #e2e5e9;
	border-radius: 9px;
	background: #f7f8fa;
}

.hod-vld__multiline-controls[hidden] {
	display: none;
}

.hod-vld__check {
	display: flex !important;
	align-items: center;
	gap: 9px;
	margin: 2px 0 0 !important;
	font-weight: 500 !important;
	cursor: pointer;
}

.hod-vld__check input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.hod-vld__squeegee {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	background: #f7f8fa;
}

.hod-vld__squeegee-check {
	margin: 0 !important;
}

.hod-vld__squeegee-check > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hod-vld__squeegee-check strong {
	color: #242a33;
	font-size: 13px;
}

.hod-vld__squeegee-check small {
	color: var(--hod-vld-muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
}

.hod-vld__squeegee-quantity {
	display: grid;
	grid-template-columns: auto 80px;
	align-items: center;
	gap: 9px;
}

.hod-vld__squeegee-quantity[hidden] {
	display: none;
}

.hod-vld__squeegee-quantity label {
	margin: 0;
	color: #242a33;
	font-size: 12px;
	font-weight: 650;
}

.hod-vld__squeegee-quantity input {
	min-height: 40px !important;
}

.hod-vld__summary {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	padding: 13px;
	border-radius: 9px;
	background: #20252d;
	color: #fff;
}

.hod-vld__summary > div {
	display: flex;
	flex-direction: column;
}

.hod-vld__summary small {
	color: #c7ccd4;
}

.hod-vld__summary strong {
	font-size: 18px;
	line-height: 1.35;
}

.hod-vld__summary .woocommerce-Price-amount {
	color: inherit;
}

.hod-vld__quantity-offers {
	min-width: 0;
}

.hod-vld__tier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 8px;
}

.hod-vld__tier {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-height: 104px;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--hod-vld-border);
	border-radius: 9px;
	background: #fff;
	color: #242a33;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.16s ease,
		box-shadow 0.16s ease,
		transform 0.16s ease;
}

.hod-vld__tier:not(:disabled):hover {
	border-color: var(--hod-vld-accent);
	box-shadow: 0 5px 15px rgba(20, 25, 35, 0.08);
	transform: translateY(-1px);
}

.hod-vld__tier.is-selected {
	border-color: var(--hod-vld-accent);
	box-shadow: inset 0 0 0 1px var(--hod-vld-accent);
}

.hod-vld__tier:disabled {
	cursor: wait;
	opacity: 0.62;
}

.hod-vld__tier.is-unavailable {
	cursor: not-allowed;
	opacity: 0.38;
}

.hod-vld__tier strong {
	font-size: 15px;
	line-height: 1.3;
}

.hod-vld__tier span {
	color: var(--hod-vld-muted);
	font-size: 11px;
	line-height: 1.35;
}

.hod-vld__tier span[data-tier-total] {
	color: #242a33;
	font-size: 12px;
	font-weight: 650;
}

.hod-vld__tier .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
}

.hod-vld__tier em {
	margin-top: auto;
	padding: 3px 6px;
	border-radius: 999px;
	background: #e7f6ec;
	color: #176b38;
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
}

.hod-vld__tier-note {
	display: block;
	margin-top: 7px;
	color: var(--hod-vld-muted);
	font-size: 11px;
	line-height: 1.4;
}

.hod-vld__price-status {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	margin-top: -5px;
	padding: 9px 11px;
	border: 1px solid #f1c7c9;
	border-radius: 8px;
	background: #fff3f3;
	color: #8f1d22;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

.hod-vld__price-status[hidden] {
	display: none;
}

.hod-vld__price-status-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hod-vld-accent);
}

.hod-vld__price-status.is-loading .hod-vld__price-status-dot {
	animation: hod-vld-price-pulse 1s ease-in-out infinite;
}

.hod-vld__price-status.is-success {
	border-color: #b9dfc9;
	background: #effaf3;
	color: #22613d;
}

.hod-vld__price-status.is-success .hod-vld__price-status-dot {
	background: #2f8a57;
}

.hod-vld__price-status.is-error {
	border-color: #f1c7c9;
	background: #fff3f3;
	color: #8f1d22;
}

@keyframes hod-vld-price-pulse {
	0%,
	100% {
		opacity: 0.42;
		transform: scale(0.88);
	}
	50% {
		opacity: 1;
		transform: scale(1.15);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hod-vld__price-status.is-loading .hod-vld__price-status-dot {
		animation: none;
	}
}

.hod-vld__message {
	min-height: 20px;
	margin-top: -4px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--hod-vld-muted);
}

.hod-vld__message.is-error {
	color: #b42318;
}

.hod-vld__message.is-success {
	color: #26734d;
}

form.cart .single_add_to_cart_button:disabled {
	cursor: wait;
	opacity: 0.52;
}

@media (min-width: 900px) {
	.hod-vld {
		grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
		align-items: start;
	}
}

@media (max-width: 560px) {
	.hod-vld {
		padding: 14px;
	}

	.hod-vld__preview-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.hod-vld__background-control {
		align-items: flex-start;
		max-width: none;
	}

	.hod-vld__preview-toolbar label {
		align-items: flex-start;
		flex-direction: column;
		justify-content: flex-start;
	}

	.hod-vld__background-note {
		text-align: left;
		white-space: normal;
	}

	.hod-vld__controls {
		grid-template-columns: 1fr;
	}

	.hod-vld.is-wide .hod-vld__controls {
		grid-template-columns: 1fr;
	}

	.hod-vld__field--full {
		grid-column: auto;
	}

	.hod-vld__multiline-controls {
		grid-template-columns: 1fr;
	}

	.hod-vld__squeegee {
		grid-template-columns: 1fr;
	}

	.hod-vld__squeegee-quantity {
		grid-template-columns: minmax(0, 1fr) 80px;
	}

	.hod-vld__measurements {
		grid-template-columns: 1fr;
	}

	.hod-vld__preview {
		min-height: 190px;
	}

	.hod-vld__svg {
		height: 160px;
	}

	.hod-vld.is-wide .hod-vld__preview {
		min-height: 210px;
		padding: 16px;
	}

	.hod-vld.is-wide .hod-vld__svg {
		height: 180px;
	}
}
