.web-search-assist-host {
    position: relative;
}

.web-search-assist[hidden] {
    display: none;
}

.web-search-assist {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 6px);
    right: 0;
    width: min(560px, 92vw);
    max-height: min(520px, 70vh);
    overflow: auto;
    padding: 14px 16px;
    border: 1px solid #515151;
    border-radius: 6px;
    background: #303030;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}

.web-search-assist-toolbar {
    display: none;
}

.web-search-assist-section + .web-search-assist-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #494949;
}

.web-search-assist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-bottom: 9px;
    color: #eee;
    font-size: 14px;
}

.web-search-assist-head strong {
    font-size: 15px;
    font-weight: 600;
}

.web-search-assist-head span,
.web-search-clear {
    color: #aaa;
    font-size: 12px;
}

.web-search-clear {
    padding: 4px 6px;
    border: 0;
    background: transparent;
}

.web-search-clear:hover,
.web-search-clear:focus {
    color: #00c818;
}

.web-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.web-search-chip {
    max-width: 100%;
    min-height: 32px;
    padding: 6px 10px;
    overflow: hidden;
    border: 1px solid #555;
    border-radius: 4px;
    background: #414141;
    color: #ddd;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-search-chip:hover,
.web-search-chip:focus {
    border-color: #00c818;
    color: #fff;
}

@media (max-width: 767px) {
    html.web-search-assist-open,
    html.web-search-assist-open body {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .web-search-assist {
        position: fixed;
        z-index: 10000;
        top: var(--web-search-assist-top, 48px);
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: var(--web-search-assist-height, calc(100vh - var(--web-search-assist-top, 48px)));
        max-height: var(--web-search-assist-height, calc(100vh - var(--web-search-assist-top, 48px)));
        padding: 0;
        border: 0;
        border-top: 1px solid #454545;
        border-radius: 0;
        background: #292929;
        box-shadow: none;
        overscroll-behavior: contain;
    }

    .web-search-assist-toolbar {
        position: sticky;
        z-index: 1;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 16px;
        border-bottom: 1px solid #454545;
        background: #292929;
        color: #eee;
        font-size: 15px;
    }

    .web-search-assist-close {
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #bbb;
        font-size: 26px;
        line-height: 36px;
        text-align: center;
    }

    .web-search-assist-close:focus,
    .web-search-assist-close:hover {
        color: #00c818;
    }

    .web-search-assist-body {
        padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
    }

    .web-search-chip {
        min-height: 34px;
    }

    .web-search-assist-section[data-search-hot] .web-search-chips {
        max-height: 160px;
        overflow: hidden;
        align-content: flex-start;
    }
}
