.woo-ajax-search-wrapper {
    position: relative;
    max-width: 100%;
}

.woo-ajax-search-form {
    position: relative;
}

.woo-ajax-search-form input.search-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.woo-ajax-search-form input.search-field:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.woo-ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999999;
    /* Super high z-index to beat Elementor sticky headers */
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.woo-ajax-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woo-ajax-search-results li {
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.woo-ajax-search-results li:last-child {
    border-bottom: none;
}

.woo-ajax-search-results a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.woo-ajax-search-results a:hover {
    background: #f9f9f9;
}

.product-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.product-price {
    font-size: 13px;
    color: #007cba;
    font-weight: 500;
}

/* Spinner for loading state */
.woo-ajax-search-wrapper.loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}