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 {
	--dark-blue: #20272c;
	--blue: #02627f;
	--light-blue: #74abbc;
	--very-light-blue: #e1eef2;
	--orange: #db7f67;
}

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;
}

div.button {
	border: 1px solid #555;
	margin: 0.1em;
	padding: 0.3em;
	border-radius: 5px;
	text-align: center;
}

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;
}

/* Homepage */

div#hpIntro {
	margin: 1em 0;
}

span.hpTitle {
	letter-spacing: 0.5em;
}

div.homeSplashWrapper {
	/*display: flex;*/
	display: block;
	clear: both;
	width: 100%;
	min-height: 10em;
}

div.clearfix {
	clear: both;
}

div.hsItem {
	/*flex: 0 1 calc(25% - 1em); */
	width: calc(25% - 1em);
	float: left;
	height: 10em;
	margin: 0.5em;
	position: relative;
	overflow: hidden;
}

div.homeSplashWrapper.categories div.hsItem {
	width: 10em;
	height: 10em;
}

div.hsItem.big {
	height: 21em;
	width: calc(50% - 1em);
}

@media (max-width: 64.9rem) {
	div.hsItem {
		width: calc(50% - 1em);
	}
	
	div.hsItem.big {
		height: 21em;
		width: calc(100% - 1em);
	}
}

@supports( grid-area: auto ) {
	
	div.homeSplashWrapper {
		display: grid;
		grid-gap: 0.5em;
		margin: 2em 0;
		grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
		grid-auto-rows: 14em;
	}
	
	div.homeSplashWrapper.categories {
		grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
	}
	
	div.hsItem {
		margin: 0;
		width: 100%;
		height: 100%;
	}
	
	div.hsItem.big {
		grid-area: span 2 / span 2;
		width: 100%;
		height: 100%;
	}
	
	@media (max-width: 64.9rem) {
		div.hsItem.big {
			grid-area: span 2 / span 1;
		}
	}
	
}



div.hsItem.noScale figure {
	background-size: contain;
}


figure.hsImg {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
	transition: all 0.2s;
}

div.hsText {
	opacity: 0;
	position: absolute;
	bottom: 0;
	left: 0;
	width: calc(100% - 0em);
	padding: 1em 0;
	background-color: rgba(0,0,0,0.5);
	text-align: center;
	transition: all 0.2s;
}

div.hsItem a, div.hsItem a:visited {
	color: #FFF;
}

div.hsItem:hover figure {
	transform: scale(1.3);
}

div.hsItem:hover div.hsText {
	opacity: 1;
}


/* 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) {
	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;
}


/* Product View */

div.productHeader {
	display: flex;
}

div.productHeader div.productImageWrapper {
	flex: 1 0 25%;
	height: 10em;
	padding-right: 0.5em;
	padding-bottom: 2em;
}

div.productHeader div.productImageWrapper figure {
	display: block;
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

div.productHeader div.productTitleWrapper {
	flex: 0 0 60%;
	padding: 1em;
	text-align: right;
}

h4.catTitle {
	margin-top: 1em;
}

h1.ptTitle {
	margin: 0.3em 0 1em 0;
	font-size: 2em;
}

p.ptPrice {
	margin: 0.5em 0;
	font-size: 1.2em;
	font-weight: 700;
}

div.priceDescriptor {
	margin-top: 1em;
	font-size: 0.8em;
	opacity: 0.8;
}

div.productText {
	margin-bottom: 3em;
	text-align: right;
}

/* 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;
}

/* Form Groups */

div.fgTitle h2 {
	font-size: 1.5em;
	margin-bottom: 1em;
}

div.formGroup {
	display: block;
	width: 100%;
}

div.formSubGroup {
	display: flex;
}

div.formSubGroup.allowWrap { flex-wrap: wrap; }

div.fieldSet {
	padding: 0 0.3em;
	width: 100%;
	margin-bottom: 0.3em;
	position: relative;
}

div.fieldSet label {
	display: block;
	width: 100%;
	min-height: 1.3em;
}

div.fieldSet input:not([type='checkbox']), div.fieldSet textarea, div.fieldSet select {
	border-radius: 4px;
	border: 1px #dbe6ec solid;
	padding: 0.3em;
	box-sizing: border-box;
	height: 2.2em;
	width: 100%;
}

div.fieldSet textarea {
	height: 6em;
	resize: none;
}

div.fieldSet.checkWrapper {
	margin: 1em 0.3em;
}

div.fieldSet input[type='checkbox'] {
	margin: 0.2em;
}

label span.notice_required {
	font-size: 14px;
	color: #B91515;
	position: relative;
	top: -3px;
}

label.error {
	position: absolute;
	z-index: 100;
	bottom: 0.5em;
	font-size: 8px;
	color: #B91515;
	left: 1em;
	pointer-events: none;
}

input.error {
	border-color: #B91515 !important;
	box-shadow: 0px 0px 5px #B91515 !important;
}


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;
}





div#cartSplit {
	display: flex;
}

div#cartSplit div.fgWrapper { flex: 1 0 60%; }
div#cartSplit div.cartSummary {
	border: 1px solid #e1e1e1;
	border-radius: 3px;
	margin: 1em;
	padding: 2em;
	background-color: #fafafa;
	font-size: 0.8em;
}

@media (max-width: 59.9rem) {
	div#cartSplit {
		flex-wrap: wrap;
	}
	
	div#cartSplit div.cartSummary {
		flex: 1 auto;
		align-self: flex-start;
	}
}

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(--blue);
	font-weight: 700;
}


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;
	}
}