:root {
	--menuWidth: 310px;
}

.slider-container label {
	min-width: 4.25rem;
}
.slider-container input {
	min-width: 25%;
}

/* Slider value inputs are hidden and replaced by a fractional inch text input with up/down step buttons */
.slider-container input.slider-value { display: none!important; }
.slider-text-group {
	display: flex;
	align-items: stretch;
	flex: 0 0 65%;
	margin-left: auto;
	max-width: 10em;
}
.slider-container .slider-text-group input.slider-text {
	width: 100%;
	min-width: 0;
	line-height: normal;
	padding: 0.15rem 0.2rem;
	border-radius: 3px 0 0 3px;
	font-variant-numeric: tabular-nums;
}
.slider-container .slider-text-group input.slider-text:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--secondaryColor);
}
.slider-step-buttons {
	display: flex;
	flex-direction: column;
	border-radius: 100%;

}
.slider-step {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 0.75rem;
	line-height: 1;
	color: var(--primaryColor);
	/*background-color: #fff;*/
	border: 1px solid var(--primaryColor);
	border-radius: 100%!important;
	aspect-ratio: 1 / 1;
	width: 1.75rem;
	height: 1.75em;
	cursor: pointer;
	touch-action: manipulation;
	user-select: none;
}
.slider-step:first-child { border-radius: 0 3px 0 0; border-bottom-width: 0.5px; }
.slider-step:last-child { border-radius: 0 0 3px 0; border-top-width: 0.5px; }
.slider-step:hover:not(:disabled), .slider-step:active:not(:disabled) { color: #fff; background-color: var(--primaryColor); }
.slider-step:focus { outline: none; }
.slider-step:focus-visible { box-shadow: inset 0 0 0 2px var(--secondaryColor); }
.slider-step:disabled { opacity: 0.35; cursor: default; }

/* Quantity and Add a New Grill controls below Wood Species */
.order-controls {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0.6rem 0;
}
.order-quantity label { display: block; }
.order-quantity .slider-text-group { flex: none; margin-left: 0; max-width: none; }
.order-quantity input.quantity-input {
	width: 2.75rem;
	text-align: center;
	border: 1px solid var(--primaryColor);
	border-radius: 3px;
	margin: 0 0.25rem;
	padding: 0.15rem 0;
	font-variant-numeric: tabular-nums;
}
.order-quantity input.quantity-input:focus { outline: none; box-shadow: 0 0 0 2px var(--secondaryColor); }
.order-controls #addGrillButton {
	margin: 0;
	padding: 0.4rem 0.6rem;
	white-space: nowrap;
	text-transform: none;
	font-size: 0.85rem;
}

/* List of grills in the order, over the upper right corner of the 3D view */
.order-summary {
	position: absolute;
	top: calc(var(--bannerHeight) + 0.5rem);
	right: 0.75rem;
	z-index: 1000;
	width: 19rem;
	max-width: calc(100% - 1.5rem);
	background-color: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--primaryColor);
	border-radius: 0.5rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	font-size: 0.8rem;
	line-height: 1.3;
	overflow: hidden;
}
.order-summary-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.4rem 0.6rem;
	border: none;
	background-color: var(--primaryColor);
	color: #fff;
	font-weight: bold;
	text-align: left;
	cursor: pointer;
}
.order-summary-toggle:focus { outline: none; }
.order-summary-toggle:focus-visible { box-shadow: inset 0 0 0 2px var(--secondaryColor); }
.order-summary-count { margin-left: auto; font-weight: normal; opacity: 0.9; }
.order-summary-chevron { transition: transform 0.2s; }
.order-summary.collapsed .order-summary-chevron { transform: rotate(180deg); }
.order-summary.collapsed .order-summary-list { display: none; }
.order-summary-list {
	position: relative; /* rows measure their offsetTop from the list (used when dragging to reorder) */
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 40vh;
	overflow-y: auto;
}
.order-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.6rem;
	border-top: 1px solid #e3e3e3;
}
.order-item:first-child { border-top: none; }
.order-item:not(.active) { cursor: pointer; }
.order-item:not(.active):hover { background-color: rgba(0, 0, 0, 0.04); }
.order-item.active { background-color: var(--lightColor); }
.order-item.dragging { position: relative; z-index: 1; cursor: grabbing; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); transition: none; }
.order-summary-list .order-item.dragging:not(.active) { background-color: #fff; } /* solid, not the see-through hover color */
.order-summary-list.reordering .order-item { cursor: grabbing; }
.order-summary-list.reordering .order-item:not(.dragging):not(.active):hover { background-color: transparent; }
body.order-vent-dragging, body.order-vent-dragging * { -webkit-user-select: none; user-select: none; } /* no text highlighting while a vent is dragged */
.order-item-number {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	padding-bottom: 0.15rem; /* raise the number slightly so it looks centered */
	line-height: 1;
	border-radius: 50%;
	font-weight: bold;
	color: var(--primaryColor);
	border: 1px solid var(--primaryColor);
	cursor: grab;
	touch-action: none; /* lets a touch screen drag the row by its number instead of scrolling the list */
}
.order-item-number i { display: none; padding-top: 0.15rem; font-size: 0.7rem; } /* bars icon shown in place of the number to show the row can be dragged */
.order-item-number:hover .order-item-index, .order-item.dragging .order-item-index { display: none; }
.order-item-number:hover i, .order-item.dragging .order-item-number i { display: inline; }
.order-summary-list.reordering .order-item-number { cursor: grabbing; }
.order-item.active .order-item-number { color: #fff; background-color: var(--primaryColor); }
.order-item-text { flex: 1 1 auto; min-width: 0; color: #333; }
.order-item-actions { flex: none; display: flex; align-items: center; gap: 0.25rem; }
.order-item-actions button {
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 1px solid var(--primaryColor);
	border-radius: 50%;
	background-color: #fff;
	color: var(--primaryColor);
	cursor: pointer;
}
.order-item-actions button:hover { color: #fff; background-color: var(--primaryColor); }
.order-item-actions button.order-item-remove:hover { border-color: #b02a37; background-color: #b02a37; }
.order-item-actions button:focus { outline: none; }
.order-item-actions button:focus-visible { box-shadow: 0 0 0 2px var(--secondaryColor); }
.order-item-editing {
	font-size: 0.7rem;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--primaryColor);
}
@media (max-width: 768px) {
	.order-summary { top: calc(var(--bannerHeight) + 0.25rem); right: 0.5rem; width: 16rem; font-size: 0.75rem; }
	.order-summary-list { max-height: 25vh; }
}

/* Printed order table (built by displayPrintConfigurationData). The general print styles in default.css make every element display:block, so table layout is restored here */
@media print {
	#printText { column-count: 1; text-transform: none; }
	#printText table.print-order-table {
		display: table!important;
		width: 100%;
		border-collapse: collapse;
		font-size: 0.11in;
		line-height: 1.25;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	#printText table.print-order-table thead { display: table-header-group!important; }
	#printText table.print-order-table tbody { display: table-row-group!important; }
	#printText table.print-order-table tr { display: table-row!important; page-break-inside: avoid; break-inside: avoid; }
	#printText table.print-order-table th, #printText table.print-order-table td {
		display: table-cell!important;
		padding: 0.05in 0.07in;
		text-align: center;
		vertical-align: middle;
		border: 1px solid var(--lightColor);
	}
	#printText table.print-order-table th {
		color: #fff;
		background-color: var(--primaryColor);
		border-color: var(--primaryColor);
		font-weight: bold;
	}
	#printText table.print-order-table tbody tr:nth-child(odd) td { background-color: #fff; }
	#printText table.print-order-table tbody tr:nth-child(even) td { background-color: var(--lightColor); }
}

/* Stock or custom size indicator in Dimension Details */
#dimensionDetails .size-type {
	display: inline-block;
	margin-bottom: 0.15em;
	padding: 0 0.5em;
	border-radius: 1em;
	font-weight: bold;
	color: #fff;
}
#dimensionDetails .size-type.stock { background-color: var(--primaryColor); }
#dimensionDetails .size-type.custom { background-color: #8a7a5a; }

/* Custom request note at the bottom of the Dimensions and Settings menu */
#customRequestNote {
	font-size: 0.85em;
	line-height: 1.35em;
	text-align: center;
	color: #555;
	padding: 0.25em 0.5em 0.5em;
}
#customRequestNote a { color: var(--primaryColor); font-weight: bold; text-decoration: underline; }

/* Highlight the dimensions banner button while dimensions are shown */
#banner i#toggleDimensions.active { opacity: 1; }
#banner i#toggleDimensions.active::after {
	content: '';
	display: block;
	height: 2px;
	margin-top: 3px;
	background-color: var(--bannerTextColor);
	border-radius: 1px;
}

.menu-group-border {
	border: 1px solid var(--primaryColor);
	border-radius: 0.5em;
}

.btn-primary, .btn-primary:hover, .btn-secondary.windows {
	color: white;
}

.bootstrap-select .dropdown-item.swatch.ash				{ background-image: url("../images/woodSpecies/ash.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.american-cherry			{ background-image: url("../images/woodSpecies/american-cherry.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.brazilian-cherry		{ background-image: url("../images/woodSpecies/brazilian-cherry.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.hickory				{ background-image: url("../images/woodSpecies/hickory.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.maple				{ background-image: url("../images/woodSpecies/maple.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.poplar				{ background-image: url("../images/woodSpecies/poplar.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.red-oak				{ background-image: url("../images/woodSpecies/red-oak.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.european-white-oak		{ background-image: url("../images/woodSpecies/european-white-oak.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.rift-and-quartered-white-oak	{ background-image: url("../images/woodSpecies/rift-and-quartered-white-oak.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.white-oak			{ background-image: url("../images/woodSpecies/white-oak.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.antique-heart-pine		{ background-image: url("../images/woodSpecies/antique-heart-pine.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.new-heart-pine			{ background-image: url("../images/woodSpecies/new-heart-pine.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.southern-yellow-pine		{ background-image: url("../images/woodSpecies/southern-yellow-pine.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.white-pine			{ background-image: url("../images/woodSpecies/white-pine.jpg")!important; }
.bootstrap-select .dropdown-item.swatch.walnut				{ background-image: url("../images/woodSpecies/walnut.jpg")!important; }