#companysearch-container {
  display: none;
}
.companysearch-form_0 .SN-et_pb_contactform_validate_field,
.companysearch-form_2 .SN-et_pb_contactform_validate_field {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  opacity: 0 !important;
}

#companysearch-container {
  height: 150px;
}

#companysearch-container:not(.loading) .search-loader,
#companysearch-container.loading .companysearch-result {
  display: none !important;
}

#companysearch-container.initial > div {
  display: block;
}

#companysearch-container.available .companysearch-unavailable,
#companysearch-container.available .companysearch,
#companysearch-container.unavailable .companysearch-available,
#companysearch-container.unavailable .companysearch,
#companysearch-container.not-yet-searched .companysearch-available,
#companysearch-container.not-yet-searched .companysearch-unavailable {
  display: none;
}

#companysearch-container.available .companysearch-available,
#companysearch-container.unavailable .companysearch-unavailable,
#companysearch-container.not-yet-searched .companysearch{
  display: block;
}

#companysearch-container:not(.sensitive) .companysearch-sensitive {
  display: none;
}

#companysearch-container:not(.loading) .loading-content {
  display: none;
}

#companysearch-container.loading .suppress-during-loading {
  display: none;
}
#companysearch-container .companysearch_form_label {
  display: none;
}

#companysearch-container .companysearch-copy {
  margin-bottom: 20px;
}
#companysearch-container .form-width {
  position: relative;
  width:<?php echo $atts['input_width']?>; 
}

#companysearch-container .companysearch-button {
  z-index: 99;
  position: absolute;
  right: 0;
  top: 0;
  background-color:<?php echo $atts['button_color']?>; 
  background-image:url(<?php echo $atts['button_image']?>); 
  border-width:<?php echo $atts['button_border_width']?>; 
  border-color:<?php echo $atts['button_border_color']?>;
  background-repeat: no-repeat;
  background-size: <?php echo $atts['button_background-img-size']?>;
  background-position: center;
  width:<?php echo $atts['button_width']?>; 
  height:<?php echo $atts['button_height']?>; 
  font-size:<?php echo $atts['button_font-size']?>; 
  border-radius:<?php echo $atts['button_border-radius']?>;
}

#companysearch-container .companysearch-input {
  font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 300;
  width: 100%;
  padding: <?php echo $atts['input_padding']?>;
  background-color:<?php echo $atts['input_background-color']?>; 
  border-width:<?php echo $atts['input_border-width']?>; 
  border-color:<?php echo $atts['input_border-color']?>;
  height:<?php echo $atts['input_height']?>; 
  font-size:<?php echo $atts['input_text-size']?>; 
  border-radius:<?php echo $atts['input_border-radius']?>;
  text-indent:<?php echo $atts['input_text-indent']?>;
  text-align:<?php echo $atts['input_text-align']?>; 
}
#companysearch-container .companysearch-input::-ms-input-placeholder,
#companysearch-container .companysearch-input::-webkit-input-placeholder {
  font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 300;
  text-align: <?php echo $atts['input_text-align']?>;
  font-size: <?php echo $atts['input_text-size']?>;
  color: #adadad!important;
}

/* Loading Icon */

.lds-roller {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 32px 32px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #50b47f;
  margin: -3px 0 0 -3px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 50px;
  left: 50px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 54px;
  left: 45px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 57px;
  left: 39px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 58px;
  left: 32px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 57px;
  left: 25px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 54px;
  left: 19px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 50px;
  left: 14px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 45px;
  left: 10px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) { 
  #companysearch-container .form-width {
    width: 100%;
  }
  #companysearch-container .companysearch-input {
    height: 56px;
    font-size: 16px;
  }
  #companysearch-container .companysearch-input::-ms-input-placeholder,
  #companysearch-container .companysearch-input::-webkit-input-placeholder {
    font-size: 16px;
  }
  #companysearch-container .companysearch-button {
    height: 56px;
    width: 56px;
    margin-top:0;
    background-repeat: inherit;
  }
}
