/* Slyllama */

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

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

a {
	color: #4c762f;
}

b {
	font-weight: bold;
}

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

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

h1 {
	border-bottom: 1px solid #4c762f;
	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 #4c762f;
}

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

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 #4c762f;
	box-shadow: 0px 1px 9px rgb(0, 0, 0, 0.2);
	font-size: 10.5pt;
	margin-top: 20px;
	width: 100%;
}

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

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

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

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

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

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

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

#branch-grid > div {
	background: #f2f2f2;
	border: 1px solid #4c762f;
	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 #4c762f !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: #4c762f;
	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;
	font-size: 12pt;
	grid-template-columns: repeat(10, 1fr);
	line-height: 1.0em;
	margin-bottom: 20px;
}

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

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

#contacts>div>a {
	color: #274d0c;
	text-decoration: none;
}

#contacts>div>a:hover{
	text-decoration: underline !important;
}

#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 #4c762f;
	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 #4c762f;
	outline: none;
}

.enquiry-submit {
	background: #4c762f;
	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: #0f3000;
	background: linear-gradient(180deg,rgba(15, 48, 0, 1) 0%, rgba(24, 84, 5, 1) 100%);
	border-bottom: 1px solid #fff;
	padding-bottom: 27px;
	padding-top: 18px;
	width: 100%;
}

#hero>a {
	display: block;
	margin: 10px auto;
	max-width: 90%;
	width: 1100px;
}

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

#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.06em;
	padding-bottom: 30px;
	padding-top: 12px;
}

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

#sidebar>p {
	margin-bottom: 6px;
	margin-top: 12px;
}

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

#sidebar>ul>li>a {
	text-decoration: none;
	transition: 70ms;
}

#sidebar>ul>li>a:hover {
	color: #1c310d;
	transition: 70ms;
}

.styled-box {
	background: #eff5ec; 
	border: 1px solid #4c762f;
	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 #4c762f;
	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-weight: 200;
	margin-bottom: 2px;
	margin-right: -10px;
	padding: 1px 10px;
	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>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: #444;
	font-size: 10.5pt;
	line-height: 1em;
}

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

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

