#searchSubmitBtn .search-submit-icon,
#searchSubmitBtn .search-submit-pending,
#searchSubmitBtn[aria-busy="true"] .search-submit-label,
.search-exact-toggle .search-exact-icon,
#navReverseSearchBtn {
    display: none;
}

#searchSubmitBtn[aria-busy="true"] .search-submit-pending {
    display: inline;
}

@media (max-width: 799px) {
    header .search-bar {
        gap: 6px;
    }

    #searchInputWrapper #searchInput {
        min-height: 44px;
        padding-inline-end: 47px;
        font-size: 16px;
    }

    #searchSubmitBtn,
    header .header-actions #navReverseSearchBtn {
        display: inline-grid;
        place-items: center;
        box-sizing: border-box;
        flex: 0 0 44px;
        inline-size: 44px;
        block-size: 44px;
        margin: 0;
        padding: 0;
        font-size: 20px;
        line-height: 1;
    }

    #searchSubmitBtn .search-submit-label,
    #searchSubmitBtn[aria-busy="true"] .search-submit-pending,
    header .search-bar .search-reverse-desktop,
    .search-exact-toggle .search-exact-label {
        display: none;
    }

    #searchSubmitBtn .search-submit-icon,
    .search-exact-toggle .search-exact-icon {
        display: block;
    }

    #searchSubmitBtn[aria-busy="true"] .search-submit-icon {
        opacity: .55;
    }

    #searchSubmitBtn {
        border-radius: var(--radius-sm);
    }

    header .header-actions #navReverseSearchBtn {
        background: rgba(255, 255, 255, .15);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: var(--radius-sm);
        color: #fff;
        box-shadow: none;
    }

    header .header-actions #navReverseSearchBtn:hover {
        background: rgba(255, 255, 255, .25);
    }

    [data-theme="fluttershy"] header .header-actions #navReverseSearchBtn {
        background: rgba(113, 63, 18, .1);
        border-color: rgba(113, 63, 18, .2);
        color: #713f12;
    }

    [data-theme="fluttershy"] header .header-actions #navReverseSearchBtn:hover {
        background: rgba(113, 63, 18, .2);
    }

    #searchInputWrapper .search-exact-toggle {
        inset-inline-end: 2px;
        display: grid;
        place-items: center;
        inline-size: 42px;
        block-size: 42px;
        padding: 0;
        background: transparent;
    }

    #searchInputWrapper .search-exact-toggle .search-exact-icon {
        padding: 7px;
        border-radius: 6px;
        font-size: 17px;
        line-height: 1;
    }

    #searchInputWrapper .search-exact-toggle:hover .search-exact-icon {
        background: rgba(255, 255, 255, .12);
    }

    #searchInputWrapper .search-exact-toggle:has(input:checked) .search-exact-icon {
        background: rgba(255, 255, 255, .28);
        box-shadow: inset 0 0 0 1px currentColor;
    }

    .search-exact-toggle input {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        opacity: 0;
    }
}
