/*
 * Zipson Valves. Reproduces the old ASP.NET site's look exactly: a fixed-width table layout
 * on a stretched background. Sizes and colours are copied from the old site's inline styles,
 * and the tables keep the browser's default cell spacing (2px) and padding (1px) as it did.
 */

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
}

img { border: 0; }

.w100 { width: 100%; }

/* Page frame ---------------------------------------------------------------- */

.frame {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: center;
}

.frame__bg {
  background: url("/Graphics/background.jpg") left 0 top 0 / 100% 100% no-repeat padding-box;
  text-align: center;
  vertical-align: top;
  padding: 0;
}

.frame__inner {
  width: 1239px;
  height: 1px;
  margin: 0 auto;
}

/* Masthead ------------------------------------------------------------------ */

.masthead {
  padding: 0;
  height: 0;
}

.masthead__wrap { width: 100%; margin-bottom: 0; height: 0; }
.masthead__wrap > tbody > tr > td { height: 0; }

.masthead__row {
  width: 100%;
  height: 20px;
}

.masthead__logo {
  width: 450px;
  height: 62px;
}

.masthead__logo-pos {
  width: 250px;
  position: relative;
  top: 60px;
  left: 180px;
  margin-left: -25px;
  margin-top: -63px;
  z-index: 1;
}

.masthead__logo-pos img { width: 195px; height: 93px; }

.masthead__strap {
  width: 712px;
  height: 62px;
  vertical-align: bottom;
}

.masthead__strap span {
  color: #333;
  font-family: arial, sans-serif;
  font-size: 11pt;
  font-weight: bold;
  padding-bottom: 50px;
}

.masthead__phone {
  height: 62px;
  vertical-align: bottom;
  text-align: right;
}

.masthead__phone img {
  width: 241px;
  height: 39px;
  margin-right: 120px;
}

/* Menu bar ------------------------------------------------------------------ */

.menubar {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 9pt;
  color: #fff;
  background: #d15600 url("/Graphics/gradient.jpg") no-repeat;
  padding: 0 0 0 90px;
  vertical-align: middle;
  text-align: left;
  height: 35px;
  width: 100%;
}

.menubar__row { width: 100%; }
.menubar__lead { width: 209px; }

.menubar__about {
  width: 138px;
  text-align: right;
}

.menubar__item {
  border-left: 2px solid #fff;
}

.menubar__products { width: 1%; }
.menubar__documents { width: 30px; }
.menubar__contact { text-align: left; }
.menubar__tail { text-align: right; }

/* Looks like the old site's submit buttons, which is what the menu was made of. */
.menubtn {
  display: inline-block;
  box-sizing: border-box;
  height: 30px;
  padding: 1px 6px;
  font-family: Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  line-height: 28px;
  color: #fff;
  text-decoration: none;
  background-color: transparent;
  vertical-align: bottom;
}

.menubtn--active {
  color: #000;
  background-color: #fcd117;
}

.menubar__spacer {
  display: inline-block;
  width: 56px;
  height: 20px;
  vertical-align: bottom;
}

.category-label {
  width: 400px;
  position: relative;
  top: 65px;
  left: 0;
  margin-left: -50px;
  margin-top: -63px;
  z-index: 1;
}

.category-label span {
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 7pt;
  font-weight: bold;
}

/* Products drop-down */

.dropdown {
  position: relative;
  display: inline-block;
  z-index: 2001;
  vertical-align: bottom;
}

.dropdown:hover { background-color: #6cc9cf; }

.dropdown__content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 2001;
  min-width: 160px;
  background-color: #fff;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown__content,
.dropdown:focus-within .dropdown__content {
  display: block;
}

.dropdown__item {
  display: block;
  box-sizing: border-box;
  height: 25px;
  padding: 1px 6px;
  font-family: Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  line-height: 23px;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  color: #5a5a5a;
  background-color: #fcd117;
}

.dropdown__item--active {
  color: #fff;
  background-color: #d15600;
}

/* Content area -------------------------------------------------------------- */

.content {
  font-family: Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  color: #fff;
  height: 40px;
  width: 100%;
}

.content__body { border: none; }

/* Product grid -------------------------------------------------------------- */

.grid__side { width: 33%; }
.grid__middle { width: 33%; }

.grid__cell {
  width: 236px;
  vertical-align: bottom;
  text-align: left;
}

.grid__cell--last { width: auto; }

/* An empty, invisible button on the old site that held each column at full width. */
.grid__spacer {
  display: block;
  width: 220px;
  height: 3px;
}

.card {
  border: 0;
  width: 100px;
}

.card__media {
  width: 230px;
  height: 20px;
  text-align: center;
}

.card__frame {
  width: 10px;
  border-collapse: separate;
  border-spacing: 0;
}

.card__frame td { padding: 0; }

.card__text {
  text-align: left;
  padding: 1px 0 0;
}

.card__title,
.card__sub,
.card__part {
  display: inline-block;
  width: 180px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #000;
}

.card__title {
  font-size: 8pt;
  margin: 0;
}

.card__sub {
  font-size: 7pt;
  color: #b53d02;
  margin-top: 2px;
}

.card__part {
  font-size: 7pt;
  margin-top: 2px;
}

.card__more img { margin-top: 5px; }

/* Pager */

.pager {
  width: 450px;
  text-align: center;
}

.pager__btn,
.pager__num {
  display: inline-block;
  box-sizing: border-box;
  height: 16px;
  padding: 1px 6px;
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  line-height: 14px;
  color: #000;
  text-decoration: none;
}

.pager__num { margin-right: 3px; }

.pager__num--current {
  color: #d15600;
  text-decoration: underline;
}

/* Product page -------------------------------------------------------------- */

.product__gutter {
  width: 95px;
  text-align: left;
}

.product__media-col {
  vertical-align: top;
  text-align: right;
}

.product__back-cell,
.product__thumb-cell {
  vertical-align: top;
  width: 14px;
  height: 20px;
}

.product__thumb-cell { height: 22px; }

.product__back {
  display: inline-block;
  box-sizing: border-box;
  width: 134px;
  padding: 1px 6px 1px 20px;
  font-family: Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  color: #009;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.product__main-cell {
  vertical-align: top;
  width: 14px;
  padding-left: 80px;
}

/* Default list margins on purpose: in quirks mode they collapse at the top of a table cell. */
.gallery li { display: inline; }

/* The old site's clearfix, which also stops empty lists collapsing their margins together. */
.gallery::after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.product__thumb {
  border-collapse: separate;
  border-spacing: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
}

.product__thumb td { padding: 0; text-align: center; }

.product__notice-row td {
  vertical-align: top;
  text-align: left;
}

.product__notice {
  display: inline-block;
  width: 300px;
  font-family: arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  color: #000;
}

.product__body-col { vertical-align: top; }

.product__body {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
}

.product__body td {
  vertical-align: top;
  padding: 0;
  text-align: left;
}

.product__title,
.product__sub,
.product__part,
.spec__title,
.spec__text {
  font-family: arial, sans-serif;
  font-weight: bold;
  color: #000;
}

.product__title { font-size: 18pt; }
.product__sub { font-size: 14pt; color: #b53d02; }
.product__part { font-size: 8pt; }
.spec__title { font-size: 10pt; color: #b53d02; }
.spec__text { font-size: 8pt; }

.product__datasheet {
  display: inline-block;
  padding-right: 20px;
}

.product__hidden-link img {
  width: 1px;
  height: 1px;
}

/* About ----------------------------------------------------------------------- */

.about__text {
  width: 544px;
  padding: 20px 30px 1px 1px;
  vertical-align: top;
  font-family: arial, sans-serif;
  font-size: 9pt;
  color: #000;
}

.about__text span { font-weight: bold; }

.about__text--right {
  width: auto;
  padding: 20px 70px 1px 30px;
}

.about__img { border: 1px solid #000; }

.about__aim {
  font-weight: bold;
  font-size: small;
  color: #c44f00;
}

/* Documents ------------------------------------------------------------------- */

.doc {
  width: 100%;
}

.doc__icon {
  width: 30px;
  vertical-align: middle;
}

.doc__icon img { width: 30px; }

.doc__link-cell {
  padding-left: 10px;
  vertical-align: middle;
  text-align: left;
}

.doc__link,
.intro-text {
  font-family: Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
}

.doc__link { color: blue; }
.intro-text { color: #000; }

/* Contact ----------------------------------------------------------------------- */

.contact {
  border: 0;
  width: 100%;
  text-align: left;
}

.contact__details {
  vertical-align: top;
  padding: 1px 0 1px 165px;
  width: 243px;
}

.contact__form {
  width: 341px;
  padding-left: 30px;
  border-left: 1px solid lightgray;
  vertical-align: top;
}

.contact__map {
  border-left: 1px solid lightgray;
  padding-left: 30px;
  vertical-align: top;
  background: url("/Graphics/MAP.png") left 0 top 0 no-repeat;
}

.contact__heading {
  color: #bb4a00;
  font-family: Arial, sans-serif;
  font-size: 16pt;
  font-weight: bold;
}

.contact__text {
  color: #000;
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
}

.contact__hours { width: 116%; }
.contact__hours td { padding: 1px; text-align: left; }
.contact__hours td:first-child { width: 120px; }
.contact__hours td + td { padding-left: 5px; }

.contact__label {
  color: #bb4a00;
  font-family: Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
}

.contact__hint {
  font-family: arial, sans-serif;
  font-size: 7pt;
  font-weight: normal;
  color: #000;
}

.contact__input {
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  width: 271px;
}

.contact__textarea {
  font-family: arial, sans-serif;
  font-size: 9pt;
  height: 122px;
  width: 318px;
}

.contact__submit {
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
}

.contact__maplink {
  color: blue;
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: normal;
}

/* Messages after sending; the old site had none, so these stay plain. */
.contact__status {
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  margin: 0 0 10px;
  width: 318px;
}

.contact__status--ok { color: #060; }
.contact__status--error,
.contact__error { color: #c00; }

.contact__error {
  display: block;
  font-family: arial, sans-serif;
  font-size: 7pt;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Not found ---------------------------------------------------------------------- */

.notfound {
  font-family: arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.notfound a { color: blue; }

/* Lightbox (stands in for the old site's prettyPhoto) ------------------------------ */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 40px;
  max-width: calc(100vw - 80px);
}

.lightbox__img {
  display: block;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 160px);
}

.lightbox__bar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 11pt Georgia, serif;
  color: #000;
}

.lightbox__nav,
.lightbox__close {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.lightbox__close {
  margin-left: auto;
  width: 75px;
  height: 22px;
  background: url("/assets/img/lightbox/sprite.png") no-repeat -1px -1px;
  text-indent: -9999px;
  overflow: hidden;
}

/* Cookie banner (only shown once a GA4 ID is configured) ------------------------- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 10px 16px;
  background: #fff;
  border-top: 2px solid #d15600;
  font-family: Arial, sans-serif;
  font-size: 9pt;
  color: #000;
  text-align: center;
}

.consent[hidden] { display: none; }
.consent p { margin: 0 0 8px; }
.consent__actions button { font: bold 9pt Arial, sans-serif; margin: 0 4px; }
