/*
 *	Item's page "Tiles" tweaks.
 *	Stevie - 10/12/2019
 *
 */
 
 @font-face {
  font-family: 'UKreg';
  src: url('/assets/fonts/UKNumberPlate.ttf') format('truetype');
}
 
#vehicle_list_page {
/*	background: #f7f7f7;*/
	background: #fff;
	border: 0 !important;
}

#plate-enquiry-form {
	background: #f7f7f7;
}

#list_page_item_count {
	font-size: 1.5rem;
	font-weight: bold;
}

@media only screen and (max-width: 576px)  {
	#list_page_item_count {
		display: block;
		padding-bottom: 1rem;
	}
}

#list_page_item_count i {
	margin-right: 0.2em;
	color: #666;
}

#list_page_page_count {
	color: #666;
	font-weight: bold;
}

/* Little helpers to put a space in around Icons next to words. */
.icon-left { margin-right: 0.5rem; }
.icon-right { margin-left: 0.5rem; }

/* =========FILTERBOX============================================================================================================= */

.reset_btn {
	border: 1px solid #DC4B4E;
	border-radius: 4px;
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 13px;
	width: 100%;
	color: #DC4B4E;
}

.reset_btn:hover {
	background-color: #DC4B4E;
	color: #fff;
}

/* This defines the layout of the filter box on Desktop/Tablet/Mobile with CSS-Grid. */
.filter-grid {
	display: grid;
	box-sizing: border-box;
	grid-gap: 0;
	padding: 0.5rem;
	grid-template-areas:
		"category"
		"make"
		"gearbox"
		"fuel"
		"location"
		"sort"
		"search"
}

@media only screen and (min-width: 576px)  {
	
	.collapse.dont-collapse-sm {
		display: block;
		height: auto !important;
		visibility: visible;
	}

	.filter-grid {
		grid-template-columns: 1fr 1fr;
		grid-gap: 0.5rem;
		padding: 0.2rem 0.4rem;
		grid-template-areas:
			"category make"
			"gearbox fuel"
			"location sort"
			"search search"
	}
}

@media only screen and (min-width: 768px)  {
	.filter-grid {
		grid-template-columns: 1fr 1fr 1fr;
		grid-gap: 0.5rem;
		padding: 0.2rem 0.4rem;
		grid-template-areas:
			"category make gearbox"
			"fuel location sort"
			"search search search"
	}
}

@media only screen and (min-width: 1090px)  {
	.filter-grid {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
		grid-template-areas:
			"category make gearbox fuel location"
			"search search search search sort"
	}
}

/* Used to define the areas */
.filter-option-category { grid-area: category; }
.filter-option-make { grid-area: make; }
.filter-option-gearbox { grid-area: gearbox; }
.filter-option-fuel { grid-area: fuel; }
.filter-option-location { grid-area: location; }
.filter-option-sort { grid-area: sort; }
.filter-option-search { grid-area: search; }

.form-group {
	margin-bottom: 0.5rem !important;
}

.items-filter-box {
/*	background: #F7F7F7;*/
	width: 100%;
}

/* Styles the checkbox inside the select menu's inside the filter box. */
.ilf {
    width: 20px;
}

.items-filter-box label {
	font-size: 13px;
    max-width: 100%;
    color: #666;
    margin-left: 2px;
	margin-bottom: 2px;
	display: block;
}

.search-box {
	min-width: 75%;
	float: left;
	border-radius: .25rem 0 0 .25rem;
	border: 1px solid #ccc;
	border-right: 0;
	font-size: 13px;
	padding: .375rem .75rem;

}

.search-clear {
	width: 10%;
	float: left;
	border-radius: 0;
	border: 0;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	color: #DC4B4E;
}

.search-submit {
	width: 15%;
	float: left;
	border: 1px solid #ccc;
	border-left: 0;
	border-radius: 0 .25rem .25rem 0;
	background: #ccc;
	color: #666;
}

.reset_btn {
    border: 1px solid #DC4B4E;
    border-radius: 4px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
    width: 100%;
    color: #DC4B4E;
}

.reset_btn:hover {
	background: #DC4B4E;
	color: #fff;
}
 
/* ============================================================================================================================== */

.card-section {
	padding: 1rem 0;
}

/* Defines the color border under the image to each category */
.card-car img {
	border-top: 4px solid #2B4793;
}
.card-commercial img {
	border-top: 4px solid #e84118;
}

.card-plant img {
	border-top: 4px solid #ffa502;
}

#plates-banner-img {
	background-image: url(/assets/img/3.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Just defines the box the plate sits in */
.card-plate .box {
	height: 16rem;
	width: auto;
	background: #B0B0B0;
}

/* Gives the reg plate its gradient background, and a small shadow */
.uk_reg_plate {
	position: relative;
	width: 100%;
	height: 4rem;
	background: #FFD700;
	background: -moz-linear-gradient(45deg,  #ffd700 0%, #febb12 100%); 
	background: -webkit-linear-gradient(45deg,  #ffd700 0%,#febb12 100%);
	background: linear-gradient(45deg,  #ffd700 0%,#febb12 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffd700', endColorstr='#febb12',GradientType=1 );
/*	border-radius: 0.4rem;*/
	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
	transition: all .2s ease-in-out;
}

/* Sets up the hover shadow, in waiting. */
.uk_reg_plate::after {
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* if the card is hovered, do the magic */
.card-plate:hover .uk_reg_plate {
	transform: scale(1.05);
	box-shadow: 0 5px 10px rgba(0,0,0,0.30);
}

.card-plate .tile_card_item_price::before {
	content: "";  
}


/* change opacity of pre-loaded shadow, instead of creating a new one. */
.uk_reg_plate:hover::after {
	opacity: 1;
}

/* Sizes the inline EU SVG. */
.uk_reg_plate svg {
	position: absolute;
	margin-left: 4px;
	height: 4rem;
	width: 2rem;
}

/* Defines the custom font and sizing/position of text */
.uk_reg_plate span {
	width: 100%;
	font-family: 'UKreg',San-serif;
	text-align: center;
	font-size: 2.6rem;
	color: #111;
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Removes the link hover css */
.uk_reg_plate span:hover {
	text-decoration: none;
	text-decoration-color: #111;
}

.plate-info {
	background: rgba(0, 0, 0, 0.7);
	padding: 1rem;
	color: #fff;
}

.price-plus-vat {
	color: #2B4793;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
}

.plate-info h1 {
	color: #00B588;
}

.plate-info a {
	color: #00B588;
}

.plate-info .intro-text {
	display: block;
	margin-bottom: 0.5rem;
}

/* Add's in the +VAT to the price. */
.card-commercial .tile_card_item_price::after {
	content: "+VAT";
	color: #2B4793;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
}

/* Reduces the spacing of cards when in column view (on mobile) */
@media only screen and (max-width: 576px)  {
	.card-section {
		padding: 0.5rem 0;
	}
}

/* Sets the style of the Card Title */
.tile_card a {
	color: #222;
	font-weight: 500;
}

.tile_card a:hover {
	text-decoration: underline;
	text-decoration-color: #222;
}

.tile_card_item_title {
	color: #222;
	font-weight: 700;
	font-size: 1.2rem;
}

/* Sets the price style, plus adds the £ sign. */
.tile_card_item_price {
	font-size: 2.2rem;
	line-height: 2rem;
	display: block;
	color: #2B4793;
	font-family: 'Roboto Condensed', sans-serif;
}

/*
.tile_card_item_price::before {
	content: "\00A3";
}
*/

/* Set's the slashed price (if there is one) and the £ sign. */
.tile_card_item_price_reduced {
	padding: 0 4px;
	text-decoration: line-through;
	font-family: 'Roboto Condensed', sans-serif;
	color:#B10508;
	line-height: 1;
	font-size: 1.7rem;
	font-weight: 400;
}

/*
.tile_card_item_price_reduced::before {
	content: "\00A3";
}
*/

.tile_card_item_location {
	color: #777;
	color: #008766;
	font-weight: bold;
	font-size: 0.9rem;
}

.tile_card_small_details {
	font-size: 0.8rem;
	font-weight: 700;
	color: #222;
	opacity: 0.5;
	cursor: default;
	transition: 0.1s;
}

.item_detail {
	word-wrap: break-all;
}

/* Detail label's are hidden by default */
.tile_card_small_details .item_detail .detail_label {
	font-weight: 500;
	opacity: 0;
}

/* On hover detail, the label is revealed. */
.item_detail:hover .detail_label {
	opacity: 0.8;
	transition: all 0.001s ease-in-out;
}

/* Stops effect 'twitching/jumping' between children. */
.tile_card_small_details { pointer-events: none; } .tile_card_small_details > * { pointer-events: auto; }

/* On hovering 1 element the other's fade out. */
.tile_card_small_details:hover > * {
  opacity: 0.4;
}

/* The child in focus becomes darkest */
.tile_card_small_details:hover > *:hover {
  opacity: 1;
  color: #000;
}

.strikethrough {
  position: relative;
}
.strikethrough:before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid;
  border-color: inherit;
color: #B10508;
  -webkit-transform:rotate(-8deg);
  -moz-transform:rotate(-8deg);
  -ms-transform:rotate(-8deg);
  -o-transform:rotate(-8deg);
  transform:rotate(-8deg);
}
.price-ribbon {
  position: absolute;
  left: -5px; top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 150px;
  height: 150px;
  text-align: right;
}
.price-ribbon span {
  font-size: 10px;
  font-weight: bold;
  color: #FFF;
  text-transform: uppercase;
  text-align: center;
  line-height: 12px;
  padding-top: 3px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  width: 164px;
  height: 30px;
  display: block;
  background: #9e0003;
  background: linear-gradient(#F80A0F 0%, #9e0003 100%);
  box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
  position: absolute;
  top: 33px;
  left: -34px;
	line-height: 2.5
}
.price-ribbon span::before {
  content: "";
  position: absolute; left: 0px; top: 100%;
  z-index: -1;
  border-left: 3px solid #9e0003;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #9e0003;
}
.price-ribbon span::after {
  content: "";
  position: absolute; right: 0px; top: 100%;
  z-index: -1;
 border-left: 3px solid transparent;
  border-right: 3px solid #9e0003;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #9e0003;
}
@-moz-document url-prefix() {
	.tile_card_small_details:hover {
		color: #000;		
	}
}

@media (max-width: 1200px) {
	.uk_reg_plate span {
		text-align: center;
		font-size: 2rem;
		padding-left: 35px;
		padding-top: 8px;
	}
}

