/* Jayeman: State + City side-by-side inside the vtwo search forms' Location column */

/* The template still wraps our output in its own single-select ".wr-select"
   div (chevron icon + flex, sized for one <select>). Reset it back to plain
   block flow so it doesn't fight our two-field row. */
.wr-formsearchvtwo .wr-select:has(> .jayeman-location-row) {
    display: block;
}
.wr-formsearchvtwo .wr-select:has(> .jayeman-location-row):before {
    content: none;
}

.jayeman-location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.wr-formsearchvtwo .jayeman-location-row {
    min-width: 500px;
}


.jayeman-location-row > .jayeman-state-field,
.jayeman-location-row > .jayeman-city-field {
    flex: 1 1 0;
    min-width: 0;
}

.jayeman-city-field .form-control {
    width: 100%;
}

/* "workreap-search-bar" Elementor widget (Jayeman_Search_Bar_Widget): State
   + City are inserted *inside* .wt-formoptions, right next to the
   search-type badge (.wt-dropdown) — see that class's PHP docblock. That
   div is normally position:absolute over the keyword input (a single-line
   "pill" design, confirmed in public/css/style.css), sized for just a badge
   + button. Converting it to a normal wrapping flex row is the only way to
   fit a select + text input beside the search-type control instead of
   below/outside the whole form. Everything here is scoped to
   .wr-search-bar-wrapper specifically, because bare .wt-formoptions/
   .form-group are reused, unscoped, by several *other* banner search
   widgets elsewhere in the theme (_award.scss, _responsive.scss) that must
   keep their original single-line pill layout untouched. */
.wr-search-bar-wrapper .wt-formbanner fieldset .form-group {
    flex-wrap: wrap;
    row-gap: 10px;
}

.wr-search-bar-wrapper .wt-formoptions {
    position: static;
    flex-wrap: wrap;
    row-gap: 10px;
}

/* The huge right-padding on the keyword input only exists to reserve room
   under the old absolutely-positioned overlay; not needed once it's static. */
.wr-search-bar-wrapper .wt-formbanner fieldset .form-group label .form-control {
    padding-right: 14px !important;
}

.wr-search-bar-wrapper .wt-formoptions .jayeman-location-row {
    width: auto;
}

.wr-search-bar-wrapper .wt-formoptions .jayeman-state-field,
.wr-search-bar-wrapper .wt-formoptions .jayeman-city-field {
    /* Override the vtwo-forms rule (flex: 1 1 0, meant for a full-width
       parent row) — here the row is auto-width, so grow/shrink would fight
       the sibling badge/button for space unpredictably. */
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
}

.wr-search-bar-wrapper .wt-formoptions .jayeman-city-field .form-control {
    height: 54px;
}

/* State badge+popup (Jayeman_Search_Bar_Widget) styled to match the
   search-type control (.wt-dropdown/.wt-radioholder/.wt-radio) right next
   to it — values copied from the theme's own compiled CSS for that control
   rather than reusing its bare classes, since workreap-public.js binds
   click handlers to .wt-dropdown/.wt-radioholder by bare class name at
   script-load time and a second real .wt-dropdown element would either not
   open its own list or wrongly toggle the search-type one instead. */
.wr-search-bar-wrapper .jayeman-state-field {
    position: relative;
    min-width: 0;
}

.wr-search-bar-wrapper .jayeman-state-dropdown {
    width: auto;
    cursor: pointer;
}

.wr-search-bar-wrapper .jayeman-state-dropdown > span {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    color: #999;
}

.wr-search-bar-wrapper .jayeman-state-dropdown > span > em {
    font-style: normal;
    font-size: 16px;
    line-height: 20px;
    color: #1E1E1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.wr-search-bar-wrapper .jayeman-state-radioholder {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    z-index: 2;
    width: 225px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

.wr-search-bar-wrapper .jayeman-state-radioholder > .wt-radio + .wt-radio {
    margin-top: 5px;
}

.wr-search-bar-wrapper .jayeman-state-radioholder label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 8px;
    border-radius: 10px;
    font: 400 16px/20px YekanBakhFaNum-Regular, sans-serif;
    color: #585858;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wr-search-bar-wrapper .jayeman-state-radioholder label:hover {
    background: #F7F7F7;
}

.wr-search-bar-wrapper .jayeman-state-radioholder input[type="radio"]:checked + label {
    background: #F7F7F7;
}




.jayeman-city-field {
  border-radius: 10px;
  border: 1.5px solid #eee;
  height: 50px;
  padding: 5px 10px;
}
.wr-search-bar-wrapper .wt-formbanner fieldset .form-group .wt-formoptions {
    position: absolute;
}





@media (max-width: 767px) {
    .wr-search-bar-wrapper .wt-formoptions .jayeman-location-row , .wr-search-bar-wrapper .wt-formbanner fieldset .form-group .wt-formoptions .wt-dropdown {
        flex: 1;
    }
}
