div.wrapper div div.modelspec2 {
	padding: 1em;
	position: relative;
}

div.wrapper div div.modelspec2 {
	background-color: var(--main-elements-background-color);
	box-shadow: var(--box-shadow);
}


div.modelspec2 div.selector.active {
	display: flex;
}

.modelsearcher {
	min-height: 125px;
}

div.modelspec2 div.modelsearcher > div label {
	flex: 2 1 0;
}

div.modelspec2 div.modelsearcher div.freetextsearchresults {
	flex-basis: 100%;
}

div.modelspec2 div.selector label {
	flex-basis: 10%;
	max-width: 25%;
}


div.modelspec2 div.currentModelInfo > div {
	flex-grow: 2;
}

div.modelspec2 .selector .qField.select {
	margin-left: 1em;
}

div.modelspec2 .selector .qField.select:first-of-type {
	margin-left: 0;
}

div.modelspec2 .mainImage {
	text-align: right;
}

.searchResult {
	flex-basis: 100%;
}

.itemgrid li.itemgrouptitle {
	padding: 0.5em 0;
	background-color: var(--main-link-color);
	flex-basis: calc(100% - 1em);
	max-width: calc(100% - 1em);
}

.itemgrid li.itemgrouptitle a {
	padding: 0 .5em;
}

.qTabPane .itemgrid .itemgrouptitle a {
	color: var(--secondary-text-color);
}


div.modelspec2 span.licenceplate {
	border: 1px solid #aaa;
	background-color: #164A9B;
	height: 34px;
	display: flex;
	width: 10em;
	margin-right: .5em;
}


div.modelspec2 span.licenceplate > span {
	text-align: center;
	background: url("../../resources/flags/4x3/no.svg") 5px 3px transparent no-repeat;
	background-size: 20px;
	width: 30px;
}


div.modelspec2 span.licenceplate > span > b {
	position: relative;
	top: 17px;
}

div.modelspec2 span.licenceplate > span > b:after {
	font-family: var(--main-font-family);
	content: "N";
	color: white;
	font-weight: bold;
}


div.modelspec2 span.licenceplate input {
	width: calc(100% - 30px);
	height: 100%;
	top: 0;
	margin-left: 0;
	float: right;
	font-size: 1.5em;
	line-height: 1.5em;
	border: 0;
	margin: 0;
	text-indent: .2em;
	text-transform: uppercase;
}


div.modelspec2 div.currentModelInfo > div {
	max-width: 100%;
}


@media screen and (max-width: 480px) {
	
	div.wrapper div div.modelspec2 {
		padding: .5em;
		margin: 0;
	}
	
	div.modelspec2 div.selector.active {
		display: block;
	}
	
	div.modelspec2 .selector .qField.select {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}
	
}

div.modelspec2 #VinSearch .regsearch {
	height: unset;
}

ol.modelspecList a {
	width: 100%;
}

/* span 1 model spec after header like SPS */
div.modelspecFilter {
	text-align: right;
	line-height: 0;
}

div.buttonCombo {
	display: inline-block;
	line-height: 0;
	position: relative;
}

div.modelspecFilter a.button {
	border: none;
	display: inline-block;
	line-height: 1.8em;
	white-space: nowrap;
	text-decoration: none;
	color: var(--secondary-text-color);
	padding: 0.5em 1em 0.5em 1em;
}

div.modelspecFilter a.button:hover {
	text-decoration: none;
	color: var(--menu-text-color);
}

div.modelspecFilter a.removeFilter.hidden {
	display: none;
}

div.modelspecFilter a .icon {
	fill: var(--secondary-text-color);
}

div.modelstrip .modelspecFilter {
	position: relative;
	z-index: 10;
}

div.modelstrip .modelspecFilter .buttonCombo {
	box-shadow: var(--box-shadow);
}

div.modelstrip .modelspecFilter a.button {
	padding-top: 1px;
	padding-bottom: 1px;
	line-height: 1.5em;
	height: 1.5em;
}

div.modelstrip .modelspecFilter a.button.filterButton {
	min-width: 230px;
}

ol.modelspecList li.selected a,
ol.modelspecYear li.selected a {
	background-color: var(--main-color);
	color: var(--secondary-text-color);
}

div.modelspecstrip .buttonCombo > a {
	display: inline-block;
}

div.modelspecstrip .buttonCombo > a.hidden {
	display: none;
}

/* keep the subtitle on the whole row, putting the options below */
.modelspec2Type.designPlus .searchBoxes-subtile,
.pageCustom.designPlus .searchBoxes-subtile,
.pageCustom.designPlus #ModelSelect span.select {
	width: 100%;
}

/* keep the dropdown on the same row for pc */
.modelspec2Type.designPlus .form-row > label,
.pageCustom.designPlus .form-row > label {
	margin-bottom: .5rem;
	display: inline-block;
	min-width: fit-content;
}

.pageCustom .modelspec2 .modelsearcher.qTabPane {
	min-height: 3em;
}

.pageCustom .modelspec2 {
	border: 1px solid #ddd;
}

.pageCustom .msCenterBackground {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
}

.pageCustom .centerDiv {
	flex: 1 1 0%;
}

.pageCustom .modelspec2 .modelsearcher .freetextsearch b {
	padding-left: 1rem;
	background-color: unset;
}

@media screen and (max-width: 768px) {
	div.modelstrip {
		width: 100%;
		/* float: left; ??? */
	}
	
	div.modelstrip .modelspecFilter {
		margin-left: -.5em;
		margin-right: -.5em;
		/* float: unset; ??? */
	}
	
	div.modelstrip .modelspecFilter .buttonCombo {
		width: 100%;
		display: flex;
	}
	
	div.modelstrip .modelspecFilter a.button.filterButton {
		width: 100%;
	}
	
	.afterHeader {
		flex-direction: column-reverse;
	}
	
	.afterHeader > .span1 {
		z-index: 10;
	}
	
	/* resize the drop downs to the 100% row width for mobile */
	.modelspec2Type.designPlus .form-row > label,
	.pageCustom.designPlus .form-row > label {
		margin-bottom: .5rem;
		display: block;
		min-width: 100%;
	}
	
}

/* START - Changes for modelspec component when used inside PageCustom  */

.pageCustom .modelspec2SearchWrapper .tab-pane.freetextsearch .freetextsearchresults,
.pageCustom .modelspec2SearchWrapper .modelsearcher .freetextsearchresults {
	max-height: 3rem;
}

@media screen and (max-width: 480px) {
	/* for QS version */
	.pageCustom #ModelSelect label.qField > .select {
		margin-top: 0;
	}
	
	.pageCustom .modelspec2 .modelsearcher .freetextsearch b {
		padding-left: 0;
	}
	
	/* for QS will reduce the height of the select model drop down selectors */
	.modelspec2 label.qField > .select {
		margin-top: 0;
	}
}

/* END - Changes for modelspec component when used inside PageCustom  */

.modelspec-items .itemgrid li:not(.itemgrouptitle) {
	padding: 0 .2em;
}

.modelspec .detailHeader a.showall {
	color: var(--secondary-text-color);
}

.regnrsearch.active a {
	line-height: unset;
	text-align: center;
}

@media only screen and (max-width: 768px) {
	.modelspec2 .qField.external b {
		top: 0;
		margin-top: -10px;
	}
	
	.modelspec2 .freetextsearch .qField.external b {
		background-color: white;
	}
}

.currentModelInfo .btn svg.icon,
.modelspec2 .btn svg.icon {
	fill: currentColor;
}