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

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

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

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

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

#turbook-search-search-icon-overlay {
    position: absolute;
    width: 20px !important;
    height: 20px !important;
    top: 10px !important;
    right: 5px !important;
    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: #f6f6f6;
    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;
    font-size: 14px;
}

.turbook-search-results-row-data {
    font-size: 15px;
}

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

.turbook-search-matched-product-image {
    flex-basis: 16.6667%;
    border-right: 1px solid #0000000d;
    width: 100%;
    padding-right: 15px;
}

.turbook-search-matched-product-data {
    flex-basis: 16.6667%;
    border-right: 1px solid #0000000d;
    padding-right: 15px;
    padding-left: 15px;
}

.turbook-search-matched-product-data:last-of-type {
    border-right: 0px;
    padding-right: 0;
}

.turbook-search-matched-product-data p {
    margin: 0;
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 500;
}

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

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

.turbook-search-matched-product-price{
    color: #11b775;
    text-transform: uppercase;
    font-size: 0 !important;
    font-weight: 500;
}

.turbook-search-matched-product-price .woocommerce-Price-amount {
    font-size: 20px !important;
    line-height: 30px;
}

.turbook-search-matched-product-avalaibility {
    color: green;
    text-transform: uppercase;
    font-weight: bold !important;
    font-size: 15px;
}

.turbook-search-matched-product-data .add_to_cart_button {
    background-color: #fe5722;
    color: white;
    padding: 7px 10px;
    border-radius: 30px;
    font-size: 15px;
    margin-top: 20px;
    font-weight: 400;
    text-align: center;
    letter-spacing: normal;
    width: 100%;
}

.content-area:has(#turbook-search-results-header) {
    background: none;
}

.entry-content:has(#turbook-search-results-header) {
    padding: 0 10px;
}

@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;
    }
}