.live-search-widget {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.search-icon {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}

.search-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.search-input-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-style-icon .search-input-wrapper {
    display: none;
}

.search-style-full .search-input-wrapper {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #666;
}

.search-submit {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.search-submit:hover svg {
    fill: #333;
}

.search-results {
    margin-top: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-list {
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.result-item:hover {
    background-color: #f5f5f5;
}

.result-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.result-content {
    flex: 1;
}

.result-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.result-price {
    color: #0073aa;
    font-weight: bold;
}

.result-type {
    font-size: 12px;
    color: #666;
}

.searching,
.no-results {
    padding: 10px;
    text-align: center;
    color: #666;
}

@media screen and (max-width: 767px) {
    .search-style-icon .search-input-wrapper {
        position: fixed;
        top: 50px;
        left: 10px;
        right: 10px;
        min-width: auto;
        z-index: 99999;
    }
    
    .search-style-full .search-input-wrapper {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }
}