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);
}

/* Loader spinner positioning on modelspec select boxes */
.modelspec2 .formLoader {
	position: relative;
}

.modelspec2 .formLoader + .spinner-border,
.modelspec2 .formLoader + .spinner-grow {
	position: absolute;
	right: 25px;
	bottom: 11px;
}

.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;
}

/* Modelspec2 results page - col-5ths responsive grid */
.modelspec2Type .col-5ths {
	position: relative;
	width: 100%;
	min-height: 1px;
	padding-right: 10px;
	padding-left: 10px;
	flex: 0 0 100%;
	max-width: 100%;
}

@media (min-width: 375px) {
	.modelspec2Type .col-5ths {
		flex: 0 0 50%;
		max-width: 50%;
		padding: 5px;
	}
}

@media (min-width: 540px) {
	.modelspec2Type .col-5ths {
		flex: 0 0 33.30%;
		max-width: 33.30%;
	}
}

@media (min-width: 960px) {
	.modelspec2Type .col-5ths {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

@media (min-width: 1140px) {
	.modelspec2Type .col-5ths {
		flex: 0 0 20%;
		max-width: 20%;
	}
}

/* Modelspec2 results - tab navigation */

/* Strip Bootstrap grid padding from tab nav so tab backgrounds align with group title bars */
.modelspec2Type .productgrid > .container-fluid:first-child {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.modelspec2Type .productgrid > .container-fluid:first-child > .row {
	margin-left: 0;
	margin-right: 0;
}

.modelspec2Type .productgrid > .container-fluid:first-child .col-12 {
	padding-left: 0;
	padding-right: 0;
}

.modelspec2Type .nav-pills {
	margin-bottom: 0;
	padding-left: 0;
}

.modelspec2Type .nav-pills .nav-link {
	background-color: transparent;
	color: var(--main-body-text-color);
	border-radius: 0;
	padding: 0.4em 0.8em;
}

.modelspec2Type .nav-pills .nav-link:hover {
	background-color: #5bc0de;
	color: #fff;
}

.modelspec2Type .nav-pills .nav-link.active {
	background-color: var(--main-header-menu-bg-color);
	color: var(--secondary-text-color);
}

/* Remove gap between tabs and first group header */
.modelspec2Type .tab-content {
	padding-top: 0;
}

.modelspec2Type .tab-pane > .row:first-child .groupTitleCont {
	margin-top: 0 !important;
}

/* Modelspec2 results - group title headers */
.modelspec2Type .groupTitleCont {
	background-color: var(--main-header-menu-bg-color);
	color: var(--menu-text-color);
	padding: .25em;
}

.modelspec2Type .groupTitleCont .groupTitle {
	margin: 0;
	padding: 0.2em 0;
	font-size: 0.95em;
	color: var(--menu-text-color);
}

.modelspec2Type .groupTitleCont .groupTitle a {
	color: var(--secondary-text-color);
	text-decoration: none;
	padding-left: 0.8em;
}

/** License plate **/
/* model search */
div.modelspec2 .licenceplate-graphic > span {
	text-align: center;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='596.1' height='433.53' viewBox='0 0 596.1 433.53'%3E%3Crect width='596.1' height='433.53' style='fill:%23ef2b2d'/%3E%3Crect x='162.57' width='108.38' height='433.53' style='fill:%23fff'/%3E%3Crect y='162.57' width='596.1' height='108.38' style='fill:%23fff'/%3E%3Crect x='189.67' width='54.19' height='433.53' style='fill:%23002868'/%3E%3Crect y='189.67' width='596.1' height='54.19' style='fill:%23002868'/%3E%3C/svg%3E") 5px 3px transparent no-repeat;
	background-size: 60%;
	background-position-x: center;
	background-position-y: 5px;
	vertical-align: bottom;
}

div.modelspec2 .licenceplate-graphic > span {
	background-color: #164A9B;
	color: white;
	padding: 0;
	font-size: 60%;
	display: flex;
	flex-flow: row;
	min-width: 40px;
}

div.modelspec2 .licenceplate .input-group-text {
	border-color: #164A9B;
}

div.modelspec2 .licenceplate-graphic > span::after {
	content: "N";
	color: white;
	font-weight: bold;
	margin-top: auto;
	text-align: center;
	display: block;
	width: 100%;
}

div.modelspec2 .licenceplate input {
	height: auto;
}

div.modelspec2 .licenceplate input:focus {
	color: #495057;
	background-color: #fff;
	border-color: #164A9B;
	outline: 0;
	box-shadow: none;
}
/**  **/
.modelspec2Type .searchBoxes-subtile,
.pageCustom .searchBoxes-subtile,
.pageCustom #ModelSelect span.select {
	width: 100%;
}



@media (max-width: 576px) {
	.modelspec2Type.designPlus .container {
		padding-left:0;
		padding-right:0;
	}

	.modelspec2Type .modelspec2Tpl .modelspec2.container {
		padding-left:0;
		padding-right:0;
	}
}

/* History item delete button */
.historyitem {
	position: relative;
}

.historyitem-delete {
	float: right;
	cursor: pointer;
	opacity: 0.4;
	font-size: 1.2em;
	line-height: 1;
	padding: 0 0.3em;
}

.historyitem-delete:hover {
	opacity: 1;
}

li.historyitem .historyitem-delete {
	position: absolute;
	right: 0.3em;
	top: 50%;
	transform: translateY(-50%);
}

/* History item delete button */
.historyitem {
	position: relative;
}

.historyitem-delete {
	float: right;
	cursor: pointer;
	opacity: 0.4;
	font-size: 1.2em;
	line-height: 1;
	padding: 0 0.3em;
}

.historyitem-delete:hover {
	opacity: 1;
}

li.historyitem .historyitem-delete {
	position: absolute;
	right: 0.3em;
	top: 50%;
	transform: translateY(-50%);
}