.be-header-directory-tools {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    position: relative;
}

.be-header-clinic-search {
    isolation: isolate;
    position: relative;
}

.be-header-search-toggle,
.be-header-search-close {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #2b313b;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.be-header-search-toggle {
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(17, 21, 28, 0.05);
    height: 38px;
    padding: 0;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    width: 38px;
}

.be-header-search-toggle svg {
    height: 17px;
    width: 17px;
}

.be-header-search-toggle:hover,
.be-header-clinic-search.is-open .be-header-search-toggle {
    background: #fff;
    border-color: #c8d3e6;
    box-shadow: 0 2px 6px rgba(17, 21, 28, 0.07);
    color: #2f6df6;
}

.be-header-search-toggle:focus,
.be-header-search-toggle:focus-visible {
    box-shadow: none !important;
    outline: 0 !important;
}

.be-header-search-close:focus-visible,
.be-header-search-results a:focus-visible {
    outline: 3px solid rgba(47, 109, 246, 0.24) !important;
    outline-offset: 2px;
}

.be-header-search-backdrop {
    background: rgba(17, 21, 28, 0.52);
    inset: 0;
    position: fixed;
    z-index: 10009;
}

.be-header-search-panel {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(17, 21, 28, 0.06), 0 30px 70px -34px rgba(17, 21, 28, 0.28);
    box-sizing: border-box;
    left: 50%;
    overflow: hidden;
    padding: 0;
    position: fixed;
    top: 104px;
    transform: translateX(-50%);
    width: min(590px, calc(100vw - 32px));
    z-index: 10010;
}

.be-header-search-field {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e8ecf2;
    border-radius: 0;
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 0 18px 0 20px;
}

.be-header-search-field > svg {
    color: #6d7786;
}

.be-header-search-field input {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #11151c;
    font: inherit;
    font-size: 15px;
    min-width: 0;
    outline: 0;
    padding: 12px 0;
    width: 100%;
}

.be-header-search-field kbd {
    border: 1px solid #dfe5ee;
    border-radius: 6px;
    color: #9aa3b1;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    padding: 4px 7px;
}

.be-header-search-field input::-webkit-search-cancel-button {
    display: none;
}

.be-header-search-close {
    display: none;
}

.be-header-search-status {
    color: #758092;
    font-size: 14px;
    line-height: 1.4;
    margin: 20px 16px;
    text-align: center;
}

.be-header-search-results {
    margin: 0;
    max-height: min(420px, calc(100vh - 150px));
    overflow-y: auto;
    padding: 10px 12px 16px;
}

.be-header-search-results:empty {
    display: none;
}

.be-header-search-group {
    padding: 6px 0 14px;
}

.be-header-search-group h3 {
    color: #9aa3b1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0;
    padding: 6px 8px 8px;
    text-transform: uppercase;
}

.be-header-search-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.be-header-search-results a {
    align-items: center;
    border-radius: 10px;
    color: #11151c;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 42px;
    padding: 9px 12px;
    text-decoration: none;
}

.be-header-search-results a:hover,
.be-header-search-results a:focus-visible {
    background: #f3f7fe;
}

.be-header-search-results span {
    display: block;
    min-width: 0;
}

.be-header-search-results a > svg {
    color: #69707c;
    height: 16px;
    width: 16px;
}

.be-header-search-results strong {
    display: block;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.3;
}

.be-header-search-results small {
    color: #9aa1ad;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0;
}

.be-header-search-results em {
    color: #2f6df6;
    flex: 0 0 auto;
    font-size: 26px;
    font-style: normal;
    line-height: 1;
}

.be-header-country-switcher {
    position: relative;
}

.be-header-country-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(28, 39, 59, 0.08);
    color: #11151c;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.be-header-country-toggle:hover,
.be-header-country-switcher.is-open .be-header-country-toggle {
    background: #fbfcff;
    border-color: #cbd7ee;
    box-shadow: 0 14px 34px rgba(28, 39, 59, 0.12);
}

.be-header-country-toggle:focus,
.be-header-country-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.16) !important;
    outline: 0 !important;
}

.be-header-country-flag {
    font-size: 18px;
    line-height: 1;
}

.be-header-country-toggle > svg {
    color: #7b8493;
}

.be-header-country-menu {
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(28, 39, 59, 0.16);
    box-sizing: border-box;
    min-width: 236px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 10011;
}

.be-header-country-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #11151c;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    font: inherit;
    padding: 11px 12px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.be-header-country-menu button:hover,
.be-header-country-menu button:focus-visible,
.be-header-country-menu button.is-active {
    background: #edf3ff;
    color: #245bd8;
    outline: 0 !important;
}

.be-header-country-menu button:not(.is-active) svg {
    opacity: 0;
}

.be-header-country-menu span {
    font-size: 17px;
    line-height: 1;
}

.be-header-country-menu strong {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .be-site-header .be-site-actions {
        display: flex !important;
        position: absolute;
        right: 50px;
    }

    .be-site-header .be-site-actions .be-header-cta {
        display: none !important;
    }

    .be-header-directory-tools {
        gap: 5px;
    }

    .be-header-search-toggle {
        height: 40px;
        width: 40px;
    }

    .be-header-country-toggle {
        border-radius: 10px;
        min-height: 40px;
        gap: 6px;
        padding: 0 8px;
    }

    .be-header-country-label {
        display: none;
    }

    .be-header-search-panel {
        top: 78px;
        max-width: calc(100vw - 24px);
        width: 590px;
    }

    body.admin-bar .be-header-search-panel {
        top: 96px;
    }

    .be-header-search-field {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 58px;
        padding: 0 12px 0 14px;
    }

    .be-header-search-field input {
        font-size: 16px;
        line-height: 1.25;
    }

    .be-header-search-field kbd {
        display: none;
    }

    .be-header-country-menu {
        right: -48px;
        top: calc(100% + 10px);
    }
}
