/* File: css/custom-product-search.css */

.custom-product-search-container {
    /* max-width: 680px; */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.search-box {
    display: flex;
    /* position: relative; */
    margin-bottom: 10px;
    box-shadow: 0 0 20px 0px #dfeefd;
    justify-content: center;
}

.product-search-input {
    /* flex-grow: 1; */
    min-width: 0;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--color-blu);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.product-search-button {
    background-color: var(--color-blu);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.product-search-button:hover {
    background-color: var(--color-sfondo);
}

.product-search-results {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
    /* background-color: white; */
}

.result-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid var(--color-blu);
    align-items: center;
}

.result-item:hover {
    background-color: var(--color-pannina);
}

.result-item:last-child {
    border-bottom: none;
}

.result-image {
    max-width: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-image img {
    /* max-width: 100%;
    max-height: 100%; */
    object-fit: contain; /* si può togliere anche questo */
}

.result-info {
    flex-grow: 1;
}

.result-title {
    font-weight: bold;
    color: var(--color-blu);
    /* margin-bottom: 5px; */
}

.result-sku {
    color: #666;
    font-size: 12px;
    /* margin-bottom: 5px; */
}

.result-price {
    text-align: right;
    min-width: 100px;
    /* font-weight: bold; */
    color: #666;
}

.price-prefix {
    font-size: 14px;
    color: #666;
}

.see-all-products {
    text-align: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    color: #666;
    cursor: pointer;
}

.see-all-products:hover {
    background-color: #e9e9e9;
}

/* .choose-button {
    background-color: #0d7ad8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.choose-button:hover {
    background-color: #0969c0;
} */

/* Stili per la barra di scorrimento */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}