.wp-block-acf-grid-builder{
	max-width: none!important;
}

.filters-wpgb{
	display: flex;
	gap: 24px;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.filters-wpgb fieldset{
	margin: 0px!important;
}

.select-filters-wpgb{
	margin-bottom: 60px;
}

.select-filters-wpgb .wpgb-facet .wpgb-inline-list{
	justify-content: flex-end;
}
.wpgb-facet .wpgb-button{
	border: none!important;
	outline: none!important;
}
.wpgb-facet .wpgb-button[aria-pressed="true"]{
	background-color: var(--wp--preset--color--black)!important;
	border-color: var(--wp--preset--color--black)!important;
	outline: none!important;
}

.select-filters-wpgb fieldset{
	margin: 0px!important;
}

.wpgb-select-dropdown .wpgb-select-item.wpgb-focused{
	background-color: #e6e6e6!important;
	color: var(--wp--preset--color--black)!important;
}
.wpgb-select-dropdown ul li[aria-selected="true"]{
	background-color: var(--wp--preset--color--red)!important;
}
.wpgb-select-placeholder .wpgb-select-values>div.wpgb-select-value button:hover, .wpgb-select-placeholder .wpgb-select-values>div.wpgb-select-value button:focus {
    background: var(--wp--preset--color--red)!important;
}

.wpgb-select-placeholder .wpgb-select-values>div.wpgb-select-value button:hover svg path, .wpgb-select-placeholder .wpgb-select-values>div.wpgb-select-value button:focus svg path{
    fill: white!important;
}

ul li mark, ul li .mark{
	background-color: #e6e6e6!important;
	color: var(--wp--preset--color--black)!important;
}


/* Pagination */
.wpgb-facet.wpgb-facet-4{
    text-align: center;
    margin-top: 60px;
}

.wpgb-facet .wpgb-pagination li a[aria-current],
.wpgb-facet .wpgb-pagination li a,
.wpgb-facet .wpgb-pagination li a:hover
 {
	outline: none!important;
	color: var(--wp--preset--color--black)!important;
}

@media screen and (min-width: 0px) and (max-width: 1020px) {
	.filters-wpgb .wpgb-facet{
		width: calc(50% - 12px);
	}

}

@media screen and (min-width: 0px) and (max-width: 781px) {
	.filters-wpgb .wpgb-facet{
		width: 100%
	}
	.filters-wpgb{
		gap: 14px;
	}
}



/* CSS de l'ancien block find-vehicle */

.wp-block-acf-find-vehicle{
	max-width: none!important;
}

.content-vehicle .content-title-block{
	text-align: center;
}

.content-vehicle .content-title-block h2{
    margin-top: 0px!important;
    text-align: center;
    font-size: var(--wp--preset--font-size--h-3)!important;
    margin-bottom: 0px;
}

.content-vehicle .content-title-block img{
	width: 61px;
	margin-bottom: 35px!important;
}

.content-vehicle .content-title-block{
	margin-bottom: 65px!important;
}

.content-vehicle.alignwide{
	margin: 140px auto;
	position: relative;
}

.ui-widget.ui-widget-content{
	height: 170px;
    overflow: auto;
	color: #151414;
	border: 1px solid #D9D9D9!important;
}

.ui-state-active, .ui-widget-content .ui-state-active{
	background: #F5F5F5!important;
	border: none!important;
	color: #151414!important;
}

#filter-form{
	display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
	position: relative;
}

.content-select-filter-responsive{
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
}

#filter-form input[type=text]{
	position: absolute;
    background: #F5F5F5;
    border: 1px solid #D9D9D9;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    align-items: flex-end;
    letter-spacing: -0.04em;
    color: #151414;
    padding: 17px 44px;
    outline: none;
    width: 444px;
    min-height: inherit;
    line-height: 16px;
	border-radius: 0px;
    background: #F5F5F5 url(images/search.svg) no-repeat left 15px top 55%;
    background-size: 14px 14px;
    cursor: pointer;
    box-shadow: none!important;
	height: 53px;
}

#filter-form input::placeholder{
	color: var(--wp--preset--color--black)!important;
}

#filter-form select{
    border: 1px solid #D9D9D9;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    align-items: flex-end;
    letter-spacing: -0.04em;
    color: #151414;
    padding: 17px 18px;
    outline: none;
    width: 212px;
    min-height: inherit;
    line-height: 17px;
	border-radius: 0px;
    background: #fff url(images/arrow.svg) no-repeat right 18px top 55%;
    background-size: 10px 10px;
	cursor: pointer;
	box-shadow: none!important;
}

#filter-form select:nth-child(2){
	margin-left: 464px;
}

.select-filter{
	margin-top: 16px;
	margin-bottom:0px;
	display: flex;
    align-items: center;
	gap: 20px;
	justify-content: flex-end;
	height: 38px;
	width: 100%;
	transition: all 0.2s;
}

.select-filter.visible{
	opacity: 1;
	transition: all 0.2s;
}

.select-filter p{
	font-style: normal;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--black);
	white-space: nowrap;
}

.content-select-filter{
	display: flex;
    gap: 16px;
}

.select-filter p.filter{
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
	color: var(--wp--preset--color--white);
	padding: 10px 35px;
	padding-right: 15px;
	border-radius: 0px;
	margin-bottom: 0px;
	background: var(--wp--preset--color--black) url(images/close.svg) no-repeat left 14px top 51%;
    background-size: 11px 11px;
	cursor: pointer;
	white-space: nowrap;
}

#all-products{
	flex-wrap: wrap;
    display: flex;
    gap: 53px;
	position: relative;
	justify-content: center;
}

#all-products .loader-filter{
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    width: 100%;
    height: calc(100% + 20px);
    display: flex;
    background-color: rgba(255,255,255,0.5);
	opacity: 0;
	transition: all 0.2s;
	pointer-events: none;
	padding-top: 65px;
}

.loader-filter.active{
	opacity: 1!important;
	transition: all 0.2s;
	pointer-events: all!important;
}

.product-wrapper{
    width: 245px!important;
    padding: 0px!important;
	display: flex;
}
.btn-configurateur{
	background-color:var(--wp--preset--color--black)!important;
	color: var(--wp--preset--color--white)!important;
}
.btn-configurateur:hover{
	background-color:var(--wp--preset--color--white)!important;
	color: var(--wp--preset--color--black)!important;
}
.product-wrapper .product{
	border: 1px solid #D9D9D9;
	text-align: center;
	margin-top: 43px;
	width: 100%;
	padding-bottom: 23px;
    position: relative;
	padding-left: 10px;
    padding-right: 10px;
	padding-top: 39px;
}

.product-wrapper img{
	height: 86px;
    width: auto;
}

.product-wrapper .product-title h4,
.product-wrapper .product-title .product-type-title{
	font-style: normal;
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red);
	margin-top: 17px;
	margin-bottom: .5rem;
	line-height: 1.2;
}

.product-wrapper .product-title h3{
	font-size: 25px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--black);
	margin-top: 8px;
	margin-bottom: 14px;
}

.product-wrapper .product-info p{
	font-style: normal;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: -0.01em;
	color: #9C9C9C;
	margin-bottom: 8px;
}

.product-wrapper .product-info p strong{
	font-weight: 400;
	color:var(--wp--preset--color--black);
}

.product-wrapper .product-info p:last-child{
	margin-bottom: 0px;
}
.product-wrapper .product-info .content-btn.content-btn-absolute{
    position: inherit!important;
}
.product-wrapper .product-info .content-btn{
	position: absolute;
    top: calc( 100% - 21px );
    left: 0px;
	width: 100%;
    gap: 11px;
    display: flex;
    justify-content: center;
}

.product-wrapper .product-info a{
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
	transition: all 0.2s;
    text-decoration: none;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 0px;
    display: inline-block;
	border: solid 1px var(--wp--preset--color--black);
}
.product-wrapper .product-info a:hover{
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
	transition: all 0.2s;
}

.product-wrapper .product-info button{
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    text-decoration: none;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 0px;
    display: inline-block;
	border: none;
	display: flex;
    align-items: center;
    gap: 7px;
	position: absolute;
    top: 0px;
    right: 0px;
}

/* styles de base pour la checkbox */
.product-wrapper .product-info button input[type="checkbox"] {
	-webkit-appearance: none; /* supprime l'apparence par défaut */
	appearance: none;
	border: 1px solid var(--wp--preset--color--black);
	border-radius: 0px; /* coins arrondis */
	width: 14px; /* taille de la case à cocher */
	height: 14px;
	position: relative;
	flex-shrink: 0;
  }

  /* styles pour la case à cocher elle-même */
  .product-wrapper .product-info button input[type="checkbox"]::before {
	content: "";
	display: block;
	position: absolute;
	width: 12px;
	height: 12px;
	background-color: #fff; /* couleur blanche par défaut */
	border-radius: 0px; /* coins arrondis */
  }

  /* styles pour la case à cocher cochée */
.product-wrapper .product-info button input[type="checkbox"]:checked::before {
	background-image: url(../find-vehicle/images/check.png);
	background-size: contain;
}

/* Pas de resultat */

#all-products .not-result{
	font-style: normal;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: -0.04em;
	color:var(--wp--preset--color--red);
    display: block;
    text-align: center;
    width: 100%;
}

/* Pagination */

#all-products nav{
	display: flex;
    justify-content: center;
}

#all-products nav a{
	border: none;
    color: var(--wp--preset--color--black);
}

#all-products nav a:hover{
	background: none!important;
	color: var(--wp--preset--color--red);
}

#all-products nav a.page-link:focus{
	background: none;
	box-shadow: none;
}
#all-products nav .active>.page-link, #all-products nav .page-link.active{
	background: none;
	color: var(--wp--preset--color--red);
}

@media screen and (min-width: 0px) and (max-width: 1020px) {
	#filter-form{
		justify-content: flex-start;
	}
	#filter-form input[type=text]{
		width: 100%;
	}
	#filter-form select{
		width: calc(33.333% - 13.333333px);
	}

	#filter-form input[type=text]{
		position: inherit;
	}
	#filter-form select:nth-child(2){
		margin-left: 0px;
	}
}

@media screen and (min-width: 0px) and (max-width: 781px) {
	#filter-form select{
		width: calc(50% - 10px);
	}
}

@media screen and (min-width: 0px) and (max-width: 500px) {
	.content-vehicle .content-title-block {
		margin-bottom: 45px!important;
	}
	.content-vehicle .content-title-block h2{
		font-size: 30px!important;
	}
	#filter-form select{
		width: 100%;
	}
	.select-filter{
		display: block;
		height: auto;
	}
	.select-filter p.mb-0{
		margin-bottom: 13px!important;
	}
	.content-select-filter{
		flex-wrap: wrap;
	}
	#all-products .not-result{
		margin-top: 60px;
	}

	.content-select-filter-responsive{
		transform: translate(0px, -100%);
		transition: all 0.2s;
		position: fixed;
		top: 0px;
		right: 0px;
		width: 100%;
		background-color: var(--wp--preset--color--white);
		z-index: 8;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 0px 5%;
		padding-bottom: 18px;
		box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.1);
		padding-top: 85px;
	}
	.content-select-filter-responsive.open{
		transform: translate(0px, 0%);
		transition: all 0.2s;
	}
	.content-select-filter-responsive p.d-none{
		display: flex!important;
		font-style: normal;
		font-weight: 700;
		font-size: 20px;
		line-height: 23px;
		width: 100%;
		letter-spacing: -0.03em;
		text-transform: uppercase;
		margin-bottom: 0px;
		align-items: center;
		justify-content: space-between;
	}
	#filter-form select{
		padding: 12px 13px;
	}

	.btn-filter-responsive.d-none{
		width: 53px;
		height: 53px;
		display: flex!important;
		align-items: center;
		background-color: #F5F5F5;
		border: 1px solid #D9D9D9;
		justify-content: center;
		border-top-right-radius: 3px;
		border-bottom-right-radius: 3px;
		border-left: none;
	}
	.btn-filter-responsive.d-none svg{
		pointer-events: none;
	}
	#filter-form{
		gap: 18px 0px;
	}
	#filter-form input[type=text] {
		width: calc(100% - 53px);
		border-top-left-radius: 3px;
		border-bottom-left-radius: 3px;
	}
}
