.euh-sticky-header-enabled #masthead {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-bar.euh-sticky-header-enabled #masthead {
    top: 32px;
}

.euh-header-search-trigger {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    box-sizing: border-box;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    margin-left: 12px;
    padding: 0;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    width: 36px;
}

.euh-header-search-trigger svg {
    display: block;
    height: 18px;
    width: 18px;
}

.euh-header-search-trigger:hover,
.euh-header-search-trigger:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    color: #0f766e;
    outline: none;
}

.euh-header-search-trigger--fallback {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 1001;
}

.euh-header-search-trigger--inline-fallback {
    margin-left: auto;
}

.admin-bar .euh-header-search-trigger--fallback {
    top: 50px;
}

.euh-header-search[hidden] {
    display: none;
}

.euh-header-search {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100000;
}

.euh-header-search__backdrop {
    background: rgba(15, 23, 42, 0.38);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.euh-header-search__panel {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
    left: 50%;
    max-height: min(760px, calc(100vh - 64px));
    max-width: min(760px, calc(100vw - 32px));
    overflow: auto;
    padding: 22px;
    position: absolute;
    top: 78px;
    transform: translateX(-50%);
    width: 760px;
}

.admin-bar .euh-header-search__panel {
    top: 96px;
}

.euh-header-search__head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.euh-header-search__eyebrow {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.euh-header-search__head h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.euh-header-search__close {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 24px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.euh-header-search__input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
    min-height: 48px;
    padding: 12px 14px;
    width: 100%;
}

.euh-header-search__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.euh-header-search__count {
    color: #475569;
    font-size: 13px;
    margin: 10px 0 14px;
}

.euh-header-search__results {
    display: grid;
    gap: 10px;
}

.euh-header-search__result {
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    color: #0f172a;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    text-decoration: none;
}

.euh-header-search__result:hover,
.euh-header-search__result:focus {
    border-color: #0f766e;
    outline: none;
}

.euh-header-search__result strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}

.euh-header-search__result span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.euh-header-search__result small,
.euh-header-search__empty {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.euh-header-search-open {
    overflow: hidden;
}

@media (max-width: 921px) {
    .euh-header-search-trigger {
        height: 34px;
        margin-left: 8px;
        width: 34px;
    }
}

@media (max-width: 782px) {
    .admin-bar.euh-sticky-header-enabled #masthead {
        top: 46px;
    }

    .admin-bar .euh-header-search__panel {
        top: 74px;
    }
}

@media (max-width: 520px) {
    .euh-header-search__panel {
        border-radius: 8px;
        max-height: calc(100vh - 32px);
        max-width: calc(100vw - 20px);
        padding: 18px;
        top: 56px;
    }

    .euh-header-search__head h2 {
        font-size: 24px;
    }
}
