/**
 * Layout
 */
@media ( min-width: 700px ) {

	.wpsl-search {
		padding: 0;
		margin-bottom: 30px;
	}
	
	#wpsl-search-wrap div {
		margin: 0;
		float: none;
		margin-right: 20px;
	}
	
	#wpsl-search-form {
		display: flex;
		justify-content: flex-start;
		align-items: flex-end;
	}
	
	#wpsl-search-form > .wpsl-input:first-child {
		display: flex;
		flex-direction: column;
	}
	
	.wpsl-input {
		flex-grow: 1; /* Use up all the extra available space */
	}
	
	#wpsl-search-input {
		width: 100% !important; /* Override the settings */
	}

}

/**
 * Search
 */
#wpsl-wrap .wpsl-search {
	background: transparent;
}

#wpsl-wrap #wpsl-stores {
	height: auto !important;
}

#wpsl-search-wrap label {
	text-align: left;
	font-size: 18px;
	line-height: 1.2;
}

@media ( max-width: 570px ) {				
	#wpsl-search-wrap label {
		text-align: left;
	}
}

/* Hiding "within" to place it outside user control */
#wpsl-search-wrap #wpsl-radius {
	display: none !important;
}

/*#wpsl-wrap #wpsl-radius {
	margin-right: 40px;
}

#wpsl-radius .wpsl-dropdown {
	width: 150px;
}*/

.wpsl-dropdown .wpsl-selected-item, .wpsl-dropdown li, .wpsl-selected-item {
	padding: 6px 12px !important;
}

#wpsl-search-wrap #wpsl-search-btn {
	color: white !important; 
	border: inherit;
	border-radius: 8px;

	/* Rules from Ananda Designs */
	padding: 0.563em 1.125em 0.813em;
	text-transform: uppercase !important;
    letter-spacing: 0.5px;
    font-weight: 300;
    font-family: "myriad-pro",MyriadPro,"Myriad Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
}

#wpsl-search-wrap #wpsl-search-btn,
#wpsl-search-wrap #wpsl-view-all-btn {
	margin: 0;
}

#wpsl-search-btn {
	padding-left: 20px;
	padding-right: 20px;
}

/**
 * Listings
 */
#wpsl-stores .wpsl-store-location .wpsl-store-thumb {
	width: 300px !important;
	height: auto !important;
	max-height: 220px !important;
	border-radius: 8px;
}

.ananda-x-wpsl-store-location {
	margin-bottom: 1em;
}

.ananda-x-wpsl-store-location h4 {
	margin-top: 0;
    margin-bottom: 0;
    font-size: 26px;
}

#wpsl-wrap #wpsl-result-list li.wpsl-no-results-msg {
	border-width: 0;
}

#wpsl-wrap #wpsl-result-list li.wpsl-no-results-msg h2 {
	margin-top: 10px;
}

/** 
 * Smaller thumbnail
 */
@media ( min-width: 993px ) and ( max-width: 1060px ) {
	
	#wpsl-stores .wpsl-store-location .wpsl-store-thumb {
		width: 200px !important;
	}

}
@media ( min-width: 596px ) and ( max-width: 749px ) {
	
	#wpsl-stores .wpsl-store-location .wpsl-store-thumb {
		width: 200px !important;
	}

}

/** 
 * Show thumbnail above name
 */
@media ( max-width: 595px ) {
	
	#wpsl-stores .wpsl-store-location .wpsl-store-thumb {
		float: none;
		margin: 0;
	}

	.ananda-x-wpsl-store-location {
		clear: both;
	}

}

.wpsl-contact-details {
	clear: none;
}

/**
 * Move border to top, and forgo it when there's a section header
 */
#wpsl-wrap.wpsl-store-below #wpsl-result-list li.ananda-x-wpsl-location-excerpt {
	padding: 10px;
	border-bottom: none;
	border-top: 1px dotted #ccc;
}

#wpsl-wrap.wpsl-store-below #wpsl-result-list li.ananda-x-wpsl-has-section-header,
#wpsl-wrap.wpsl-store-below #wpsl-result-list li.ananda-x-wpsl-location-excerpt:first-child {
	border-width: 0;
}

/**
 * Cluster markers on map
 */
div[style*="wp-store-locator/marker-"] {
	color: white !important;
	font-size: 13px !important;
	background-size: cover;
}

/* Error */
#wpsl-wrap #wpsl-search-input.wpsl-error {
	border-width: 3px !important;
}