/* Station directory filter */

#station-directory-filter p {
	display: inline-block;
	font-size: 1.35rem;
	font-weight: bold;
}

#station-directory-filter .select2 {
	margin-left: 10px;
	margin-right: 10px;
	min-width: 250px;
	max-width: 250px;
}

#station-directory-filter input[type="submit"] {
	display: block;
}


/* Store details listing */

.store-listing {
	margin-bottom: 1.6%;
	margin-left: -2.5%;
	margin-right: -2.5%;
}

.store-listing .store.one-third {
	display: inline-block;
	width: 95%;
	margin: 2.5%;
}

@media (min-width: 420px) {
	.store-listing .store.one-third {
		width: 45%;
		margin: 2.5%;
	}
}

@media (min-width: 738px) {
	.store-listing .store.one-third {
		width: 30%;
		margin: 1.6%;
	}
}

/* Store details popup */

.modal-overlay-active {
	overflow: hidden;
}

.modal-overlay {
	display: none;
	content: '';
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,2555,0.8);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 998;
}

.modal-overlay.active {
	display: block;
}

.store-details-popup {
	background: #fff;
	display: none;
	position: absolute;
	width: 1084px;
	max-width: 90%;
	height: 1000px;
	max-height: 90%;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;

	z-index: 999;

	-webkit-box-shadow: 3px 3px 5px 6px #ccc;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
	-moz-box-shadow:    3px 3px 5px 6px #ccc;  /* Firefox 3.5 - 3.6 */
	box-shadow:         3px 3px 5px 6px #ccc;
}

.store-details-popup.active {
	display: block;
}


.store-details-popup .close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 30px;
	height: 30px;
	background:url( ../images/form-close.png );
	background-size: contain;
	text-indent: 100%;
}

.store-details-container {
	height: 100%;
	overflow-y: scroll;
}

.store-details-popup .store-details-header {
	position: relative;
	margin: 10% 10% 0;
}

.store-details-popup .store-details-header .image_block, .store-details-popup .store-details-header .content_block {
	clear:both;
	float:none;
	margin:0 auto 20px auto;
	width:100%;
}

.store-details-popup .store-details-header .image_block {
	max-width:300px;
}

.store-details-popup .store-details-header .content_block h2 {
	margin-top:0px;
}

@media screen and ( min-width: 768px ) {

	.store-details-popup .store-details-header .image_block, .store-details-popup .store-details-header .content_block {
		clear:none;
		float:left;
		margin:0 0 20px 0;
	}

	.store-details-popup .store-details-header .image_block {
		margin-right:3%;
		width:30%;
		max-width:300px;
	}

	.store-details-popup .store-details-header .content_block {
		width:62%;
		width:calc( 100% - 300px - 3% );
	}

}

.store-details-popup .store-details-header p {
	clear: none;
}

.store-details-popup .store-details-content {
	border-bottom: 1px solid #D8DBDC;
	clear: both;
	position: relative;
	margin: 0 10% 10%;
}

.store-details-popup .store-details-content:after {
	content: "";
	display: table;
	clear: both;
}

.store-details-popup .store-details-content .border-line {
	border-bottom: 1px solid #D8DBDC;
	border-top: 1px solid #D8DBDC;
	padding: 15px 10px;
	margin: 0 0 15px;
}

.store-details-popup .store-details-content .odd,
.store-details-popup .store-details-content .even {
	padding: 10px;
}

.store-details-popup .store-details-content .even {
	background: #f8f8f8;
}

.store-details-popup .store-details-content .odd:after,
.store-details-popup .store-details-content .even:after {
	content: "";
	display: table;
	clear: both;
}

.store-details-popup .store-details-content .border-line:after {
	content: "";
	display: table;
	clear: both;
}

.store-details-popup .store-details-content .title,
.store-details-popup .store-details-content .count {
	font-weight: bold;
}

.store-details-popup .store-details-content div > p {
	margin-top: 0;
	margin-bottom: 0;
}

.store-details-popup .store-details-content div p b,
.store-details-popup .store-details-content div p strong {
	color: #535353;
}

.store-details-popup .store-details-content .title p,
.store-details-popup .store-details-content .count p {
	font-size: 125%;
	margin-top: 0;
	margin-bottom: 0;
}

.store-details-popup .store-details-content span {
	display: block;
}

@media (min-width: 738px) {

	.desktop-hidden {
		display: none !important;
		visibility: hidden !important;
		margin: 0 !important;
		float: none !important;
	}

	.store-details-popup .close {
		top: -30px;
		right: -30px;
		width: 60px;
		height: 60px;
		background: url( ../images/form-close@2x.png );
		background-size: contain;
	}

	.store-details-popup .store-details-content .larger {
		font-size: 150%;
	}

	.store-details-popup .store-details-content span {
		float: left;
		margin-left: 3%;
	}

	.store-details-popup .store-details-content .where-is-it.title {
		margin-left: 6%; /* account for the 'count' element plus the standard margin */
	}

	.store-details-popup .store-details-content .count {
		clear: both;
		width: 3%;
		margin-left: 0;
	}

	.store-details-popup .store-details-content .count p {
		line-height: 1rem;
		margin-left: 1rem;
		margin-top: 1.6rem;
	}


	.store-details-popup .store-details-content .where-is-it {
		width: 40%;
		margin-left: 3%;
	}

	.store-details-popup .store-details-content .opening-times {
		width: 25%;
	}

	.store-details-popup .store-details-content .contact {
		width: 22%;
	}

} /* media query */

a.trigger-popup {
	border: 1px solid #D9D9DB;
	display: block;
	position: relative;
	text-align: center;
}

a.trigger-popup .overlay {
	display: none;
}

a.trigger-popup:hover .overlay {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background: #E76424;
	content: "";
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

a.trigger-popup:hover .overlay .overlay-inner {
	color: #fff;
	top: calc( 50% - 15px ); /* 15px is half the line height */
	position: absolute;
	text-align: center;
	width: 100%;
	line-height: 30px;
	font-size: 16px;
	margin-left: -10px; /* this is half the width of the span / arrow element below - makes the whole thing look centre aligned */
	text-decoration: underline;
}
a.trigger-popup:hover .overlay .overlay-inner span {
	position: absolute;
	content: "";
	border: solid #fff;
	border-width: 0 4px 4px 0;
	display: inline-block;
	padding: 4px;
	top: 9px;
	width: 14px;
	height: 14px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	margin-left: 4px;
}


a.trigger-popup img {
	vertical-align: middle;
	max-height: 150px;
}
