html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,input {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
	font: inherit;
	font-size: 100%;
}

:root {
	--color-red: #db5461;
	--color-white: #fafafa;
	--color-blue: #02627f;
	--color-dark-blue: #011627;
	--color-steel-blue: #4281a4;
	--color-grey: #808080;
	--color-light-grey: #f8f9fb; /* #f9fafb */
	--color-medium-grey: #eeecee;
	--color-grey-border: #d5d5d5; /* #e6e8ec */
	--color-light-blue: #e3f2fd;
	--color-orange: #db7f67;
	--color-green: #388e3c;
	--color-light-green: #8bc34a;
	--color-black: #20272C;
	--color-yellow: #f4f7be;
	--color-dark-yellow: #BDB019;
}

img,a img {
	border: none;
}

strong,b {
	font-weight: 700;
}

.hidden {
	display: none;
}

.drag {
	cursor: move !important;
}

ul,li,select {
	margin: 0;
	padding: 0;
	list-style: none;
}

div#hpIntro ul, div#hpIntro li {
	list-style: circle;
}

div#hpIntro ul li {
	margin: 0.5em;
	margin-left: 2em;
}

a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.fa {
	font-family: "Font Awesome 5 Free"; // for the open access version
    font-size: 1.3333333333333333em;
    font-weight: 900;
}

h2 {
	font-size: 1.5em;
	margin-bottom: 0.5em;
}

* + h2 {
	margin-top: 2em;
}

.offline { opacity: 0.5 }

html {
	height: 100%;
}

body {
	background-color: #FFFFFF;
	font: 14px "Montserrat", Verdana, sans-serif;
	color: #555;
	height: 100%;
}

body div#alerts {
	display: block;
	position: fixed;
	bottom: 5em;
	width: 100%;
	text-align: center;
}

body div#alerts span {
	display: none;
	margin: 0.5em 4em;
	padding: 0.5em 1em;
	background-color: #4281a4;
	color: #FFF;
	border: 1px solid black;
	border-radius: 5px;
	float: right;
	clear: right;
}

input.cntlButton {
	margin: 0.3em;
	padding: 0.3em;
	min-height: 1em;
	min-width: 1em;
	cursor: pointer;
	transition: all 0.2s
}

input.greyed {
	background-color: #555 !important;
	cursor: not-allowed;
}

input.cntlButton:hover {
	filter: saturate(5);
}

input.cntlButton.del {
	background-color: #db5461;
	color: #FFF;
}

header#mainHeader {
	width: 100%;
	background-image: linear-gradient(to right bottom, #02627f, #005ea3);
	color: #FFFFFF;
}

header#mainHeader header {
	/* padding: 0.5em;*/
}

header#mainHeader > div {
	display: grid;
}

@media (max-width: 63.9rem) {
	
	header#mainHeader > div {
		grid-template-areas: "title cart button" "nav nav nav";
		grid-template-rows: 5em auto;
		grid-gap: 0.5em;
		width: calc(100% - 1em);
		padding: 0;
		padding-left: 1em;
		height: 5em;
	}
	
	header#mainHeader header div.storeLogo {
		width: 7em !important;
	}
	
	header#mainHeader div#userCart {
		align-self: center !important;
	}
	
	header#mainHeader input#mobileMenuButton {
		display: inline-block;
		grid-area: button;
		background-color: transparent;
		color: #FFF;
		padding: 1em;
		align-self: center;
	}
	
	header#mainHeader ul {
		display: none;
		list-style: none;
		background-color: #404e58;
		height: calc(100vh - 4em);
		position: fixed;
		z-index: 50;
		top: 5em;
		right: -100%;
		width: calc(100% - 1em);
		padding-left: 1em;
	}
	
	header#mainHeader ul li {
		display: block;
		width: calc(100% - 1em);
		padding: 1em 0.5em;
	}
	
	header#mainHeader ul li a {
		border-bottom: 0.2em solid transparent;
	}
}

@media (min-width: 65rem) {
	
	header#mainHeader > div {
		grid-template-areas: "title nav cart";
		grid-template-rows: 4em;
	}
	
	
	header#mainHeader input#mobileMenuButton {
		display: none;
		grid-area: button;
	}
	
	header#mainHeader ul#headerCategories {
		grid-area: nav;
		list-style: none;
		display: flex;
		align-self: flex-end;
	}
	
	header#mainHeader ul#headerCategories li {
		padding: 0 1em;
	}
}

header#mainHeader a, header#mainHeader a:visited { color: #FFF; }
header#mainHeader a:hover { color: var(--dark-blue); }

header#mainHeader header {
	grid-area: title;
}

header#mainHeader header div.storeLogo {
	display: block;
	height: 100%;
	width: 100%;
	background-position: left center;
	background-size: contain;
	background-repeat: no-repeat;
}

header#mainHeader div#userCart {
	grid-area: cart;
	display: flex;
	justify-content: flex-end;
	align-self: flex-end;
}

header#mainHeader div#userCart > div {
	/* margin: 0.5em; */
}

@media (max-width: 64.9rem) {
	header#mainHeader div#userCart div#userSearch {
		display: none;
	}
}

header#mainHeader div#userCart div#userSearch input {
	height: 100%;
	display: block;
	padding-left: 1em;
	background-color: transparent;
}

.ui-autocomplete {
	height: 20em;
	overflow-y: auto;
	overflow-x: hidden;
}

header#mainHeader div#userCart div#userCartButton a {
	/* padding: 1em; */
	display: block;
}

header#mainHeader ul#headerCategories.shown {
	display: inline-block;
}

header#mainHeader ul#headerCategories li.selected a, header#mainHeader ul#headerCategories li.selected a:visited {
	border-bottom: 0.2em solid var(--light-blue);
}





section#mainContent {
	width: calc(100% - 3.4em);
	min-height: 80vh;
	margin: 1em auto;
	background-color: #fff;
	padding: 1.2em;
}

@media (max-width: 64.9rem) {
	div.wrapper {
		width: calc(100% - 1em);
		margin: auto;
		padding: 0.5em
	}
}

@media (min-width: 65rem) {
	div.wrapper {
		width: 64rem;
		margin: auto;
		padding: 0.5em;
	}
}

header#shopIntro {
	display: block;
	margin: 0.5em;
	width: calc(100% - 3em);
	padding: 1em;
	border-radius: 5px;
	background-color: var(--very-light-blue);
	color: var(--dark-blue);
}


div.noticeWrapper {
	display: block;
	width: 100%;
	margin: 2em 0;
	padding: 1em 0;
	text-align: center;
	font-style: italic;
}

a.b2Shop, a.b2Shop:visited {
	border: 2px solid #555;
	padding: 0.5em;
	color: #555;
}

a.viewCart, a.viewCart:visited {
	border: 2px solid #528ec1;
	background-color: #528ec1;
	padding: 0.5em;
	color: #FFF;
}


/* Categories */


div.categoryHeader {
	display: flex;
	margin: 0.5em 0 1em 0.5em;
}

div.categoryHeader figure {
	flex: 0 1 25%;
	height: 10em;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

@media (max-width: 64.9rem) {
	
	div.categoryHeader {
		flex-wrap: wrap;
	}
	
	div.categoryHeader figure {
		flex: 1 0 95%;
		margin-bottom : 1em;
	}
	
}

div.subCategory {
	margin: 1em 0;
}


div.subCatTitle {
	display: block;
	margin: 0.2em 0 0.5em 0.2em;
}

div.subCatTitle h3 {
	font-size: 1.2em;
	border-left: 4px solid #db5461;
	padding-left: 0.5em;
}

div.subCategory div.productList {
	margin-left: 1em;
}


div.productListing {
	display: flex;
	transition: background-color 0.2s, color 0.2s;
	padding: 0.2em;
	align-items: center;
}

div.productListing.added {
	background-color: #a5db54 !important;
	color: #FFF;
	transition: all 0.8s;
}

div.productListing div.productTitle { flex: 1 1 auto; }

div.productListing a, div.productListing a:visited {
	color: inherit;
	padding: 0.5em 1em;
}

div.productListing div.productPrice { 
	flex: 0 0 20%;
	text-align: right;
}
div.productListing div.productOrdering { 
	flex: 0 0 4em;
	height: 2.1em;
	display: flex;
	justify-content: flex-end;
}

div.productListing div.simple-addtocart {
	width: 1.8em;
	opacity: 0.1;
	transition: opacity 0.2s;
	cursor: pointer;
}

div.productListing:hover div.simple-addtocart input {
	background-color: #20272c;
	color: #FFF;
}

div.productListing:hover div.simple-addtocart { opacity: 1; }
div.productListing:hover {
	background-color: #f4f4f4;
}

div.productListing div.advanced-addtocart { display: none; }

span.ppmeasured {
	opacity: 0.7;
}

table.list {
	width: 100%;
	/*table-layout: fixed; this causes a problem with cells */
	min-height: 100px;
	border: 0;
	border-collapse: collapse;
}

@media (max-width: 64.9rem) {
	table.list {
		font-size: 0.7em;
	}
	
	table.list th.optcol, table.list td.optcol {
		display: none;
	}
}

table.list thead tr th {
	padding: 0.8em;
	border-bottom: 2px solid #f8f9fb;
	text-align: left;
}

table.list thead tr th:last-of-type { text-align: right; }
table.list tbody tr td:last-of-type { text-align: right; }

table.list tbody td {
	padding: 0.75em 0.3em;
}

table.list:not(.notrclick) tbody tr:hover:not(.notice):not(.notrclick) {
	cursor: pointer;
	background-color: #f8f9fb;
}

table.list th.center, table.list td.center {
	text-align: center;
}

table.list td.actions {
	display: flex;
	justify-content: flex-end;
}

table.list td.actions input {
	height: 2em;
	width: 2em;
	margin: 0 0.25em;
	background-size: 1em;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #2e373e;
	border-radius: 5px;
	color: transparent;
	opacity: 0.1;
	transition: all 0.3s;
}

table.list tr:hover td.actions input {
	opacity: 1;
}

table.list td.cost {
	padding-left: 0.3em;
	text-align: right;
}

table.list td.cost::before {
	content: '$ ';
	opacity: .3;
}

table.list td.nowrap {
	white-space: nowrap;
}

table.list tr.totalSum {
	font-weight: 700;
}

table.list tr.lineAbove td {
	border-top: 1px solid #e1e1e1;
}

table.list.cart a, table.list.cart a:visited {
	color: inherit;
}

td.modOrderActions input[type='text'] {
	margin: 0 0.5em;
	width: 3em;
	text-align: center;
}

@media (max-width: 64.9rem) {
	td.modOrderActions input[type='text'] {
		margin: 0 0.1em;
		width: 2em;
		text-align: center;
	}	
}

td.modOrderActions input[type='button'] {
	opacity: 0.1;
	transition: all 0.2s;
}

table.cart tr:hover td.modOrderActions input[type='button'] {
	opacity: 1;
}

/* Order Types */
div#selectType {
	flex: 1 0 100%;
	padding: 2em 0;
	display: flex;
	justify-content: center;
}

@media (max-width: 64.9rem) {
	div#selectType {
		flex-wrap: wrap;
	}
}

div#selectType > div {
	border: 1em solid transparent;
}

div#selectType a {
	border: 2px solid #525252;
	padding: 0.5em;
	cursor: pointer;
	display: block;
}

div#selectType a.selected {
	border-color: #528ec1;
	background-color: #528ec1;
	color: #FFF;
}

div#selectType span.dmMinOrder {
	display: block;
	font-size: 0.6em;
	text-align: center;
}


div#pageAction {
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 64.9rem) {
	div#pageAction {
		width: calc(100% - 1em);
		margin: auto;
		padding: 0.5em
	}
}

@media (min-width: 65rem) {
	div#pageAction {
		width: calc(100% - 2em);
		margin: auto;
		padding: 1em;
	}
}

div#pageAction input {
	height: 3em;
	padding: 1em;
	background-color: #528ec1;
	color: #FFF;
}


body > div#overscan {
	background-color: rgba(0,0,0,0.5);
	display: none;
	width: 100vw;
	height: 100vh;
	z-index: 100;
	position: fixed;
	top: 0;
}

div#overscan > div#osc {
	display: block;
	background-color: #FFF;
	border-radius: 5px;
	padding: 1em;
	text-align: center;
}

@media (max-width: 64.9rem) {
	div#overscan > div#osc {
		width: calc(100% - 1em);
		height: calc(100% - 1em);
		margin: 0.5em;
	}
}

@media (min-width: 65rem) {
	div#overscan > div#osc {
		width: 50em;
		height: 10em;
		position: relative;
		top: 40%;
		margin: auto;
	}
}




footer#mainFooter {
	display: block;
	background-color: #f2f2f2;
	color: #585858;
	margin-top: 1em;
	padding: 2rem;
	font-size: 0.8em;
	text-align: center;
}

footer#mainFooter a, footer#mainFooter a:visited {
	color: var(--color-blue);
	font-weight: 700;
}
