.col-xl-6:has(#turbook-search) {
    display: flex;
    justify-content: end;
}

.main-search-text {
    width: 57%;
}

#turbook-search {
    position: absolute;
    text-align: center;
    width: fit-content;
    height: fit-content;
    z-index: 10000;
    left: 0;
    top: 20px;
}

#turbook-search input {
    background-image: url('img/plaque.png');
    background-size: cover; /* or contain */
    background-repeat: no-repeat;
    background-position: center;
    max-width: 300px;
    border: none;
    padding: 5px 0 5px 85px;
    font-size: 25px;
    color: #5e5e5e;
    text-transform: uppercase;
    height: 40px;
    margin-top: 0;
    margin-bottom: 0;
}

#turbook-search input::placeholder {
    color: #aeaeae;
}

#turbook-search-search-icon-overlay {
    position: absolute;
    width: 46px;
    height: 44px;
    top: 0;
    right: 0;
    cursor: pointer;
}

.turbook-search-waiting-for-results {
    z-index: 99;
    top: 6px !important;
    right: 6px !important;
    border: 4px solid #ccc;            /* light grey */
    border-top: 4px solid #000;     /* blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    height: 30px !important;
    width: 30px !important;
    background-color: #fe5722;
}

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

.turbook-search-results-window {
    position: absolute;
    left: 10px;
    width: 500px;
    z-index: 999;
    background-color: white;
}

#turbook-search-results-car-wrapper {
    display: flex;
    gap: 30px;
}

#turbook-search-results-header {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
}

#turbook-search-results-header-title {
    
}

#turbook-search-results-header-content {
    color: #fe5722;
}

#turbook-search-results-car-data-wrapper {
    font-size: 12px;
    background-color: #f1f0f0;
    padding: 15px;
    border-radius: 25px;
    flex-grow: 2;
}

#turbook-search-results-car-images-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#turbook-search-results-car-images-wrapper img {
    max-height: 150px;
    object-fit: contain;
}

.turbook-search-results-row {
    text-transform: uppercase;
}

.turbook-search-results-row-title {
    font-weight: bold;
}

.turbook-search-results-row-data {

}

.turbook-search-matched-product-wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-top: 30px;
    background-color: #f1f0f0;
    padding: 15px;
    border-radius: 25px;
}

.turbook-search-matched-product-image {
    flex: 1;
}

.turbook-search-matched-product-image {
    width: 100%;
}

.turbook-search-matched-product-data {
    flex: 1; 
}

.turbook-search-matched-product-data p {
    margin: 0;
    font-weight: 600;
}

.turbook-search-matched-product-data h4 {
    margin-bottom: 8px;
    margin-top: 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.turbook-search-matched-product-name {
    font-weight: bold !important;
    font-size: 14px;
    margin-top: 8px !important;
}

.turbook-search-matched-product-price{
    color: #00d664;
    text-transform: uppercase;
    font-weight: bold !important;
    font-size: 18px;
    margin-bottom: 10px !important;
}

.turbook-search-matched-product-avalaibility {
    color: #00d664;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
}

.turbook-search-matched-product-data .add_to_cart_button {
    background-color: #fe5722;
    color: white;
    padding: 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 20px;
}

@media screen and (max-width: 1024px) {
    .col-xl-6:has(#turbook-search) {
        display: block;
    }
    .main-search-text {
        width: unset;
    }
    #turbook-search {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .turbook-search-matched-product-wrapper {
        flex-direction: column;
    }

    #turbook-search-results-car-wrapper {
        flex-direction: column-reverse;
    }
}