/* Local search redesign: keep native radios and the existing search form contract. */
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) { position: relative; align-items: stretch; min-width: 0; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; margin: 10px 0 0; }
.ems-search-mode-caption { margin-right: 3px; color: #64705e; font-size: 12px; }
.ems-header-search .search-bottom .type_good { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; clip-path: inset(50%); }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-bottom label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; height: auto; margin: 0; padding: 8px 12px; border: 1px solid #dfe7dc; border-radius: 8px; background: #fff; color: #53614c; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.ems-header-search .search-bottom label::before, .ems-header-search .search-bottom label::after { display: none !important; }
.ems-header-search .search-bottom label svg { flex: 0 0 auto; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-bottom input:checked + label { border-color: #9ac58c; background: #edf6e8; color: #176f14; }
.ems-header-search .search-bottom input:focus-visible + label { outline: 2px solid #087f08; outline-offset: 3px; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-bottom label:hover { border-color: #8ebc81; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .search-field { display: block; width: 100%; height: 54px; margin: 0; padding: 0 144px 0 46px; border: 1px solid #bad2af; border-radius: 12px; background: #fff; color: #333f48; font: inherit; outline: none; box-shadow: none; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .search-field:focus { border-color: #087f08; box-shadow: 0 0 0 3px #087f0812; }
.ems-header-search .search-field::placeholder { color: #77846e; opacity: 1; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .icon { top: 0; width: 46px; height: 54px; pointer-events: none; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .icon::before { width: 22px; height: 22px; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .button-search { position: absolute; top: 5px; right: 5px; display: flex; align-items: center; justify-content: center; width: 120px; height: 44px; margin: 0; padding: 0 15px; border: 0; border-radius: 8px; background: #087f08; color: #fff; font: inherit; line-height: 1.3; cursor: pointer; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .button-search:hover { background: #056b05; }
.ems-header-search .ems-search-scope { margin: 7px 0 0; padding-left: 1px; color: #66745e; font-size: 12px; line-height: 1.5; }
:is(header .header-middle .header-search.ems-header-search, .search-overflow .search-form .search-container.ems-header-search) .search-top .search-result-block { top: 60px; padding: 8px 0; border: 1px solid #dfe7dc; border-radius: 10px; box-shadow: 0 10px 24px #1c33431a; max-height: 300px; overflow-y: auto; }
.ems-mobile-search-heading { width: 100%; max-width: 680px; margin: 0 0 24px; color: #274524; font-family: 'SBSansDisplay', Arial, sans-serif; font-size: 25px; line-height: 1.3; font-weight: 600; }
.search-overflow .search-form { padding: 78px 20px 30px; background: #fff; color: #333f48; overflow-y: auto; }
.search-overflow .search-form .search-container.ems-header-search { max-width: 680px; }
.search-overflow .search-form .search-container.ems-header-search .search-top .search-field { padding-right: 15px; }
.search-overflow .search-form .search-container.ems-header-search > .button-search { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 8px; background: #087f08; color: #fff; font: inherit; cursor: pointer; }
.search-overflow .search-form .search-container.ems-header-search > .button-search:hover { background: #056b05; }
.search-overflow .search-close-button .icon-search-burger::before, .search-overflow .search-close-button .icon-search-burger::after, .search-overflow .search-close-button .icon-search-burger .icon-search-burger__line { background: #375432; }
@media (min-width: 1400px) {
    header .header-middle .header-search.ems-header-search .ems-search-scope { position: absolute; bottom: 9px; right: 0; max-width: calc(100% - 450px); margin: 0; text-align: right; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    header .header-middle .header-search.ems-header-search .ems-search-scope { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0,0,0,0); }
}
@media (max-width: 575.98px) {
    .search-overflow .search-form .search-container.ems-header-search .search-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
    .search-overflow .search-form .search-container.ems-header-search .ems-search-mode-caption { grid-column: 1 / -1; margin: 0 0 2px; }
    .search-overflow .search-form .search-container.ems-header-search .search-bottom label { flex-direction: column; min-height: 72px; padding: 10px 6px; font-size: 13px; text-align: center; }
    .search-overflow .search-form .search-container.ems-header-search .search-top .search-field { padding-right: 15px; font-size: 16px; }
    .search-overflow .search-form .search-container.ems-header-search .search-top .search-result-block { top: 60px; }
}
