/* Slyllama */

@font-face {
	font-family: "Ubuntu";
	src: url("../fonts/ubuntu-variable.ttf");
}

@font-face {
	font-family: "Ubuntu";
	font-weight: bold;
	src: url("../fonts/ubuntu-bold.ttf");
}

a {
	color: #0031AB;
	text-decoration: underline;
}

b {
	font-weight: bold;
}

code {
	font-family: monospace;
	font-size: 11pt;
	line-height: 1em;
}

body {
	background: url("../img/linen.png");
	font-family: "Ubuntu", sans-serif;
	font-size: 11pt;
	font-weight: 490;
	line-height: 1.2em;
	min-width: 1400px;
	padding-bottom: 70px;
}

h1 {
	border-bottom: 1px solid #335C17;
	font-size: 23pt;
	font-weight: bold;
	line-height: 0.9em;
	margin-bottom: 1em;
	padding-bottom: 0.45em;	
}

h2 {
	font-size: 15pt;
	font-weight: bold;
	margin-bottom: 0.6em;
	margin-top: 1.5em;
}

h3 {
	font-size: 14pt;
	font-weight: bold;
	margin-bottom: 0.6em;
	margin-top: 0.8em;
}

i {
	font-style: italic;
}

img {
	border: none !important;
}

li {
	list-style-type: disc;
	margin-bottom: 0.2em;
	margin-left: 2em;
}

li>b {
	background: #f3ffeb;
	border-bottom: 1px solid #335C17;
}

p {
	margin-bottom: 0.5em;
	font-size: 11pt;
	font-weight: 490;
}

pre {
	font-family: monospace;
	font-size: 12pt;
	line-height: 1em;
	margin-bottom: 1em;
	margin-bottom: 1em;
}

select {
	margin-bottom: 0.5em;
	width: 49%;
}

table {
	border: 1px solid #335C17;
	box-shadow: 0px 1px 9px rgb(0, 0, 0, 0.2);
	font-size: 10.5pt;
	margin-top: 20px;
	width: 100%;
}

table * {
	vertical-align: middle;
}

td {
	padding: 2px 8px;
	height: 1.5em;
	text-align: center;
	white-space: nowrap;
}

td:first-child {
	text-align: left !important;
}

td:last-child {
	text-align: right !important;
}

tr {
	cursor: pointer;
}

tr:nth-child(odd) {
	background: #ddd;
}

tr:first-child {
	background: #335C17 !important;
	color: #fff;
	font-weight: bold;
}

tr:hover:not(:first-child) {
	background: #AAA;
}

.branch > h3 {
	text-align: center;
}

.branch > ul > li {
	line-height: 1em;
	margin-left: 1em;
}

.accent {
	background: #ff00bf;
	border-top: 1px solid #000;
	display: block;
	height: 4px;
	margin-top: 14px;
	width: 100%;
}

#branch-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, 1fr);
}

#branch-grid > div {
	background: #f2f2f2;
	border: 1px solid #335C17;
	border-radius: 3px;
	box-shadow: 0px 1px 5px rgb(0, 0, 0, 0.2);
	padding: 12px 0;
}

#branch-grid > div> * {
	margin: 0 14px;
}

#branch-grid > div > img {
	border: 1px solid #335C17 !important;
	border-radius: 2px;
	box-shadow: 0px 1px 5px rgb(0, 0, 0, 0.2);
	display: block;
	margin-bottom: 0.6em;
	margin-top: 0.6em;
	width: calc(100% - 28px);
}

.cart-button {
	background: #335C17;
	color: #fff;
	border-radius: 20px;
	display: inline-block;
	margin: -4px;
	padding: 4px 12px;
	width: fit-content;
}

.cart-button:hover {
	background: #233913;
}

.cart-button > img {
	display: inline-block;
	height: 18px;
	margin-bottom: -3px;
	margin-right: 0.3em;
	vertical-align: center;
	width: auto;
}

.cart-qty {
	background: #FF5B3B;
	border: 1px solid #631A0B;
	border-radius: 10px;
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
	display: inline-block;
	margin-left: 3px;
	padding: 0 9px;
	text-align: center;
	text-shadow: 0px 1px 2px #631A0B;
}

.chem {
	border-radius: 2px;
	box-shadow: 0px 1px 9px rgb(0, 0, 0, 0.2);
	line-height: 1.0em;
	margin-top: 5px;
	padding: 9px 0;

	background: #F2FBFF !important;
	border: 1px solid #4A7D91 !important;
	color: #184354 !important;

	display: grid;
	grid-template-columns: 3fr 104px 7fr;
}

.chem li {
	margin-bottom: 0px;
}

.chem li>b {
	background: none !important;
	border: none !important;
}

.chem-rating {
	background: #fff;
	box-shadow: 0px 0px 2px #777 inset, 0px 1px 0px #fff;
	border: 1px solid #4A7D91;
	border-radius: 2px;
	font-size: 64px;
	height: 96px;
	line-height: 90px;
	text-align: center;
}

#container {
	display: block;
	margin: 20px auto;
	max-width: 95%;
}

#contacts {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	line-height: 1.1em;
	margin-bottom: 20px;
}

#contacts>* {
	border-right: 1px solid #335C17;
	text-align: center;
}

#contacts>*:last-child:last-child {
	border-right: none;
}

#contacts>div>a:first-child {
	font-weight: bold;
	text-decoration: none;
	color: #000 !important;
}

#content-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr 300px;
}

.disclaimer {
	font-size: 10pt;
	hyphens: auto;
	line-height: 1em;
	margin-top: 0.5em;
	opacity: 0.6; 
}

#enter-code-container {
	display: none;
}

.enter-code-button {
	display: block;
	height: auto;
	margin-left: auto;
	margin-right: 0;
	margin-top: 0.4em;
	opacity: 0.5;
	padding-right: 12px;
	width: 16px;
}

.enter-code-button:hover {
	opacity: 1.0;
}

#enter-code-error {
	display: none;
	color: #b82c0c;
}

#enquiry-container {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, 1fr);
}

.enquiry-field {
	box-shadow: 0px 1px 5px rgba(1, 1, 1 , 0.1);
	border: 1px solid #335C17;
	border-radius: 3px;
	font-family: "Ubuntu", sans-serif;
	font-size: 10.5pt;
	margin-bottom: 1em;
	padding: 6px;
	width: calc(100% - 12px);
}

.enquiry-field:focus {
	box-shadow: 0px 1px 5px rgba(1, 1, 1 , 0.3);
	border: 1px solid #335C17;
	outline: none;
}

.enquiry-submit {
	background: #335C17;
	border: none;
	border-radius: 2px;
	color: #fff;
	padding: 8px 16px;
	cursor: pointer;
	font-family: "Ubuntu", sans-serif !important;
	font-size: 12pt;
	font-weight: bold;
}

.enquiry-submit:hover {
	background: #233913;
}

#grid-wrapper {
	display: grid;
	gap: 16px;
	grid-template-columns: 250px 1fr;
	width: 100%;
}

#header {
	display: block;
	color: #444;
	font-weight: bold;
	margin-bottom: 20px;
	padding: 8px 0;
	width: 100%;
}

#header-wrapper {
	display: block;
	margin: 0 auto;
	width: fit-content;
}

#header-wrapper>span {
	margin: 0px 16px;
}

#header-wrapper>span>a {
	font-size: 11pt;
	text-decoration: none !important;
}

#header-wrapper>span>a:hover {
	text-decoration: underline !important;
}

#hero {
	background: rgb(117, 190, 0);
	border-bottom: 2px solid #000000;
	border-top: 2px solid #000000;
	margin-top: 30px;
	padding-bottom: 0;
	padding-top: 0;
	width: 100%;
}

#hero>a {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: -25px;
	margin-bottom: -4px;
	width: 90%;
}

#hero>a>img {
	width: 100%;
}

#hours-popup {
	display: none;
	font-weight: 600;
	margin-bottom: 1em;
	margin-top: -1em;
	text-align: center;
}

#image-content {
	margin-top: 4px;
}

.image-container {
	display: block;
	
	/* Dimensions */
	height: 300px;
	width: 300px;
}

.image-container>img {
	box-shadow: 0px 1px 9px rgb(0, 0, 0, 0.3);
	width: 100%;
}

.info {
	background: #ffe8bf;
	border: 1px solid #634935;
	border-radius: 2px;
	box-shadow: 0px 1px 9px rgb(0, 0, 0, 0.2), 0px 1px 0px #fff inset;
	color: #634935;
	line-height: 1.0em;
	margin-top: 20px;
	padding: 9px 0;
}

.info>*, .chem>* {
	margin: 3px 10px;
	width: calc(100% - 18px);
	box-sizing: border-box;
}

/* (Warning - similar to info) */

.warning {
	background: #FFD5CC;
	border: 1px solid #78200D;
	border-radius: 2px;
	box-shadow: 0px 1px 9px rgb(0, 0, 0, 0.2);
	color: #78200D;
	line-height: 1.0em;
	margin-top: 20px;
	padding: 9px 0;
}

.warning>* {
	margin: 0 10px;
}


#sidebar {
	height: fit-content;
	line-height: 1.1em;
	padding-bottom: 30px;
	padding-top: 12px;
	font-weight: bold;
}

#sidebar>* {
	margin:5px 17px;
}

#sidebar>p {
	margin-top: 12px;
	font-size: 13pt;
}

#sidebar>ul>li {
	line-height: 1em;
	margin-bottom: 3px;
	margin-left: 15px;
}

#sidebar>ul>li>a {
	text-decoration: underline;
	transition: 10ms;
}

#sidebar>ul>li>a:hover {
	color: #000;
	transition: 10ms;
}

.styled-box {
	background: #F0F7E6; 
	border: 1px solid #335C17;
	border-radius: 2px;
	box-shadow: 0px 1px 3px rgb(0, 0, 0, 0.5), 0px 1px 0px #fff inset;
}

.subhead-links {
	background: #fafafa;
	border: 1px solid #335C17;
	border-radius: 30px;
	color: #335C17;
	box-shadow: 0px 1px 2px rgb(0, 0, 0, 0.1), 0px 1px 0px #fff inset;
	display: inline-block;
	font-size: 10.5pt;
	margin-bottom: 4px;
	margin-right: -10px;
	padding: 3px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.subhead-links:hover {
	background: #eee;
}

#text-content {
	background: #fff;
	border: 1px solid #555;
	border-radius: 2px;
	box-shadow: 0px 1px 3px rgb(0, 0, 0, 0.5), 0px 1px 0px #fff inset;
	height: fit-content;
	padding-bottom: 32px;
	padding-top: 32px;
}

#text-content>* {
	margin-left: 35px;
	margin-right: 35px;
}

#text-content>ul {
	font-size: 12pt;
}

#text-content>p {
	font-size: 12pt;
}

p>img {
	display: block;
	margin: 12px auto 24px auto;
	max-width: 50%;
}

/* Product boxes */

.product-details-btn {
	display: flex;
	justify-content: end;
	margin-bottom: 1.6em; /* compensate for margin-top */
	margin-top: -4.0em;
	width: 100%;
}

.product-details-btn>div {
	background: #2a7dc9;
	border: 1px solid black;
	border-radius: 2px;
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.5) inset;
	color: white;
	display: block;
	font-weight: bold;
	margin-right: 1.15em;
	padding-top: 3px;
	padding-bottom: 4px;
	padding-left: 4px;
	padding-right: 4px;
	text-align: center;
	text-decoration: none !important;
	transition-duration: 70ms;
	width: 70px;
}

.product-details-btn>div:hover {
	background: #104270;
	transition-duration: 70ms;
}

#product-grid {
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(6, 16%);
	width: calc(100% - 6px * 5);
}

@media only screen and (max-width: 1900px) {
  #product-grid {
		grid-template-columns: repeat(5, 19%);
		width: calc(100% - 6px * 4);
  }
}

@media only screen and (max-width: 1500px) {
  #product-grid {
		grid-template-columns: repeat(4, 24%);
		width: calc(100% - 13px * 3);
  }
}

#product-grid>div>a {
	text-decoration: none !important;
}

.product-id-debug {
	color: #999;
	display: none; /* TODO: override */
	margin-bottom: 0.3em;
	text-align: right;
}

.product-image {
	aspect-ratio: 1/1;
	background: #eee;
	box-shadow: 0px 1px 4px rgb(0, 0, 0, 0.3);
	display: block;
	margin-bottom: 1em;
	max-height: 100%;
	object-fit: cover;
	width: 100%;
}

.product-subtitle {
	color: #111;
	font-size: 11pt;
	line-height: 1em;
}

.product-title {
	font-size: 11pt;
	font-weight: bold;
	line-height: 1em;
	margin-bottom: 0.2em;
	margin-right: 10%;
}

.product-title>a {
	color: #000;
	text-decoration: none;
}

/* Image viewing */

#img-view-container {
  background: rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
  display: none;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}
#img-view-container .close-button {
  border-radius: 3px;
  padding: 6px;
  position: absolute;
  right: 8px;
  top: 8px;
  text-align: center;
}
#img-view-container .close-button img {
  margin: 0 !important;
  padding: 0 !important;
  width: 32px;
}
#img-view-container .close-button:hover {
  background: #C93E30;
  color: #fff;
}
#img-view-container #img-view-inner {
  height: 75%;
  margin: 10% 5%;
  width: 95%;
}
#img-view-container #img-view-inner > img {
  object-fit: contain;
  object-position: 50% 50%;
  height: inherit;
  width: inherit;
}
