.clc-timber-selector {
	container-type: inline-size;
	margin: 0.75rem 0;
	padding: clamp(0.875rem, 1.5vw, 1rem);
	border: 1px solid #dfe4dc;
	border-radius: 12px;
	background: #f5f1e8;
	color: #20231f;
}

.clc-timber-selector__header {
	margin-bottom: 0.75rem;
}

.clc-timber-selector__eyebrow {
	margin: 0 0 0.25rem;
	color: #21722d;
	font-size: 0.75rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.clc-timber-selector h2 {
	margin: 0;
	font-size: clamp(1.125rem, 1.6vw, 1.25rem);
	line-height: 1.15;
}

.clc-timber-selector__header > p:last-child {
	margin: 0.5rem 0 0;
	color: #667066;
	font-size: 0.75rem;
	line-height: 1.4;
}

.clc-timber-selector__group {
	margin: 0;
	padding: 0;
	border: 0;
}

.clc-timber-selector__group + .clc-timber-selector__group {
	margin-top: 0.75rem;
}

.clc-timber-selector__group legend {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 800;
}

.clc-timber-selector__group legend small {
	color: #667066;
	font-size: 0.625rem;
	font-weight: 550;
}

.clc-timber-selector__options {
	display: grid;
	gap: 0.5rem;
}

.clc-timber-selector__options--format {
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.clc-timber-selector__options--length {
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.clc-timber-duplicate-measure {
	display: none;
}

.clc-timber-option {
	display: grid;
	min-height: 60px;
	padding: 0.5rem;
	border: 1px solid #dfe4dc;
	border-radius: 8px;
	background: #fff;
	color: #20231f;
	cursor: pointer;
	font: inherit;
	gap: 0.25rem;
	place-items: center;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.clc-timber-option:hover,
.clc-timber-option:focus-visible {
	border-color: #21722d;
	outline: none;
	box-shadow: 0 0 0 2px rgba(33, 114, 45, 0.12);
}

.clc-timber-option[aria-pressed="true"] {
	border-color: #21722d;
	background: #dce8d8;
	box-shadow: inset 0 0 0 1px #21722d;
}

.clc-timber-option:disabled {
	cursor: not-allowed;
	opacity: 0.36;
}

.clc-timber-option strong {
	font-size: 0.75rem;
	line-height: 1.2;
}

.clc-timber-option__section {
	display: block;
	width: var(--clc-format-width);
	height: var(--clc-format-height);
	border: 2px solid #123d22;
	border-radius: 2px;
	background:
		repeating-linear-gradient(
			8deg,
			rgba(18, 61, 34, 0.12) 0 2px,
			transparent 2px 5px
		),
		#dce8d8;
	box-shadow: 3px 3px 0 rgba(18, 61, 34, 0.16);
}

.clc-timber-option__length {
	position: relative;
	display: block;
	width: 62px;
	height: 9px;
	border: 1px solid #123d22;
	border-radius: 2px;
	background: #dce8d8;
}

.clc-timber-option__length::before,
.clc-timber-option__length::after {
	position: absolute;
	top: -5px;
	width: 1px;
	height: 17px;
	background: #21722d;
	content: "";
}

.clc-timber-option__length::before {
	left: 0;
}

.clc-timber-option__length::after {
	right: 0;
}

.clc-timber-selector__selection {
	display: grid;
	margin-top: 0.75rem;
	padding: 0.75rem 0.75rem;
	border-radius: 8px;
	background: #123d22;
	color: #fff;
	gap: 0.25rem;
}

.clc-timber-selector__selection > span {
	font-size: 0.625rem;
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.78;
}

.clc-timber-selector__selection strong {
	font-size: 1rem;
}

.clc-timber-selector__selection [data-clc-timber-price] {
	margin-top: 0.25rem;
	font-size: 1rem;
	font-weight: 800;
}

.clc-timber-selector__selection .amount,
.clc-timber-selector__selection small {
	color: inherit;
}

.clc-timber-native-ready table.variations {
	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;
}

.clc-timber-native-ready .woocommerce-variation-price {
	display: none;
}

.clc-timber-selector__inch-layout {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem;
}

.clc-timber-selector__inch-schematic {
	position: relative;
	display: grid;
	height: 64px;
	border-radius: 10px;
	background: #dce8d8;
	place-items: center;
}

.clc-timber-selector__inch-schematic span {
	position: absolute;
	width: 48px;
	height: 12px;
	border: 1px solid #123d22;
	background: #f5f1e8;
}

.clc-timber-selector__inch-schematic span:nth-child(1) {
	transform: translateY(-14px);
}

.clc-timber-selector__inch-schematic span:nth-child(3) {
	transform: translateY(14px);
}

.clc-timber-selector__inch-schematic strong {
	z-index: 1;
	padding: 0.125rem 0.25rem;
	border-radius: 999px;
	background: #123d22;
	color: #fff;
	font-size: 0.625rem;
	transform: translate(25px, 25px);
}

.clc-timber-selector__inch-layout label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 800;
}

.clc-timber-selector__stepper {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 38px 44px;
	min-height: 44px;
	overflow: hidden;
	border: 1px solid rgba(18, 61, 34, 0.3);
	border-radius: 999px;
	background: #fff;
}

.clc-timber-selector__stepper button {
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: transparent;
	color: #123d22;
	cursor: pointer;
	font-size: 1.125rem;
	font-weight: 800;
}

.clc-timber-selector__stepper button:hover,
.clc-timber-selector__stepper button:focus-visible {
	background: #dce8d8;
	outline: none;
}

.clc-timber-selector__stepper input {
	width: 100%;
	min-width: 0;
	padding: 0.5rem 0.25rem;
	border: 0;
	border-inline-start: 1px solid rgba(18, 61, 34, 0.16);
	background: #fff;
	font: inherit;
	font-weight: 800;
	text-align: right;
	-moz-appearance: textfield;
}

.clc-timber-selector__stepper input::-webkit-inner-spin-button,
.clc-timber-selector__stepper input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.clc-timber-selector__stepper > span {
	display: grid;
	border-inline-end: 1px solid rgba(18, 61, 34, 0.16);
	color: #667066;
	font-size: 0.75rem;
	place-items: center;
}

.clc-timber-inch-form .quantity {
	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;
}

.clc-timber-selector__custom-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.clc-timber-selector__custom-grid label,
.clc-timber-selector__notes {
	display: grid;
	color: #20231f;
	font-size: 0.75rem;
	font-weight: 750;
	gap: 0.25rem;
}

.clc-timber-selector__custom-grid label {
	align-content: start;
	align-self: start;
	grid-template-rows: auto auto minmax(1rem, auto);
}

.clc-timber-selector__input-unit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40px;
	overflow: hidden;
	border: 1px solid rgba(18, 61, 34, 0.26);
	border-radius: 8px;
	background: #fff;
}

.clc-timber-selector__input-unit input,
.clc-timber-selector__notes textarea {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	border: 0;
	background: #fff;
	font: inherit;
}

.clc-timber-selector__input-unit small {
	display: grid;
	border-inline-start: 1px solid rgba(18, 61, 34, 0.14);
	color: #667066;
	font-size: 0.75rem;
	place-items: center;
}

.clc-timber-selector__notes {
	margin-top: 0.5rem;
}

.clc-timber-selector__notes textarea {
	min-height: 60px;
	border: 1px solid rgba(18, 61, 34, 0.26);
	border-radius: 8px;
	resize: vertical;
}

.clc-timber-selector__input-unit:focus-within {
	border-color: #21722d;
	outline: 2px solid rgba(33, 114, 45, 0.14);
}

.clc-timber-selector__input-unit:has(input[aria-invalid="true"]),
.clc-timber-selector__notes:has(textarea[aria-invalid="true"]) textarea {
	border-color: #b42318;
	box-shadow: 0 0 0 1px #b42318;
}

.clc-timber-selector__error {
	margin: 0.25rem 0 0;
	color: #9f1c13;
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.35;
}

.clc-timber-selector__error[hidden] {
	display: none;
}

.clc-timber-selector__custom-grid .clc-timber-selector__error {
	margin-top: 0;
}

.clc-timber-selector__custom-grid .clc-timber-selector__error[hidden] {
	display: block;
	visibility: hidden;
}

.clc-timber-selector__input-unit input:focus-visible,
.clc-timber-selector__notes textarea:focus-visible {
	outline: 2px solid rgba(33, 114, 45, 0.14);
	outline-offset: -2px;
}

.clc-timber-selector__quote-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: #21722d;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
}

.clc-timber-selector__quote-button:hover,
.clc-timber-selector__quote-button:focus-visible {
	background: #123d22;
	color: #fff;
	outline: 2px solid rgba(33, 114, 45, 0.24);
	outline-offset: 2px;
}

.clc-timber-selector__quote-button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.58;
}

.clc-timber-selector__note {
	margin: 0.5rem 0 0;
	color: #667066;
	font-size: 0.625rem;
	line-height: 1.45;
}

.clc-timber-price-on-request {
	color: #21722d;
	font-size: 0.75rem;
	font-weight: 750;
}

.clc-timber-selector--editor {
	pointer-events: none;
}

@container (min-width: 460px) {
	.clc-timber-selector__custom-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.clc-timber-selector__custom-grid {
		grid-template-columns: 1fr;
	}

	.clc-timber-selector__inch-layout {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.clc-timber-selector__group legend {
		display: grid;
		gap: 0.125rem;
	}
}
