/* strong reset for only this module */
#dfgsearchpremium-root,
#dfgsearchpremium-root * { box-sizing: border-box; }

#dfgsearchpremium-root {
  width: 100% !important;
  display: block !important;
}

#dfgsearchpremium-root .dfgsearchpremium-form {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  position: relative !important;
}

#dfgsearchpremium-root .dfgsearchpremium-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

#dfgsearchpremium-root .dfgsearchpremium-input::placeholder {
  color: #bdbdbd !important;
  opacity: 1 !important;
}

#dfgsearchpremium-root .dfgsearchpremium-input:focus {
  border-color: rgba(198,13,13,.72) !important;
  box-shadow: 0 0 0 3px rgba(198,13,13,.14) !important;
}

#dfgsearchpremium-root .dfgsearchpremium-submit {
  flex: 0 0 auto !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(198,13,13,.8) !important;
  background: linear-gradient(180deg, #d71919 0%, #9f0909 100%) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
  cursor: pointer !important;
}

#dfgsearchpremium-root .dfgsearchpremium-submit-icon {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}

/* desktop inside drawer */
.hidden-sm-down .dfg-search-drawer #dfgsearchpremium-root .dfgsearchpremium-form,
.dfg-search-drawer #dfgsearchpremium-root .dfgsearchpremium-form {
  flex-direction: row !important;
}

/* mobile fixed centered bar */
@media (max-width: 991.98px) {
  .dfg-mobile-search {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 0 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .dfg-mobile-search #dfgsearchpremium-root {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
  }

  .dfg-mobile-search #dfgsearchpremium-root .dfgsearchpremium-form {
    position: relative !important;
    gap: 0 !important;
  }

  .dfg-mobile-search #dfgsearchpremium-root .dfgsearchpremium-input {
    min-height: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    padding: 0 16px 0 48px !important;
    text-align: center !important;
    font-size: 14px !important;
  }

  .dfg-mobile-search #dfgsearchpremium-root .dfgsearchpremium-submit {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #c9c6c6 !important;
    z-index: 2 !important;
  }

  .dfg-mobile-search #dfgsearchpremium-root .dfgsearchpremium-submit-text {
    display: none !important;
  }

  .dfg-mobile-search #dfgsearchpremium-root .dfgsearchpremium-submit-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

/* hide leaked legacy widgets/text from old search outputs */
.dfg-search-only > :not(#dfgsearchpremium-root),
.dfg-mobile-search > :not(#dfgsearchpremium-root) {
  display: none !important;
}

#search_widget,
.search-widget,
#searchbox,
.ui-autocomplete-input + .search,
.ui-autocomplete-input + .clear,
.dfg-mobile-search .btn,
.dfg-mobile-search button.btn,
.dfg-mobile-search input[type="submit"],
.dfg-mobile-search button[type="submit"]:not(.dfgsearchpremium-submit) {
  display: none !important;
}
