/**
 * 2017 IQIT-COMMERCE.COM
 *
 * NOTICE OF LICENSE
 *
 * This file is licenced under the Software License Agreement.
 * With the purchase or the installation of the software in your application
 * you accept the licence agreement
 *
 * @author    IQIT-COMMERCE.COM <support@iqit-commerce.com>
 * @copyright 2017 IQIT-COMMERCE.COM
 * @license   Commercial license (You can not resell or redistribute this software.)
 *
 */

.product-search-container {
    position: relative;
}

#product-search-results {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    background-color: #fff;
    z-index: 100000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    overflow: hidden;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    max-height: 400px; /* Maximum height before scrolling */
    overflow-y: auto;
    height: auto; /* Allow height to adjust based on content */
}

.dropdown-menu-custom.show {
    display: block !important;
    z-index: 100000 !important;
}

.product-search-item {
    display: flex block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    overflow: hidden;
}

.media {
    display: flex;
    align-items: center;
}

.product-search-item:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.product-search-item.active, .product-search-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #007bff;
}
