/* Style rules for products_database content type */

.database-sections {
  width: 100%;
}

.pd-page-heading {
  /*background-size: 10px;*/
  height: calc(14.5674vw + 0.0342px);     /* 320: 46.64px -> 1002: 146px */
  padding: 0;
}

.pd-page-heading h1,
.pd-page-heading h2,
.pd-page-heading h3 {
  color: #FFF;
  margin: 0 5vw;
  text-align: center;
  text-shadow: none;
  text-shadow: 0px 0px 1px #000;
}

.pd-page-heading h1, .pd-page-heading h2 {
  font-size: calc(2.0528vw + 7.4311px);   /* 320: 14px -> 1002: 28px */
  letter-spacing: -.03em;
  padding-top: calc(4.8387vw - 5.4839px); /* 320: 10px -> 1002: 43px */
}

.pd-page-heading h3 {
  font-size: calc(0.7331vw + 6.654px);    /* 320: 9px -> 1002: 14px */
  letter-spacing: -.06em;
}

#pd-product-section {
  margin: 20px auto;
  width: 90%;
}

#pd-main-section {
  min-height: 650px;
  position: relative;
}

/* Search Panel */
.pd-search-panel {
  background-color: #e7e6e6;
  margin: 0;
  padding: calc(1.7595vw - 2.6305px);     /* 320: 3px -> 1002: 15px */
  position: relative;
  z-index: 2;
}

.pd-search-panel-inner {
  position: relative;
}

.pd-search-box {
  border: solid 1px #9e9e9e;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  width: calc(90% - 85px - calc(3.5191vw + -5.261px));        /* 90% - filter button width - padding (320: 6px -> 1002: 30px) */
}

#pd-search-input {
  background-color: #f2f2f2;
  border: none;
  border-radius: 3px;
  position: relative;
}

#pd-search-input input {
  background-color: #f2f2f2;
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #414042;
  font-size: 12px;
  height: 28px;
  padding: 1px 1px 1px 6px;
}

#pd-search-input input::placeholder,
#pd-search-input input::-webkit-input-placeholder,
#pd-search-input input::-moz-placeholder,
#pd-search-input input:-moz-placeholder,
#pd-search-input input:-ms-input-placeholder {
  color: #a5a3a8;
}

#pd-search-input .btn-search-icon {
  background: url(../images/icons/search_icon_grey.svg) center / 80% no-repeat;
  cursor: pointer;
  height: 24px;
  position: absolute;
  right: 0;
  top: 2px;
  width: 24px;
}

/* Autocomplete */
.ui-autocomplete.ui-widget-content {
  border: solid 1px #5a8e22;
  border-radius: 4px;
}

.ui-autocomplete .ui-menu-item a {
  border: none;
}

.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-menu-item a.ui-state-hover {
  background: none;
  background-color: #e9f3df;
  border: none;
  margin: 0;
}

#pd-filter-toggle {
  border: solid 1px #9e9e9e;
  border-radius: 3px;
  color: #000;
  cursor: pointer;
  float: left;
  font-size: 12px;
  height: 22px;
  margin: 2px 15px 0 0;
  padding-top: 4px;
  position: relative;
  text-align: center;
  width: 70px;
}

.pd-search-control > div.pd-search-control-icon {
  background: url(https://www.scsglobalservices.com/themes/scsglobal/images/icons/right_arrowhead.svg) center / 100% no-repeat;
  display: inline-block;
  height: 14px;
  margin-left: 3px;
  position: relative;
  top: 2px;
  width: 14px;
  z-index: 5;
}

.pd-search-control.expanded > div.pd-search-control-icon {
  -webkit-transform: rotate(90deg);
          -ms-transform: rotate(90deg);
      transform: rotate(90deg);
}

#pd-search-filter-count {
  background-color: #f47b20;
  border: solid 1px #c8d9b5;
  border-radius: 3px;
  color: #fff;
  display: none;
  font-size: 7px;
  font-weight: 600;
  padding: 0 1px;
  position: absolute;
  right: 0;
  top: 0;
}

#pd-filter-heading {
  border-color: #78a22f;
  border-style: solid;
  border-width: 0 0 1px 0;
  color: #78a22f;
  font-size: 11px;
  font-weight: 700;
  margin: 10px 0 0;
  padding: 0 20px 10px;
  position: relative;
}

.pd-reset-filters {
  position: absolute;
  right: 7px;
  top: 0;
}

.pd-link-small {
  color: #007fb2;
  cursor: pointer;
  font-size: 9px;
}

#pd-filter-controls {
  background: #fff;
  border: solid 1px #9e9e9e;
  display: none;
  left: 0;
  max-width: 275px;
  padding-bottom: 20px;
  position: absolute;
  top: calc(2.9326vw + 28.6158px);    /* 320: 38px -> 1002: 58px */
  width: 75%;
  z-index: 4;
}

.pd-results-count {
  font-size: 11px;
  margin: 3px 0;
  padding: 0 5px;
  text-align: right;
}

#pd-filter-controls h5 {
  font-size: 13px;
  padding-left: 25px;
}

#pd-fc-accordion .ui-accordion-header:not(:first-of-type) {
  border-top: 1px solid #78a22f;
  margin-top: 20px;
}

#pd-fc-accordion .ui-state-default {
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

#pd-fc-accordion .ui-state-default .ui-icon {
  background-image: url(https://www.scsglobalservices.com/themes/scsglobal/images/icons/plus_dark_grey.svg);
  background-size: 8px;
  left: 0;
  right: auto;
}

#pd-fc-accordion .ui-state-active .ui-icon {
  background-image: url(https://www.scsglobalservices.com/themes/scsglobal/images/icons/minus_dark_grey.svg);
}

#pd-filter-controls ul {
  margin-left: 18px;
  padding-left: 0;
}

#pd-filter-controls li {
  list-style-type: none;
}


#pd-filter-controls h4 {
  color: #77a22c;
  margin-bottom: 1em;
}

#pd-fc-accordion > ul {
  max-height: 298px;
  overflow-y: scroll;
  padding-left: 9px;
}

.pd-fc-separator {
  border-bottom: solid 1px #ccc;
}

#pd-fc-accordion li {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 6px;
  position: relative;
}

#pd-fc-accordion ul {
  display: none;
}

#pd-fc-accordion li > span:first-child {
  border: solid 1px #999;
  border-radius: 2px;
  cursor: pointer;
  font-size: 8px;
  display: inline-block;
  height: 9px;
  left: 0;
  padding: 0;
  position: absolute;
  top: 4px;
  width: 9px;
}

#pd-fc-accordion li.active > span:first-child {
  background: url(https://www.scsglobalservices.com/themes/scsglobal/images/icons/check_mark_white.svg) center / 9px 9px no-repeat #0280b3;
}

#pd-fc-accordion li > span:nth-child(2) {
  display: inline-block;
  font-size: 11px;
  font-weight: normal;
  margin-left: 18px;
}

#pd-fc-accordion li.active > ul,
#pd-fc-accordion li.partial > ul {
  display: block;
}

#pd-fc-accordion li.partial > span:first-child {
  background: #0280b3;
  border: solid 1px #bbb;
}


/* Search Results */

#pd-search-results {
  text-align: center;
}

#loading-icon {
  clear: both;
  display: none;
  margin: 70px auto;
  text-align: center;
}

.pd-count {
  color: #414042;
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 2px;
  text-align: right;
}

.pd-results-msg span {
  font-weight: 600;
}

.pd-item {
  background: #fff;
  border-bottom: solid 3px #ddd;
  color: #000;
  display: inline-block;
  height: 283px;
  margin: 21px 28px 21px 0;
  position: relative;
  width: 194px;
}

.pd-item > img {
  border-style: solid;
  border-color: #ccc;
  border-width: 1px;
  cursor: pointer;
  font-size: 0;
  height: 192px;
  position: relative;
  width: 192px;
  z-index: 3;
}

/* Fallback for missing images */
.pd-item > img:before {
  background: url(https://www.scsglobalservices.com/themes/scsglobal/images/pd_placeholder_s.png);
  content: '';
  display: block;
  height: 192px;
  width: 192px;
}

.pd-item a {
  color: #000;
}

.pd-item a:hover {
  text-decoration: underline;
}

.pdi-p1,
.pdi-p2 {
  background-color: #fff;
  font-weight: normal;
  left: 0;
  padding: 9px 10px 5px;
  position: absolute;
  width: 174px;
  z-index: 3;
}

/* item section 1 - basic info + cert marks */
.pdi-p1 {
  bottom: 0;
  font-size: 10px;
  line-height: 1.3;
  min-height: 75px;
  text-align: left;
}

.pdi-p-names {
  width: 154px;
}

.pdi-p-names > a,
.pdi-p2 > div > span {
  font-size: 12px;
  font-weight: 600;
}

.pdi-p-names > a.pdi-prod-name {
  font-size: 12px;
  font-weight: bold;
}

.pdi-p-names > a.pdi-prod-name:hover {
  text-decoration: underline;
}

.pdi-p1 > a {
  display: none;
}

.pdi-p2 > div {
  margin-bottom: 10px;
}

.pdi-btn-prod {
  background: url(https://www.scsglobalservices.com/themes/scsglobal/images/icons/arrow_rt_grn.svg) no-repeat;
  bottom: 66px;
  cursor: pointer;
  height: 15px;
  position: absolute;
  right: 10px;
  width: 15px;
}

/* horizontal rule */
.pdi-p-hr {
  display: none;
}

.pdi-p-marks {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 32px;
}

.pdi-p-marks > img {
  margin-right: 0;
  -webkit-transform: translate(-15%, 0) scale(.7);
          -ms-transform: translate(-15%, 0) scale(.7);
      transform: translate(-15%, 0) scale(.7);
}

/* debugging info */
.pdi-p-categories {
  bottom: 15px;
  color: #fbfaf8;
  font-size: 9px;
  position: absolute;
  right: 5px;
}

.pdi-p-score {
  bottom: 5px;
  color: #fbfaf8;
  font-size: 9px;
  position: absolute;
  right: 5px;
}

/* item section 2 - cert details */
div.pdi-p2 {
  bottom: 100px;
  display: none;
  font-size: 11.7px;
  left: 0;
  opacity: .95;
  text-align: left;
}

/* product section */
#pd-product-section {
  display: none;
  position: relative;
}

#pd-ps-pane-left {
  margin: 0 auto 1.2em;
  padding: 0;
  position: relative;
  text-align: center;
  width: 266px;
}

#pd-ps-img-frame {
  background-color: #fff;
  border: solid 1px #ccc;
  height: 266px;
  width: 266px;
}

#pd-ps-img {
  display: block;
  height: 266px;
  width: 266px;
}

#pd-ps-cert-marks, #pd-ps-countries {
  display: none;
}

#pd-ps-cert-marks-mobile, #pd-ps-countries-mobile {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#pd-ps-cert-marks img,
#pd-ps-cert-marks-mobile img {
  margin: 0 10px 0 0;
}

#pd-ps-countries img,
#pd-ps-countries-mobile img {
  height: 26px !important;
  margin: 10px 20px 0 0;
}

#pd-ps-pane-right {
}

#pd-product-section h1, #pd-product-section h2 {
  text-transform: initial;
}

#pd-product-section h2 {
  color: #000;
  font-size: calc(0.9615vw + 10.3846px);
  margin: 0 0 8px;
}

#pd-product-section h2 + h4 {
  color: inherit;
  font-size: calc(0.9615vw + 10.3846px);
  font-weight: 400;
  margin: 0 0 15px;
}

#pd-product-section h1 + h4 a, #pd-product-section h2 + h4 a {
  color: #005a8c;
  font-weight: 400;
}

#pd-product-section p {
  font-size: calc(0.9615vw + 10.3846px);
  line-height: 1.3;
}

#pd-product-section a:hover {
  text-decoration: underline;
}

.pd-dot-separator {
  background: #bfc0c2;
  height: 2px;
  margin: 3.8% 0 3%;
}

#pd-ps-cert-info {
  font-size: 12px;
  font-weight: normal;
}

#pd-ps-cert-info div {
  margin: 0 0 3%;
}

#pd-ps-cert-info span {
  color: #333346;
  font-size: 1.2em;
  font-weight: 600;
}

#pd-ps-link {
  display: none;
}

#pd-ps-srch_link {
  margin-top: 20px;
}

#pd-ps-srch_link span,
#pd-ps-srch_link a {
  color: #007fb2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

#pd-ps-srch_link span:hover {
  text-decoration: underline;
}

.clear-div {
  clear: both;
  height: 1px;
}

.cache-load-image {
  height: 1px;
  left: -999px;
  position: absolute;
  top: 0;
  width: 1px;
}

/* hiding the products link by setting the font-size to 0 because hiding element by 'display: none'
is violating Google's Webmaster Guideline */
.products_link {
  font-size: 0;
}

/* = DESKTOP ============= */
@media only screen and (min-width: 1002px) {
  .pd-page-heading {
    background-size: 125%;
    height: 146px;
    background-position: 0 -50px;
  }

  .pd-page-heading > h1, .pd-page-heading > h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: normal;
    padding-top: 43px;
  }

  .pd-page-heading h3 {
    font-size: 14px;
    letter-spacing: normal;
  }

  #pd-product-section {
    width: 978px;
  }

  #pd-main-section {
    padding: 0 2%;
    position: relative;
    width: 96%;
  }

  #pd-search-form {
    position: absolute;
    top: 15px;
    width: 250px;
  }

  .pd-page-heading > h2,
  .pd-page-heading > div {
    margin: 0 auto;
  }

  .pd-search-panel {
    background-color: transparent;
    padding: 10px 0 5px;
    position: relative;
  }

  .pd-search-box {
    width: 100%;
  }

  #pd-search-input {
    height: 43px;
    padding-top: 15px;
  }

  #pd-search-input input {
    border: none;
    outline: none;
  }

  #pd-search-input input::-webkit-input-placeholder,
  #pd-search-input input::-moz-placeholder,
  #pd-search-input input:-moz-placeholder,
  #pd-search-input input:-ms-input-placeholder {
    font-size: 18px;
  }

  #pd-search-input .btn-search-icon {
    height: 36px;
    top: 12px;
    width: 36px;
  }

  #pd-filter-toggle {
    display: none;
  }

  .pd-results-count {
    font-size: 13px;
    margin: 10px 0 15px;
    text-align: left;
  }

  #pd-filter-heading {
    border-width: 1px 0;
    font-size: 12px;
    margin: 0;
    padding: 5px 3px;
  }

  .pd-reset-filters {
    top: 7px;
  }

  #pd-filter-controls {
    border: none;
    bottom: 0;
    display: block;
    position: relative;
    top: 0;
    width: 100%;
  }

  /* DESKTOP - Search Results */

  #pd-search-results {
    margin: 0 0 0 265px;
  }

  .pd-item {
    border: none;
    color: #fbfaf8;
    height: 282px;
    margin: 25px 28px 25px 0;
  }

  .pd-item > img {
    border-width: 1px 1px 0 1px;
  }

  .pd-item a {
    color: #fbfaf8;
  }

  .pdi-p1,
  .pdi-p2 {
    background-color: #767583;
    font-weight: normal;
    left: 0;
    z-index: 3;
  }

  .pdi-p1 > a {
    display: inline;
  }

  .pdi-p-hr {
    background-color: #9cbb7a;
    display: block;
    height: 1px;
    margin: 10px 0 4px;
    padding: 0;
  }

  .pdi-p-marks > img {
    margin-right: 20px;
    -webkit-transform: none;
            -ms-transform: none;
        transform: none;
  }

  div.pdi-p2,
  div.pdi-p2 a {
    font-size: 11.7px;
  }

  /* DESKTOP - product section */

  #pd-ps-pane-left {
    left: 0;
    margin: 0;
    position: absolute;
    top: 0;
  }

  #pd-ps-img-frame {
    left: 0;
    position: absolute;
    top: 0;
  }

  #pd-ps-cert-marks, #pd-ps-countries {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  #pd-ps-cert-marks {
    margin: 286px 0 20px;
  }

  #pd-ps-countries {
    margin: 20px 0 20px;
  }

  #pd-ps-cert-marks-mobile, #pd-ps-countries-mobile {
    display: none;
  }

  #pd-ps-pane-right {
    margin: 0 0 0 336px;
    min-height: 430px;
  }

  #pd-product-section h2 {
    color: inherit;
    font-size: 1.5rem;
  }

  #pd-product-section h1 + h4, #pd-product-section h2 + h4 {
    color: #5a8e22;
    font-size: 1.1rem;
  }

  #pd-product-section h1 + h4 a, #pd-product-section h2 + h4 a {
    color: #5a8e22;
  }

  #pd-product-section p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .pd-dot-separator {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAADCAYAAACqPZ51AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB90GDgMDEtc5uxAAAAA0SURBVAjXY2RAAnN2V7UwMDCUMDAwrExxbYtHlmNiQAUlDAwM7AwMDHFo4hgKV0LpA+gKAVdxB0j+zwNQAAAAAElFTkSuQmCC) repeat-x;
    height: 3px;
    margin: 30px 0 25px;
  }

  #pd-ps-cert-info {
    padding-bottom: 30px;
  }

  #pd-ps-cert-info div {
    float: left;
    margin: 0 30px 30px 0;
  }

  #pd-ps-link {
    border-top: solid 1px #b4b4b4;
    display: block;
    font-size: 16px;
    padding-top: 30px;
  }

  #pd-ps-link a {
    font-weight: 600;
  }
}

.ui-corner-all {
  border-radius: 0;
}

.ui-accordion .ui-state-default {
  background: none;
  border: none;
  color: inherit;
  border-bottom: 1px solid #78a22f;
  font-weight: inherit;
}

.ui-accordion-header:hover {
  color: #003958;
}

.ui-accordion .ui-accordion-header {
  padding-left: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}

.ui-accordion .ui-accordion-header .ui-icon {
  left: auto;
  position: absolute;
  right: .5em;
}

.ui-accordion .ui-state-default .ui-icon {
  background-image: url(https://www.scsglobalservices.com/themes/scsglobal/images/rt_arrow_lgrey.svg);
  background-position: center;
  background-size: 30px;
}

.ui-accordion .ui-state-active .ui-icon {
  background-image: url(https://www.scsglobalservices.com/themes/scsglobal/images/dwn_arrow_lgrey.svg);
  background-size: 30px;
}

.ui-accordion .ui-icon-triangle-1-e,
.ui-accordion .ui-icon-triangle-1-s {
  background-position: 0 0;
}

.ui-accordion .ui-corner-top,
.ui-accordion .ui-corner-bottom {
  border-radius: 0;
}

.ui-accordion .ui-widget-content {
  background: none;
  border: none;
  color: inherit;
}

.ui-accordion .ui-state-active,
.ui-accordion .ui-widget-content .ui-state-active,
.ui-accordion .ui-widget-header .ui-state-active,
.ui-accordion > .ui-state-default:hover,
.ui-accordion-content-active {
  border: none;
  border-bottom: 1px solid #78a22f;
}

.ui-accordion .ui-icon-triangle-1-e,
.ui-accordion .ui-icon-triangle-1-s {
  background-position: 0 0;
}

.ui-accordion .ui-corner-top,
.ui-accordion .ui-corner-bottom {
  border-radius: 0;
}

.ui-accordion .ui-widget-content {
  background: none;
  border: none;
  color: inherit;
}
