.block-search {
  margin-right: 8px;
  margin-bottom: 0;
}
@media screen and (min-width: 1024px) {
  .block-search {
    display: block;
    margin-right: 32px;
  }
}
@media screen and (min-width: 1440px) {
  .block-search {
    margin-right: 40px;
  }
}
.block-search .block-title {
  display: none;
}
.block-search .block-content {
  margin-bottom: 0;
}
.block-search .label {
  float: right;
  cursor: pointer;
}
.block-search .label:hover span {
  text-decoration: none;
}
.block-search .label:after {
  content: "";
  display: inline-block;
  height: 28px;
  width: 28px;
  margin: 0 0 0 8px;
  background-position: center;
  vertical-align: top;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('../images/search_ico.svg');
}
@media screen and (min-width: 1024px) {
  .block-search .label:after {
    background-position: center;
  }
}
.block-search .label.active span {
  text-decoration: none;
  color: #AEAEAE;
}
.block-search .label.active + .control input {
  position: static;
}
.block-search .label span {
  display: none;
  clip: auto;
  height: auto;
  width: auto;
  position: relative;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'BrandonText-Regular', Verdana, Arial, Helvetica, sans-serif;
  color: #1f1f1f;
  transition: color 0.2s;
}
.block-search .label span:hover {
  color: #656565;
}
@media screen and (min-width: 1024px) {
  .block-search .label span {
    display: inline-block;
  }
}
.block-search .form.minisearch.active .control:after {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.block-search .form.minisearch.active .control-wrapper:after {
  opacity: 1;
  visibility: visible;
  z-index: -1;
}
.block-search .control {
  clear: both;
  padding: 0 0;
}
.block-search .control-wrapper {
  display: block;
  position: absolute;
  height: 60px;
  top: 72px;
  width: 100%;
  left: 0;
  z-index: -1;
  opacity: 0;
  transform: translateY(-20px);
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
}
@media screen and (min-width: 768px) {
  .block-search .control-wrapper {
    padding: 0 24px;
    top: 90px;
    height: 40px;
  }
}
@media screen and (min-width: 1024px) {
  .block-search .control-wrapper {
    top: 100%;
    height: 68px;
  }
}
.block-search .control-wrapper:after {
  content: "";
  background: #ffffff;
  top: 0;
  position: absolute;
  display: block;
  width: 100vw;
  height: 60px;
  left: 50%;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s;
}
@media screen and (min-width: 1024px) {
  .block-search .control-wrapper:after {
    height: 76px;
  }
}
.block-search .control:after {
  content: "";
  background: rgba(0, 0, 0, 0.4);
  top: 100%;
  position: absolute;
  display: block;
  width: 100vw;
  height: 100vh;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 59px;
  visibility: hidden;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s;
}
@media screen and (min-width: 1024px) {
  .block-search .control:after {
    margin-top: 76px;
  }
}
.block-search input {
  top: -150px;
  position: absolute;
  margin: 0 auto;
  padding-left: 24px;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  background: #f7f7f7;
  height: 40px;
  border: unset !important;
  border: 1px solid #AEAEAE !important;
}
.block-search input::placeholder {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.03em;
  color: #9B9B9B;
}
@media screen and (min-width: 1024px) {
  .block-search input {
    height: 48px;
    width: 100%;
  }
}
.block-search .nested {
  display: none;
}
.block-search .active .control-wrapper {
  z-index: 10;
  transform: translateY(0px);
  opacity: 1;
  pointer-events: auto;
}
.block-search .active .action.search {
  opacity: 1;
  z-index: 1;
  top: 0;
}
.block-search .active .action.search[disabled] {
  opacity: 1;
}
.block-search .action.search {
  display: inline-block;
  background-image: none;
  background: none;
  -moz-box-sizing: content-box;
  border: 0;
  box-shadow: none;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-decoration: none;
  text-shadow: none;
  font-weight: 400;
  display: block;
  position: absolute;
  right: 12px;
  padding: 8px 16px 8px 12px;
  background: #1f1f1f;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
  line-height: 24px;
}
@media screen and (min-width: 768px) {
  .block-search .action.search {
    right: 24px;
  }
}
@media screen and (min-width: 1024px) {
  .block-search .action.search {
    width: 160px;
    right: 24px;
    height: 48px;
  }
  .block-search .action.search:before {
    line-height: 32px;
  }
}
.block-search .action.search > span {
  position: relative;
  padding: 0;
  border: 0;
  width: unset;
  height: 40px;
  margin: 0;
  overflow: unset;
  clip: unset;
  color: #f7f7f7;
  font-family: 'BrandonText-Regular', Verdana, Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  display: none;
  line-height: 32px;
}
@media screen and (min-width: 768px) {
  .block-search .action.search > span {
    display: inline-block;
  }
}
@media screen and (min-width: 1024px) {
  .block-search .action.search > span {
    height: 48px;
  }
}
.block-search .action.search[disabled] {
  opacity: 0;
}
.block-search .action.search:focus:before {
  color: #656565;
}
.block-search .action.search:hover {
  background: #656565;
}
.block-search .action.search:hover + .control input {
  opacity: 1;
}
