table.variants {text-align: left; margin: 0; border-collapse: separate; border-spacing: 0; margin-bottom: 0.5rem;}
table.variants td, 
table.variants th {padding: 0.3rem 0.5rem 0.4rem; line-height: 1.2; font-size: 0.9rem;}
table.variants th {border: 1px solid black; border-left: none;}
table.variants th:first-child {border-left: 1px solid black;}
table.variants td {border: 1px solid rgba(0, 0, 0, 1); border-top: none; border-left: none;}
table.variants tbody:first-child tr:first-child td {border-top: 1px solid rgba(0, 0, 0, 1);}
table.variants td:first-child {border-left: 1px solid rgba(0, 0, 0, 1);}
table.variants td:first-child {background: white;}
table.variants {border-bottom: 1px solid black;}
table.variants tr:last-child td {border-bottom: 0;}
table.variants th {
  background: #ccc; position: relative; line-height: 1.1; padding: 0.4rem 0.75rem 0.5rem; font-weight: normal;
}
table.variants a {text-decoration: none; color: rgba(0, 0, 0, 1);}
table.variants tr.selected td {font-weight: 600;}
table + div {color: #aaa; font-size: 0.8rem; margin-top: 0.2rem;}

table.variants#propertiesTable {max-width: 100%;}

.table-scroll-wrapper {overflow-x: auto; max-width: 100vw; position: relative; margin-inline: -1rem; padding-inline: 1rem;}
.table-scroll-wrapper table.variants th:first-child,
.table-scroll-wrapper table.variants td:first-child {position: sticky; left: 0; z-index: 1;}
.table-scroll-wrapper table.variants th:first-child {background: #ccc;}
.table-scroll-wrapper table.variants th:first-child::after,
.table-scroll-wrapper table.variants td:first-child::after {content: ""; position: absolute; top: -1px; bottom: -1px; right: -1px; width: 1px; background: black;}

ul + table.specs {margin-top: 2rem;}
table.specs {text-align: left; margin: 0; width: 100%;}
table.specs td {padding: 0.3rem 1rem 0.4rem 0; line-height: 1.2; border-bottom: 1px solid rgba(0,0,0,0.15)}
table.specs tr:first-child td {padding-top: 0.1rem;}
table.specs tr:last-child td {border-bottom: 0;}
table.specs tr td:first-child {color: #aaa;}

.sku {color: rgba(0, 0, 0, 0.35); margin-block: -0.7rem 0rem; font-size: 0.9rem;}
.price {font-size: 2rem; margin-top: 0.5rem; font-weight: 600; line-height: 1.1;}
.price span {font-size: 0.9rem; font-weight: 500;}

.green {color: #4d9c20;}
.orange {color: rgb(255, 102, 0);}
.red {color: red;}
.delivery_and_stock {margin-top: 0.25rem;}
strong.dot::before {content: ""; display: inline-block; border-radius: 100%; width: 0.8rem; height: 0.8rem; background: silver; margin-right: 0.5rem; vertical-align: middle; position: relative; bottom: 0.05rem;}
strong.dot.small::before {width: 0.4rem; height: 0.4rem; margin-inline: 0.3rem;}
strong.dot.green::before {background: #4d9c20;}
strong.dot.orange::before {background: rgb(255, 102, 0);}
strong.dot.red::before {background: red;}

/* stock status indicator */
.stock-status {display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem;}
.stock-dot {display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0;}
.stock-status--green  .stock-dot {background: #4d9c20;}
.stock-status--orange .stock-dot {background: rgb(255, 102, 0);}
.stock-status--red    .stock-dot {background: red;}
.stock-status--green  {color: #4d9c20;}
.stock-status--orange {color: rgb(255, 102, 0);}
.stock-status--red    {color: red;}

#ghs_pictograms {margin-bottom: 1rem;}
#ghs_pictograms img {height: 3rem; margin-right: 0.15rem;}

/* variant selector buttons */
#filterbuttons {margin-top: 1.25rem;}
#filterbuttons a {color: black; text-decoration: none; display: inline-block; padding: 0.1rem 0.65rem; margin: 0.15rem 0.2rem 0.5rem 0; border: 1px solid rgba(0,0,0,0.15);}
#filterbuttons a.selected {color: black; border: 1px solid rgba(0, 0, 0, 1);}
#filterbuttons a.fuzzy {color: silver;}
#filterbuttons .label {display: block; font-weight: 600; margin: 0.25rem 0;}
#filterbuttons a .colordot {display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 100%; margin-right: 0.05rem; border: 1px solid rgba(0, 0, 0, 0.25);}

/* image gallery */
#imagegallery > div {position: relative;}
#imagegallery li {position: relative;}
#imagegallery #imagegallery_thumbs li::after,
#imagegallery #imagegallery_main li.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
  pointer-events: none;
}
#imagegallery img {width: 100%; display: block; object-fit: cover;}
#imagegallery .dotcontainer {
  position: absolute;
  left: 0.25rem;
  top: 0.1rem;
  display: flex;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.35rem;
  z-index: 2;
}
#imagegallery .dotcontainer .dot {position: relative;}
#imagegallery .dotcontainer .dottitle {margin-top: 0.2rem; font-size: 1.4rem;}
#imagegallery ul {list-style: none; margin: 0;}
#imagegallery #imagegallery_main li {display: none;}
#imagegallery #imagegallery_main li.active {display: block;}
#imagegallery #imagegallery_thumbs {margin-top: 0.75rem;}
#imagegallery #imagegallery_thumbs:has(ul li:only-child) {display: none;}
#imagegallery #imagegallery_thumbs ul {display: grid; width: 100%; gap: 0.75rem; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;}
#imagegallery #imagegallery_thumbs ul li a {display: flex; align-items: center; height: 100%; cursor: pointer;}
#imagegallery #imagegallery_thumbs ul li a img {object-fit: cover; aspect-ratio: 1;}
#imagegallery #imagegallery_thumbs li.active {box-shadow: inset 0px 0px 0px 2px white;}
#imagegallery #imagegallery_thumbs li.active::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0px 0px 0px 1px black;
  z-index: 1;
}
#imagegallery #imagegallery_thumbs li.active img {position: relative; z-index: -1;}


/* productintro (with image gallery) */
#productintro {
  position: relative; 
  display: grid;
  grid-template-columns: [main-start] 5fr [content-start] 6fr [content-end] 3fr [main-end];
  gap: 0 3rem;
  grid-template-rows: auto auto auto 1fr;
  padding-bottom: 3rem;
}
#productintro > div {grid-column: content-start / content-end;}
#productintro > div:nth-child(1) {grid-row-start: 1;}
#productintro > div:nth-child(3) {grid-row-start: 2;}
#productintro > div.sidebar {grid-row-start: 2;}
#productintro #imagegallery {
  grid-column: main-start / content-start;
  position: relative;
  grid-row-start: 1;
  grid-row-end: span 4;
}
#productintro .sidebar {
  grid-column: content-end / main-end;
  grid-row-start: 1;
  grid-row-end: span 4;
  padding-top: 1.25rem;
}
#productintro > div > ul {padding-left: 1rem;}

@media only screen and (max-width: 1200px) {
  #productintro {grid-template-columns: [main-start] 5fr [content-start] 6fr [content-end];}
  #productintro > div.sidebar {grid-column-start: content-start; grid-row: 3 / 4; grid-row-start: 4; padding-top: 0rem;}
  #productintro > div.sidebar:not(:empty) {padding-bottom: 2rem;}
}
@media only screen and (max-width: 900px) {
  #productintro {display: block;}
  .sku {padding-bottom: 0.7rem;}
}


#buybutton {margin: 1rem 0 1.25rem 0;}
#buybutton .twocols {columns: 2; margin: 0.75rem 0 0;}
#buybutton > div:first-child {display: flex; gap: 0.95rem;}
#buybutton > div:first-child input {width: 3rem; padding: 0 0.25rem; text-align: center;}
#buybutton > div:first-child button {max-width: 15rem;}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


del {font-size: 50%; color: silver; display: block; text-decoration-thickness: 1px;}

#producttabbar {margin: 0 0 1.5rem;}
#producttabbar ul {padding: 0; margin: 0; display: flex;}
#producttabbar ul li {list-style: none; margin-right: 2rem;}
#producttabbar ul li a {display: block; line-height: 2.3rem; height: 2.5rem; text-decoration: none; color: black; font-size: 1rem; font-weight: 600; border-top: 3px solid transparent;} 
#producttabbar ul li a.active {border-color: black;}

@media only screen and (min-width: 1200px) {
  #productdetails > div {flex: 1;}
  #producttabbar ul li:last-child:not(:first-child) {position: absolute; left: min(calc(50% + 2rem), 55rem); pointer-events: none;}
  #producttabbar ul li:last-child a {border-color: black;}
  #productdetails > div:last-child {display: block!important;}
}



#productdetails {font-size: 1rem; padding-bottom: 3rem;}
#productdetails ul {margin-left: 1rem;}
#productdetails ul li p {margin: 0;}
#productdetails {display: flex; gap: 4rem; flex-wrap: wrap;}
#productdetails > div ul {margin: 0;}
#productdetails > div > ul {position: relative; bottom: 0.3rem;}
#productdetails > div ul li {position: relative; margin-left: 1rem;}
#productdetails h2 {margin-bottom: 1.25rem;}
#productdetails h3, #productdetails h4 {margin: 1.5rem 0 0.5rem;}

.products {display: grid; grid-gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); grid-auto-rows: auto;}
.products ul li {position: relative; list-style: none; text-align: center; font-size: 0.8rem;}
.products ul li a {text-decoration: none; color: #404042; display: block;}
.products ul li a span.imgholder {display: block; width: 100%; position: relative; padding-bottom: 100%; margin-bottom: 0.35rem;}
.products ul li a span.imgholder img {object-fit: contain; position: absolute; display: block; margin: 10%; height: 80%; width: 80%;}
.products ul li a strong {font-size: 0.9rem; font-weight: 500;}
.products ul li a span.imgholder > span {background: #fff; position: absolute; display: flex; width: 100%; height: 100%; align-items: center; color: rgba(0,0,0,0.25);}

#productdetails > div {width: 100%; max-width: 50rem;}

@media only screen and (max-width: 900px) {
    #imagegallery {min-height: 0;}
    #productdetails {display: block;}
    #productintro > div > * {left: 0%; max-width: 100%; width: 100%;}
}
@media only screen and (max-width: 600px) {
  #producttabbar {display: none;}
  #productdetails {padding-top: 0.05rem; margin-top: 1rem;}
}
@media only screen and (max-width: 500px) {
  #productdetails > div {min-width: 0!important; max-width: 100%!important;}
}