/**
 * All of the CSS for your admin-specific functionality should be included in this file.
 *
 * The file is enqueued from inc/admin/class-admin.php.
 */

.wpas-advanced-search-form-container form {
  margin: 10px auto;
}

.wpas-advanced-search-form-container p {
  width: 30%;
  padding: 0 10px 0 0;
  float: left;
}

#wpas-advanced-search-form .nds-search-button {
  background-color: #4bc970;
  float: right;
}

#wpas-advanced-search-form .nds-search-input {
  width: 100%;
}

#wpas-advanced-search-form .nds-input-container {
  overflow: hidden;
}

.nds-search-results .flex-grid-container {
  padding: 0;
  margin: 0;
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.nds-search-results .flex-grid-item {
  -ms-flex-preferred-size: 250px;
  flex-basis: 250px;
  margin: 10px;
  font-weight: initial;
  background-color: #eee;
}

.nds-search-results .flex-grid-item img {
  display: block;
  margin: 0 auto;
}

.nds-search-results .flex-grid-container .flex-grid-item .card-title {
  text-align: center;
  text-decoration: none;
  text-transform: initial;
  padding: 10px;
  margin-bottom: 5px;
  font-size: 14px;
}

.nds-search-results .flex-grid-container .flex-grid-item a {
  text-decoration: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.nds-search-results .flex-grid-container .flex-grid-item .card-excerpt {
  font-size: 12px;
  padding: 10px;
}

.nds-search-results .flex-grid-container ul {
  margin-left: 0;
}

.wpas_search_close {
  display: none;
  width: 34px;
  height: 34px;
  /* flex: 0 0 34px;
      flex-grow: 0;
      order: 7;
      -webkit-flex: 0 0 34px;
      -webkit-flex-grow: 0;
      -webkit-order: 7; */
  position: absolute;
  cursor: pointer;
  z-index: 999;
  right: 0;
  top: 4px;
}

.wpas_search_close svg {
  fill: rgb(254, 254, 254);
  background: rgb(51, 51, 51);
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.9);
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  left: 50%;
  margin-left: -10px;
  fill: #fefefe;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.disable_voice .voice-search-button,
.disableVoice .voice-search-button {
  display: none;
}
.disable_voice #input-voice-button{
  width: 100%; 
}
.enable_voice #input-voice-button {
  position: relative;
  width: 100%;
}
.enable_voice #input-voice-button .voice-search-button {
  right: 0px;
  top: 50% !important;
  transform: translateY(-50%);
}
.voice-search-wrapper.enable_voice #input-voice-button + input[type="submit"],
.voice-search-wrapper.disable_voice #input-voice-button + input[type="submit"] {
  margin: 0px;
}
.voice-search-wrapper.disable_voice #input-voice-button input,
.voice-search-wrapper.enable_voice #input-voice-button input {
  margin: 0;
  padding: var(--button--padding-vertical);
  padding-right: 32px;
  width: 100%;
}

.wpas-advanced-search-form-container
  .wpas_search_form
  .input_cont
  .wpas_input_container
  input {
  margin-left: 0px;
}
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]:focus {
  outline: inherit;
}

/* clears the 'X' from Internet Explorer */
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* clears the 'X' from Chrome */
.voice-search-wrapper.disable_voice,
.voice-search-wrapper.enable_voice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
}
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]::-webkit-search-decoration,
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]::-webkit-search-cancel-button,
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]::-webkit-search-results-button,
.voice-search-wrapper.enable_voice
  #input-voice-button
  input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
.enable_voice .wc-block-product-search__fields, 
.disable_voice .wc-block-product-search__fields {
    width: 100%;
}
.voice-search-wrapper.disable_voice .wpas_search_result, 
.voice-search-wrapper.enable_voice .wpas_search_result {
  position: absolute;
  left: 0;
  top: 100%;
}

.voice-search-wrapper.disable_voice label, 
.voice-search-wrapper.enable_voice label{ width: inherit; }

.disable_voice #input-voice-button, .enable_voice #input-voice-button {
  position: relative;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
}