.fa-hakukone2-desktop-panel,
.fa-hakukone2-mobile-overlay {
    box-sizing: border-box;
    font-family: inherit;
}

.fa-hakukone2-desktop-panel {
    position: fixed;
    z-index: 99999;
    overflow: auto;
    max-height: min(560px, calc(100vh - 24px));
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.fa-hakukone2-result {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #ececec;
    color: #222;
    text-decoration: none;
}

.fa-hakukone2-result:hover,
.fa-hakukone2-result:focus,
.fa-hakukone2-result[aria-selected="true"] {
    background: #f7f7f7;
    color: #111;
    outline: 0;
}

.fa-hakukone2-suggested-search {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8fbff;
    color: #1d3f63;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.fa-hakukone2-suggested-search::before {
    content: "Tarkennettu haku";
    display: block;
    margin-bottom: 2px;
    color: #68798a;
    font-size: 0.76em;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fa-hakukone2-suggested-search:hover,
.fa-hakukone2-suggested-search:focus,
.fa-hakukone2-suggested-search[aria-selected="true"] {
    background: #edf5fd;
    color: #132f4b;
    outline: 0;
}

.fa-hakukone2-result-image {
    display: flex;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f4f4;
}

.fa-hakukone2-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fa-hakukone2-result-text,
.fa-hakukone2-result-name,
.fa-hakukone2-result-description {
    display: block;
}

.fa-hakukone2-result-text {
    min-width: 0;
}

.fa-hakukone2-result-name {
    font-weight: 600;
    line-height: 1.3;
}

.fa-hakukone2-result-description {
    margin-top: 3px;
    color: #777;
    font-size: 0.88em;
    line-height: 1.3;
}

.fa-hakukone2-message,
.fa-hakukone2-show-all {
    display: block;
    margin: 0;
    padding: 14px 16px;
}

.fa-hakukone2-message {
    color: #666;
}

.fa-hakukone2-message[hidden] {
    display: none;
}

.fa-hakukone2-message.is-error {
    color: #8a1f11;
}

.fa-hakukone2-show-all {
    background: #f4f4f4;
    color: #222;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.fa-hakukone2-show-all:hover,
.fa-hakukone2-show-all:focus,
.fa-hakukone2-show-all[aria-selected="true"] {
    background: #e9e9e9;
    color: #111;
}

.fa-hakukone2-mobile-overlay {
    display: none;
}

.storefront-handheld-footer-bar .search > .site-search[data-fa-hakukone2-native-search] {
    display: none !important;
}

.fa-hakukone2-result-limit-notice {
    clear: both;
}

@media (max-width: 767px) {
    .fa-hakukone2-desktop-panel {
        display: none !important;
    }

    body.fa-hakukone2-mobile-open {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
    }

    body.fa-hakukone2-mobile-open .storefront-handheld-footer-bar {
        z-index: 1000001;
    }

    body.fa-hakukone2-mobile-open.sf-input-focused .storefront-handheld-footer-bar {
        display: block !important;
    }

    .fa-hakukone2-mobile-overlay {
        position: fixed;
        z-index: 1000000;
        top: 0;
        right: 0;
        bottom: var(--fa-hakukone2-handheld-height, 0px);
        left: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
    }

    .fa-hakukone2-mobile-overlay[hidden] {
        display: none;
    }

    .fa-hakukone2-mobile-header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        padding: max(10px, env(safe-area-inset-top)) 12px 10px;
        border-bottom: 1px solid #ddd;
        background: #fff;
    }

    .fa-hakukone2-mobile-form {
        flex: 1 1 auto;
        margin: 0;
    }

    .fa-hakukone2-mobile-query {
        width: 100%;
        height: 44px;
        margin: 0;
        padding: 8px 12px;
        border: 1px solid #aaa;
        border-radius: 4px;
        background: #fff;
        color: #222;
        font-size: 16px;
        line-height: 1.2;
    }

    .fa-hakukone2-mobile-close {
        min-height: 44px;
        padding: 0 4px;
        border: 0;
        background: transparent;
        color: #222;
        font: inherit;
        font-weight: 600;
    }

    .fa-hakukone2-mobile-results {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .fa-hakukone2-mobile-results .fa-hakukone2-result {
        min-height: 82px;
        padding: 12px 14px;
    }

    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result:visited,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result:hover,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result:focus,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result-text,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result-name,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result-description {
        text-decoration: none !important;
    }

    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result:visited,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result-text,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result-name {
        color: #222 !important;
    }

    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-result-description {
        color: #777 !important;
    }

    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-suggested-search,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-suggested-search:visited,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-suggested-search:hover,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-suggested-search:focus {
        color: #1d3f63 !important;
        text-decoration: none !important;
    }

    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-show-all,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-show-all:visited,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-show-all:hover,
    .storefront-handheld-footer-bar .search .fa-hakukone2-mobile-overlay .fa-hakukone2-show-all:focus {
        color: #222 !important;
        text-decoration: none !important;
    }
}

@media (min-width: 768px) {
    .fa-hakukone2-mobile-overlay {
        display: none !important;
    }
}
