/* hCode Mobile Shell v0.6.2 - preserve theme header, search only */
@media (min-width: 992px) {
  #hmf-mobile-search-shell {
    display: none !important;
  }
}

@media (max-width: 991px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  input,
  select,
  textarea,
  button,
  .select2-selection,
  .select2-selection__rendered,
  .form-control,
  .directorypress-form-control {
    font-size: 16px !important;
  }

  #hmf-mobile-search-shell[hidden] {
    display: none !important;
  }

  .hmf-old-search-replaced {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  #hmf-mobile-search-shell.hmf-mobile-search-ready,
  #hmf-mobile-search-shell:not([hidden]) {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 16px 14px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 20 !important;
    clear: both !important;
  }

  .hmf-mobile-search-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hmf-mobile-search-inner {
    height: 50px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f1f2f4 !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border: 0 !important;
  }

  .hmf-mobile-search-icon,
  .hmf-mobile-search-button {
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 50px !important;
    border: 0 !important;
    background: transparent !important;
    color: #80848a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 21px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hmf-mobile-search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 50px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  .hmf-mobile-search-input::placeholder {
    color: #8a8d93 !important;
    opacity: 1 !important;
  }
}
