
#ajax-search-form {
    margin: 0 auto;
    max-width: 600px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#search-input {
    width: 100%;
    padding: 0 10px;
    font-size: 16px;
    outline: none;
    border: none;
}

.search-container .fa-search {
    font-size: 16px;
    color: #001f98;
    pointer-events: none;
    padding-right: 10px;
}

#search-results-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 600px;
    text-align: center;
}

#search-results {
    margin-top: 20px;
}

#search-results a {
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-decoration: none;
    color: #333;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 600px) {
    #search-results a {
        flex-direction: column;
        gap: 20px;
    }
}

#search-results .search-item-image {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
}

#search-results .search-item-image img {
    border-radius: 10px;
}

#search-results .search-item-details {
    border: none;
    text-align: left;
}

#close-results {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 16px;
    color: #001f98;
}

#search-results >div {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

#search-results h3 {
    margin: 0;
    font-size: 18px;
    color: #001f98;
}

#search-results p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
}

#load-more-container {
    margin-top: 20px;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
}


#load-more {
    background-color: #001f98;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#load-more:hover {
    background-color: #005a87;
}

#loading-spinner {
    display: none;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #001f98;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
