/* Base for label styling */
#wheretobuy-form [type="checkbox"]:not(:checked),
#wheretobuy-form [type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
}
#wheretobuy-form [type="checkbox"]:not(:checked) + label,
#wheretobuy-form [type="checkbox"]:checked + label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
}

/* checkbox aspect */
#wheretobuy-form [type="checkbox"]:not(:checked) + label:before,
#wheretobuy-form [type="checkbox"]:checked + label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}
/* checked mark aspect */
#wheretobuy-form [type="checkbox"]:not(:checked) + label:after,
#wheretobuy-form [type="checkbox"]:checked + label:after {
  background: transparent url(../img/checkbox-on.png) no-repeat center center;
  background-size: 16px 17px;
  display: block;
  width: 20px;
  height: 20px;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transition: all .2s;
}
/* checked mark aspect changes */
#wheretobuy-form [type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}
#wheretobuy-form [type="checkbox"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}
/* disabled checkbox */
#wheretobuy-form [type="checkbox"]:disabled:not(:checked) + label:before,
#wheretobuy-form [type="checkbox"]:disabled:checked + label:before {
  background-color: #ddd;
}
#wheretobuy-form [type="checkbox"]:disabled:checked + label:after {
  color: #999;
}
#wheretobuy-form [type="checkbox"]:disabled + label {
  color: #aaa;
}



body.page-node-2066 .l-main,
body.page-node-2065 .l-main,
body.page-node-1312 .l-main,
body.page-node-223 .l-main {
  max-width: 920px !important;
}
#wheretobuy-form {
  margin-bottom: 20px;
}
#wheretobuy-form .hidden {
  display: none;
}
#wheretobuy-form .form-header .ajax-progress {
  position: absolute;
  top: 3px;
  width: 100%;
  text-align: center;
}
#wheretobuy-form .ajax-progress {
  display: none;
}
#wheretobuy-form .form-header .ajax-progress .throbber {
  display: none;
}
#wheretobuy-form .form-header .form-radios {
  display: table;
  width: 100%;
}
#wheretobuy-form .form-header .form-radios .form-item-type {
  display: table-cell;
  vertical-align: middle;
  width: 33%;
  background-color: #262626;
  color: #fff;
  text-align: center;
  border-left: 1px solid #fff;
  position: relative;
}
#wheretobuy-form .form-header .form-radios .form-item-type:first-child {
  border-left: 0;
}
#wheretobuy-form .form-header .form-radios .form-item-type.active {
  background-color: #ededed;
  color: #000;
}
#wheretobuy-form .form-header .form-radios .form-item-type label {
  width: 100%;
  padding: 20px 0 20px 0;
  display: inline-block;
  cursor: pointer;
}
#wheretobuy-form .form-header .form-radios .form-item-type input {
  display: none;
}
#wheretobuy-form .form-body {
  margin-top: 1px;
  background-color: #ededed;
  padding: 20px;
  text-align: center;
  position: relative;
}
#wheretobuy-form .form-body .ajax-progress {
  position: absolute;
  left: 10px;
  top: 10px;
}
#wheretobuy-form .form-body label,
#wheretobuy-form .form-body .form-item,
#wheretobuy-form .form-body .form-submit {
  width: 90%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
#wheretobuy-form .form-body .form-item select,
#wheretobuy-form .form-body .form-item input {
  width: 100%;
}
#wheretobuy-form .form-body .selectboxit-container,
#wheretobuy-form .form-body .selectboxit-container .form-select,
#wheretobuy-form .form-body .selectboxit-container .selectboxit-options {
  width: 100% !important;
}
#wheretobuy-form .form-body .selectboxit-container .selectboxit {
  background: #d9d9d9;
  border-radius: 0;
  border: 0;
}
#wheretobuy-form .form-body .selectboxit-container .selectboxit-options {
  border-radius: 0;
}
#wheretobuy-form .form-body .selectboxit-container .selectboxit-arrow-container {
  border-left: 1px solid #ededed;
  width: 75px;
  background: transparent url(../img/dropdown-arrow.png) no-repeat center center;
  background-size: 18px 10px;
}
#wheretobuy-form .form-body .selectboxit .selectboxit-arrow-container .selectboxit-arrow {
  display: none;
}
#wheretobuy-form .form-body .selectboxit-option,
#wheretobuy-form .form-body .selectboxit-optgroup-header {
  text-indent: unset;
  padding-left: 5px;
}
#wheretobuy-form .form-body .selectboxit-container,
#wheretobuy-form .form-body .selectboxit-container > span,
#wheretobuy-form .form-body .selectboxit-container > span span {
  height: 40px;
  line-height: 40px;
  max-width: none !important;
}
#wheretobuy-form .form-body .selectboxit-option {
  clear: left;
}
#wheretobuy-form .form-body .selectboxit-text {
  text-indent: 10px;
}
#wheretobuy-form .form-body label {
  text-align: left;
  margin-bottom: 5px;
}
#wheretobuy-form .form-body .form-submit {
  background-color: #262626;
  color: #fff;
  border-radius: 0;
  border: 0;
  padding: 10px;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-border-radius: 0;
  margin-top: 30px;
  margin-bottom: 20px;
  height: 40px;
}
#wheretobuy-form .form-body .form-submit.form-button-disabled {
  cursor: auto;
  background-color: #d9d9d9;
}
#wheretobuy-form .form-body .locate-me {
  float: right;
  font-size: 12px;
  padding-top: 4px;
}

#wheretobuy-results {
  margin-top: 40px;
}
#wheretobuy-results h2 {
  font-size: 36px;
  background-color: #ededed;
  color: #000;
  padding: 20px 20px 20px 20px;
  margin-bottom: 1px;
}
#wheretobuy-results .filters {
  padding: 20px 30px 20px 30px;
  background-color: #d9d9d9;
  margin-bottom: 1px;
  position: relative;
  overflow: hidden;
}
#wheretobuy-results .filters label {
  display: block;
}
#wheretobuy-results .filters .checkbox-wrapper {
  line-height: 20px;
  padding: 7px 0 7px 0;
  float: left;
  clear: left;
}
#wheretobuy-results .filters .filter-sam-certified {
  float: right;
  position: relative;
}
#wheretobuy-results .filters .filter-sam-certified:before {
  content: '';
  position: absolute;
  left: -20px;
  top: -60px;
  border-left: 1px #fff solid;
  height: 205px;
  width: 1px;
  display: block;
}
#wheretobuy-results .filters.filters-count-4 .filter-sam-certified,
#wheretobuy-results .filters.filters-count-5 .filter-sam-certified,
#wheretobuy-results .filters.filters-count-6 .filter-sam-certified {
  margin-top: 35px;
}
#wheretobuy-results .result {
  background-color: #ededed;
  margin-bottom: 1px;
  border-left: 25px solid #d9d9d9;
  padding: 40px 100px 40px 40px;
  position: relative;
  min-height: 200px;
}
#wheretobuy-results .result.active {
  border-left: 25px solid #262626;
}
#wheretobuy-results .result h3 {
  font-size: 26px;
  margin-bottom: 20px;
}
#wheretobuy-results .result .row {
  margin-bottom: 5px;
}
#wheretobuy-results .result .row.product,
#wheretobuy-results .result .row.tel {
  margin-bottom: 15px;
}
#wheretobuy-results .result .row.some a {
  margin-right: 5px;
}
#wheretobuy-results .result .label {
  font-weight: bold;
  float: left;
  clear: left;
  width: 100px;
  display: none;
}
#wheretobuy-results .result .content {
  min-height: 20px;
}
#wheretobuy-results .result .img-sam-certified,
#wheretobuy-results .result .img-showroom {
  position: absolute;
  top: 0;
  right: 40px;
}
#wheretobuy-results .result .tag {
  background-color: #d9d9d9;
  border-radius: 6px;
  padding: 2px 6px 2px 6px;;
  display: inline-block;
  margin-right: 2px;
  margin-bottom: 4px;
}
#wheretobuy-results .results-footer {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}
#wheretobuy-results .no-dealers {
  background-color: #262626;
  text-align: center;
  padding: 20px;
}
#wheretobuy-results .no-dealers,
#wheretobuy-results .no-dealers a {
  font-size: 16px;
  line-height: 22px;
  color: #fff;
}

#wheretobuy-map {
  height: 400px;
}
#wheretobuy-map .cluster {
  background-size: 73px !important;
  color: #fff !important;
  font-size: 22px !important;
}
#wheretobuy-map .gm-style-iw {
  width: 272px !important;
  top: 15px !important;
  left: 0px !important;
  background-color: #fff;
  box-shadow: 0;
  border: 0;
  border-radius: 0;
}
#wheretobuy-map .gm-style-iw-wrapper,
#wheretobuy-map .gm-style-iw > div {
  display: block !important;
  max-width: 272px !important;
}
#wheretobuy-map .iw-close-button-wrapper {
  overflow: visible !important;
  top: 0 !important;
}
#wheretobuy-map .iw-close-button {
  width: 14px !important;
  height: 14px !important;
  right: 15px !important;
  top: 25px !important;
}
#wheretobuy-map #iw-container .iw-title {
  background-color: #262626;
  padding: 10px;
  color: #ededed;
  margin: 0;
  border-radius: 0;
  position: relative;
}
#wheretobuy-map #iw-container .iw-content {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  margin-right: 1px;
  padding: 15px 5px 15px 15px;
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Show in google maps link */
#wheretobuy-map .gm-style-iw > div:nth-child(2) {
  display: none !important;
}

body.node-type-front-page #wheretobuy-form .form-body {
  background: none;
}
body.node-type-front-page #wheretobuy-form .form-body .form-submit.form-button-disabled {
  display: none;
}
body.node-type-front-page #buy-genelec-search {
  background: none !important;
  border-left: 1px solid #fff;
}
.view-mobile {
  display: none;
}

@media (max-width: 700px) {
  .view-mobile {
    display: block;
  }
  .view-desktop {
    display: none;
  }
  #wheretobuy-results .filters .filter-sam-certified:before {
    display: none;
  }
  #wheretobuy-results .filters .filter-sam-certified {
    margin-top: 0 !important;
    float: none !important;
  }
  #wheretobuy-form .form-header input:checked,
  #wheretobuy-form .form-header input:not(:checked) {
    position: absolute;
    left: -9999px;
  }
  #wheretobuy-form .form-header label {
    position: relative;
    padding-left: 28px !important;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: #666;
  }
  #wheretobuy-form .form-header label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    border: 5px solid #000;
    border-radius: 100%;
    background: #000;
  }
  #wheretobuy-form .form-header label:after {
    content: '';
    width: 8px;
    height: 8px;
    background: #d9d9d9;
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }
  #wheretobuy-form .form-header input:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  #wheretobuy-form .form-header input:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  #wheretobuy-form .form-header .form-radios .form-item-type label br {
    display: none;
  }
  #wheretobuy-form .form-header .form-radios .form-item-type input,
  #wheretobuy-form .form-header .form-radios .form-item-type label {
    display: inline;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
  }
  #wheretobuy-form .form-header .form-radios .form-item-type,
  #wheretobuy-form .form-header .form-radios .form-item-type.active {
    background: none;
  }
  #wheretobuy-form .form-header .form-radios .form-item-type {
    border-left: 0;
    display: block;
    width: 100%;
    max-width: 235px;
    margin: auto;
    color: #000;
    position: relative;
    font-size: 18px;
    line-height: 40px;
    text-align: left;
  }
  #wheretobuy-form .form-header .form-radios {
    background: #d9d9d9;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  #wheretobuy-form .form-header .ajax-progress {
    display: none;
  }
  #wheretobuy-results .result {
    padding: 20px 40px 20px 20px;
  }
  #wheretobuy-results .result .label {
    float: none;
    width: auto;
  }
  #wheretobuy-results .result .content {
    padding-left: 0;
  }
  #wheretobuy-results .result .img-sam-certified,
  #wheretobuy-results .result .img-showroom {
    right: 0;
  }
}
