/*
 * Webthik AJAX Product Search
 * Owner: Webthik
 * https://www.webthik.com/
 */

.webthik-aps {

    --waps-black: #080808;
    --waps-gold: #CEB006;

    --waps-text: #171717;
    --waps-muted: #777777;

    --waps-border: #dddddd;

    --waps-background: #ffffff;

    position: relative;

    width: 100%;

    max-width: 850px;

    margin: 0 auto;

    font-family: inherit;

    z-index: 9999;
}


/*
 * Box sizing.
 */

.webthik-aps *,
.webthik-aps *::before,
.webthik-aps *::after {

    box-sizing: border-box;

}


/*
 * Search form.
 */

.webthik-aps__form {

    position: relative;

    width: 100%;

}


/*
 * SEARCH BOX
 *
 * 2px #080808 border
 */

.webthik-aps__input-wrap {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 58px;

    background:
        var(--waps-background);

    border:
        2px solid var(--waps-black);

    border-radius: 7px;

    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


/*
 * Search box focus.
 */

.webthik-aps__input-wrap:focus-within {

    border-color:
        var(--waps-black);

    box-shadow:
        0 0 0 3px
        rgba(8, 8, 8, 0.08);

}


/*
 * Search icon.
 */

.webthik-aps__search-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex:
        0 0 auto;

    margin-left: 17px;

    color:
        var(--waps-black);

}


/*
 * Input.
 */

.webthik-aps__input {

    width: 100%;

    min-width: 0;

    height: 54px;

    padding:
        0
        92px
        0
        12px;

    border: 0 !important;

    outline: none !important;

    box-shadow: none !important;

    background:
        transparent !important;

    color:
        var(--waps-text);

    font-family: inherit;

    font-size: 16px;

    line-height: 1.4;

}


/*
 * Placeholder.
 */

.webthik-aps__input::placeholder {

    color:
        #888888;

}


/*
 * Clear button.
 */

.webthik-aps__clear {

    position: absolute;

    right: 45px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 28px;

    height: 28px;

    padding: 0;

    border: 0;

    border-radius: 7px;

    background:
        #eeeeee;

    color:
        #555555;

    cursor: pointer;

    font-size: 20px;

    line-height: 27px;

    text-align: center;

    transition:
        background 0.15s ease,
        color 0.15s ease;

}


.webthik-aps__clear:hover {

    background:
        var(--waps-black);

    color:
        var(--waps-gold);

}


/*
 * Loading spinner.
 */

.webthik-aps__spinner {

    position: absolute;

    right: 17px;

    width: 18px;

    height: 18px;

    border:
        2px solid #dddddd;

    border-top-color:
        var(--waps-black);

    border-radius: 50%;

    animation:
        webthikSearchSpin
        0.7s linear infinite;

    display: none;

}


.webthik-aps.is-loading
.webthik-aps__spinner {

    display: block;

}


@keyframes webthikSearchSpin {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/*
 * RESULTS DROPDOWN
 */

.webthik-aps__results {

    position: absolute;

    left: 0;

    right: 0;

    top:
        calc(100% + 8px);

    width: 100%;

    max-height: 560px;

    overflow-y: auto;

    overflow-x: hidden;

    background:
        #ffffff;

    border:
        1px solid
        var(--waps-border);

    /*
     * 7px radius.
     */

    border-radius: 7px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.12);

}


/*
 * Scrollbar.
 */

.webthik-aps__results::-webkit-scrollbar {

    width: 7px;

}


.webthik-aps__results::-webkit-scrollbar-track {

    background:
        #f5f5f5;

}


.webthik-aps__results::-webkit-scrollbar-thumb {

    background:
        #cfcfcf;

    border-radius: 7px;

}


/*
 * PRODUCT RESULT
 */

.webthik-aps__item {

    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    min-height: 92px;

    padding:
        11px 13px;

    background:
        #ffffff;

    color:
        inherit;

    text-decoration: none !important;

    /*
     * 7px radius.
     */

    border-radius: 7px;

    border-bottom:
        1px solid #eeeeee;

    transition:
        background 0.15s ease;

}


/*
 * Last result.
 */

.webthik-aps__item:last-child {

    border-bottom: 0;

}


/*
 * Hover.
 */

.webthik-aps__item:hover,
.webthik-aps__item:focus {

    background:
        #fafafa;

    outline: none;

}


/*
 * Product image wrapper.
 */

.webthik-aps__thumbnail {

    position: relative;

    flex:
        0 0 68px;

    width: 68px;

    height: 68px;

    overflow: hidden;

    background:
        #f5f5f5;

    /*
     * 7px radius.
     */

    border-radius: 7px;

}


/*
 * Product image.
 */

.webthik-aps__product-image {

    display: block;

    width: 100% !important;

    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

}


/*
 * Product content.
 */

.webthik-aps__content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 7px;

    min-width: 0;

    flex: 1;

}


/*
 * Product name.
 */

.webthik-aps__name {

    display: block;

    overflow: hidden;

    color:
        var(--waps-text);

    font-size: 15px;

    font-weight: 600;

    line-height: 1.35;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/*
 * PRICE ROW
 */

.webthik-aps__price-row {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

}


/*
 * Regular price.
 */

.webthik-aps__regular-price {

    color:
        #999999;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.3;

    text-decoration: line-through;

}


/*
 * Sale price.
 */

.webthik-aps__sale-price {

    color:
        var(--waps-black);

    font-size: 15px;

    font-weight: 700;

    line-height: 1.3;

}


/*
 * Normal price.
 */

.webthik-aps__normal-price {

    color:
        var(--waps-black);

}


/*
 * DISCOUNT PERCENTAGE
 *
 * Background: #080808
 * Text: #CEB006
 */

.webthik-aps__discount {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 24px;

    padding:
        3px 8px;

    background:
        #080808;

    color:
        #CEB006;

    /*
     * 7px radius.
     */

    border-radius: 7px;

    font-size: 11px;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;

}


/*
 * Arrow.
 */

.webthik-aps__arrow {

    flex:
        0 0 28px;

    color:
        #999999;

    font-size: 20px;

    text-align: center;

    transition:
        color 0.15s ease,
        transform 0.15s ease;

}


.webthik-aps__item:hover
.webthik-aps__arrow {

    color:
        var(--waps-black);

    transform:
        translateX(3px);

}


/*
 * No results.
 */

.webthik-aps__empty {

    padding:
        30px 20px;

    color:
        var(--waps-muted);

    font-size: 14px;

    text-align: center;

    /*
     * 7px radius.
     */

    border-radius: 7px;

}


/*
 * Screen reader.
 */

.webthik-aps__screen-reader {

    position: absolute !important;

    width: 1px !important;

    height: 1px !important;

    padding: 0 !important;

    margin: -1px !important;

    overflow: hidden !important;

    clip:
        rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;

}


/*
 * MOBILE
 */

@media (max-width: 767px) {

    .webthik-aps {

        max-width: 100%;

    }


    .webthik-aps__input-wrap {

        min-height: 52px;

        border-radius: 7px;

    }


    .webthik-aps__input {

        height: 48px;

        font-size: 16px;

        padding-right: 82px;

    }


    .webthik-aps__results {

        max-height: 65vh;

        border-radius: 7px;

    }


    .webthik-aps__item {

        gap: 10px;

        min-height: 78px;

        padding:
            9px 10px;

        border-radius: 7px;

    }


    .webthik-aps__thumbnail {

        width: 54px;

        height: 54px;

        flex-basis: 54px;

        border-radius: 7px;

    }


    .webthik-aps__name {

        font-size: 14px;

    }


    .webthik-aps__regular-price {

        font-size: 12px;

    }


    .webthik-aps__sale-price {

        font-size: 14px;

    }


    .webthik-aps__discount {

        min-height: 22px;

        padding:
            3px 7px;

        border-radius: 7px;

        font-size: 10px;

    }


    .webthik-aps__arrow {

        display: none;

    }

}


/*
 * SMALL MOBILE
 */

@media (max-width: 420px) {

    .webthik-aps__price-row {

        gap: 6px;

    }


    .webthik-aps__thumbnail {

        width: 50px;

        height: 50px;

        flex-basis: 50px;

    }

}