.bls {
    position: relative;
    width: 100%;
    min-width: 0;
    font-family: inherit;
    color: var(--bls-text);
    isolation: isolate
}

.bls * {
    box-sizing: border-box
}

.bls .bls-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    background: var(--bls-background);
    border: 2px solid transparent;
    border-radius: 999px;
    min-height: 64px;
    padding: 0 16px 0 28px;
    transition: border-color .15s
}

.bls .bls-form:focus-within {
    border-color: var(--bls-accent)
}

.bls .bls-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 16px 0;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
    background: transparent !important;
    border-radius: 0;
    color: var(--bls-text);
    font: inherit;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.35;
    text-overflow: ellipsis
}

.bls .bls-input::placeholder {
    color: var(--bls-muted);
    opacity: 1
}

.bls .bls-submit {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bls-muted);
    cursor: pointer
}

.bls .bls-submit:hover {
    background: var(--bls-hover);
    color: var(--bls-accent)
}

.bls .bls-submit:focus-visible,
.bls .bls-list a:focus-visible {
    outline: 2px solid var(--bls-accent);
    outline-offset: 2px
}

.bls .bls-panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 10px);
    z-index: 1000;
    max-height: min(60vh, 440px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--bls-panel);
    border: 1px solid var(--bls-background);
    border-radius: 18px;
    box-shadow: 0 12px 32px #0002;
    padding: 12px
}

.bls [hidden] {
    display: none !important
}

.bls .bls-heading {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 10px
}

.bls .bls-status {
    font-size: 14px;
    margin: 0;
    padding: 4px 10px 8px;
    color: var(--bls-text)
}

.bls .bls-status:empty {
    display: none
}

.bls .bls-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.bls .bls-list li {
    margin: 0;
    padding: 0
}

.bls .bls-list a {
    display: block;
    min-height: 44px;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bls-text);
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere
}

.bls .bls-list a:hover,
.bls .bls-list a:focus {
    background: var(--bls-hover)
}

.bls .bls-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:767px) {
    .bls .bls-form {
        min-height: 56px;
        padding-inline: 16px 8px
    }

    .bls .bls-input {
        font-size: 16px;
        padding-block: 12px
    }

    .bls .bls-panel {
        padding: 8px;
        border-radius: 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    .bls .bls-form {
        transition: none
    }
}

/* 1.1: responsive sizing and a body-level suggestion panel. */
.bls:not(.bls-portal) {
    width: calc(100% - 32px);
    max-width: var(--bls-width, 960px);
    margin-inline: auto
}

.bls .bls-form {
    min-height: var(--bls-height, 56px);
    height: auto;
    padding-inline: 20px 8px
}

.bls .bls-input {
    font-size: var(--bls-font-size, 18px);
    padding-block: 8px
}

.bls.bls-portal {
    position: fixed;
    z-index: 997;
    margin: 0;
    max-width: none;
    isolation: isolate
}

.bls.bls-portal[hidden] {
    display: none !important
}

.bls.bls-portal .bls-panel {
    position: relative;
    top: auto;
    inset-inline: auto;
    width: 100%;
    margin: 0;
    max-height: var(--bls-panel-height, 320px)
}

.bls .bls-all {
    display: block;
    margin-top: 8px;
    padding: 12px 10px;
    min-height: 44px;
    color: var(--bls-accent);
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    border-top: 1px solid var(--bls-background)
}

.bls .bls-all:focus-visible {
    outline: 2px solid var(--bls-accent);
    outline-offset: -2px
}

@media(min-width:768px) and (max-width:1024px) {
    .bls:not(.bls-portal) {
        max-width: var(--bls-tablet-width, 720px)
    }
}

@media(max-width:767px) {
    .bls .bls-form {
        min-height: var(--bls-mobile-height, 50px);
        padding-inline: 14px 6px
    }

    .bls .bls-input {
        font-size: var(--bls-mobile-font-size, 16px);
        padding-block: 6px
    }
}