/*
Theme Name: Divi Child
Template: Divi
Version: 1.0.0
Author: Agence Monument
*/

@media (max-width: 1200px) {
	#custom-header .et_pb_menu__logo-wrap {
		width: 150px !important;
	}
	#menu-principal > li > a {
		font-size: 12px !important;
	}

	#custom-header .et_pb_column.et-last-child {
		width: 20% !important;
	}

	#link-contact {
		font-size: 16px !important;
		transition: none !important;
	}
	body #custom-header #link-contact:hover,
	body #custom-header #custom-header #link-contact:focus {
		font-size: 16px !important;
	}
}

@media (max-width: 980px) {
	#custom-header .et_pb_column.et-last-child {
		width: 100% !important;
	}
}

/* ---- WRAPPER GÉNÉRAL ---- */
#wpsl-wrap {
	font-family: inherit;
	color: #353740;
}

/* ---- FORMULAIRE DE RECHERCHE ---- */
#wpsl-search-wrap {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 15px;
	padding: 20px;
	background-color: #f7f7f7;
	border-bottom: 2px solid #a8875e;
}

#wpsl-search-wrap form {
	display: flex;
	align-items: flex-end;
	gap: 40px;
	flex-wrap: wrap;
}

#wpsl-search-wrap label {
	white-space: nowrap;
	margin-bottom: 0;
	color: #353740;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 1px;
}

#wpsl-search-wrap input[type="checkbox"] {
	accent-color: #a8875e;
}

#wpsl-result-list {
	overflow-y: auto;
	background-color: #f7f7f7;
}

/* ---- CHAMPS ---- */
.wpsl-input,
#wpsl-radius,
#wpsl-results {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wpsl-input label,
#wpsl-radius label,
#wpsl-results label {
	display: block;
	white-space: nowrap;
	margin-bottom: 0;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 1px;
	color: #353740;
}

label[for="wpsl-search-input"]::after {
	content: " *";
	color: #c0392b;
}

#wpsl-search-input {
	border: 1px solid #a8875e;
	border-radius: 0;
	padding: 8px 12px;
	color: #353740;
	background-color: #ffffff;
	height: 38px;
}

#wpsl-search-input.wpsl-error {
	border-color: #c0392b;
	outline: none;
}

.wpsl-input {
	position: relative;
}

.wpsl-field-error {
	display: none;
	position: absolute;
	top: 90%;
	left: 0;
	color: #c0392b;
	font-size: 11px;
	margin-top: 2px;
	white-space: nowrap;
}

#wpsl-radius select,
#wpsl-results select {
	border: 1px solid #a8875e;
	border-radius: 0;
	color: #353740;
	background-color: #ffffff;
	padding: 8px 12px;
}

/* ---- DROPDOWNS ---- */
.wpsl-dropdown {
	border: 1px solid #a8875e;
	border-radius: 0;
	background-color: #ffffff;
	min-width: 120px;
	position: relative;
	cursor: pointer;
}

.wpsl-selected-item {
	padding: 8px 12px;
	color: #353740;
	height: 38px;
	display: flex;
	align-items: center;
}

.wpsl-dropdown > div {
	position: absolute;
	top: 100%;
	left: -1px;
	right: -1px;
	overflow: hidden;
	opacity: 0;
	z-index: 100;
	background-color: #ffffff;
	border: 1px solid #a8875e;
	border-top: none;
	transition: opacity 150ms ease-in-out;
}

.wpsl-dropdown.wpsl-active > div {
	opacity: 1;
}

.wpsl-dropdown ul {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.wpsl-dropdown ul li {
	padding: 8px 12px;
	color: #353740;
	font-size: 13px;
}

.wpsl-dropdown ul li:hover,
.wpsl-dropdown ul li.wpsl-selected-dropdown {
	background-color: #f7f7f7;
	color: #a8875e;
}

.wpsl-select-wrap {
	display: flex;
	gap: 60px;
	align-items: flex-end;
}

/* ---- CHECKBOX FILTRE ---- */
#wpsl-checkbox-filter {
	display: flex;
	align-items: flex-end;
	margin: 0;
	padding: 0 0 2px;
	list-style: none;
}

#wpsl-checkbox-filter label {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 1px;
	color: #353740;
}

#wpsl-checkbox-filter input[type="checkbox"] {
	accent-color: #a8875e;
}

/* ---- BOUTON ---- */
.wpsl-search-btn-wrap {
	display: flex;
	align-items: flex-end;
}

#wpsl-search-btn,
input#wpsl-search-btn[type="submit"] {
	background-color: transparent;
	color: #353740;
	border: 1px solid #a8875e;
	border-radius: 0;
	padding: 9px 24px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 11px;
	cursor: pointer;
	height: 38px;
	-webkit-appearance: none;
	appearance: none;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

#wpsl-search-btn:hover,
input#wpsl-search-btn[type="submit"]:hover {
	background-color: #a8875e;
	color: #f7f7f7;
}

/* ---- LAYOUT CARTE + RÉSULTATS ---- */
#wpsl-result-list {
	float: left;
	width: 33%;
}

#wpsl-gmap {
	float: right;
	width: 66.5%;
}

@media (max-width: 768px) {
	#wpsl-result-list {
		display: none;
	}

	#wpsl-gmap {
		float: none;
		width: 100%;
	}

	#wpsl-search-wrap form {
		flex-direction: column;
		gap: 16px;
		width: 100%;
	}

	.wpsl-input,
	#wpsl-radius,
	#wpsl-results {
		width: 100%;
	}

	#wpsl-search-input,
	.wpsl-dropdown {
		width: 100% !important;
		min-width: unset;
		box-sizing: border-box;
	}

	.wpsl-input,
	.wpsl-input input {
		width: 100% !important;
		box-sizing: border-box;
	}

	.wpsl-select-wrap {
		flex-direction: column;
		gap: 16px;
		width: 100%;
	}

	#wpsl-category {
		display: flex;
		flex-direction: column;
		gap: 6px;
		width: 100%;
	}

	#wpsl-category label {
		display: block;
		white-space: nowrap;
		margin-bottom: 0;
		text-transform: uppercase;
		font-size: 11px;
		letter-spacing: 1px;
		color: #353740;
	}

	#wpsl-category select {
		width: 100% !important;
		border: 1px solid #a8875e;
		border-radius: 0;
		color: #353740;
		background-color: #ffffff;
		padding: 8px 12px;
		height: 38px;
		box-sizing: border-box;
	}

	#wpsl-checkbox-filter {
		align-items: center;
	}

	.wpsl-search-btn-wrap {
		width: 100%;
	}

	#wpsl-search-btn,
	input#wpsl-search-btn[type="submit"] {
		width: 100%;
	}
}

/* ---- LISTING DES RÉSULTATS ---- */
#wpsl-stores {
	background-color: #f7f7f7;
}

#wpsl-stores li {
	border-bottom: 1px solid #e0d8cf;
	padding: 15px;
	list-style: none;
}

#wpsl-stores li strong a,
#wpsl-stores li .wpsl-store-location-name {
	color: #353740;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
}

#wpsl-stores li p {
	color: #353740;
	font-size: 13px;
}

#wpsl-stores a {
	color: #a8875e;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 1px;
}

#wpsl-stores a:hover {
	color: #353740;
}

#wpsl-stores .wpsl-distance {
	color: #a8875e;
	font-size: 12px;
}

/* ---- INFO WINDOW (popup carte) ---- */
.gm-style-iw-chr {
	height: 0;
	overflow: visible;
}

.gm-ui-hover-effect {
	position: absolute !important;
	top: 4px !important;
	right: 4px !important;
	z-index: 1;
}

.wpsl-info-window {
	padding: 30px 16px 0px 0px;
	min-width: 200px;
	font-family: inherit;
}

.wpsl-info-window p {
	margin: 0 0 8px;
}

.wpsl-info-window strong a {
	color: #353740;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.wpsl-info-window strong a:hover {
	color: #a8875e;
}

.wpsl-info-window span {
	display: block;
	color: #353740;
	font-size: 12px;
	line-height: 1.5;
}

.wpsl-store-category {
	display: inline-block !important;
	margin-top: 12px;
	margin-bottom: 8px;
	padding: 2px 8px;
	border: 1px solid #a8875e;
	color: #a8875e;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.wpsl-info-actions {
	margin-top: 8px;
	border-top: 1px solid #e0d8cf;
	padding-top: 8px;
}

.wpsl-info-actions a {
	color: #a8875e;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 1px;
}

.wpsl-info-actions a:hover {
	color: #353740;
}

#wpsl-direction-details {
	display: none;
}
