/**
 * VERAUTO - Zero-results presentation, Motors listing page only.
 * Applied only when the JS detects exactly zero matching vehicles.
 */

/* Restore contrast for headings on the light inventory background. */
body.verauto-has-zero-results .stm-listing-directory-title .title,
body.verauto-has-zero-results .stm-car-listing-sort-units .stm-listing-directory-title .title,
body.verauto-has-zero-results .filter-sidebar h3,
body.verauto-has-zero-results .stm-filter-sidebar h3 {
    color: #263239 !important;
    text-shadow: none !important;
}

body.verauto-has-zero-results .stm-listing-directory-title .total,
body.verauto-has-zero-results .stm-listing-directory-title .total span,
body.verauto-has-zero-results .stm-listing-directory-title .stm-listing-directory-total-matches,
body.verauto-has-zero-results .stm-car-listing-sort-units .stm-select-sorting-label {
    color: #62717b !important;
}

/* Hide the theme's duplicate, unreadable message when our accessible card appears. */
body.verauto-has-zero-results .stm-ajax-row h3,
body.verauto-has-zero-results .stm-ajax-row .stm-listings-empty,
body.verauto-has-zero-results #listings-result h3,
body.verauto-has-zero-results #listings-result .stm-listings-empty {
    display: none !important;
}

/* Sorting is meaningless with no results; it returns automatically with results. */
body.verauto-has-zero-results .stm-car-listing-sort-units .stm-select-sorting {
    display: none !important;
}

body.verauto-has-zero-results .verauto-empty-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 24px 0 40px;
    padding: 48px 30px;
    width: 100%;
    min-height: 260px;
    border: 1px solid #e0e8ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(18, 55, 70, .045);
    text-align: center;
    box-sizing: border-box;
}

body.verauto-has-zero-results .verauto-empty-results__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eef7fc;
    color: #1988bb;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

body.verauto-has-zero-results .verauto-empty-results__title {
    display: block !important;
    color: #233139 !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-shadow: none !important;
}

body.verauto-has-zero-results .verauto-empty-results__description {
    color: #52636d !important;
    max-width: 510px;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 24px;
}

body.verauto-has-zero-results .verauto-empty-results__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 7px;
    background: #208bbc;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s ease;
}

body.verauto-has-zero-results .verauto-empty-results__reset:hover,
body.verauto-has-zero-results .verauto-empty-results__reset:focus-visible {
    background: #126b96;
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 767px) {
    body.verauto-has-zero-results .verauto-empty-results {
        padding: 32px 18px;
        margin-top: 16px;
        min-height: 220px;
    }
    body.verauto-has-zero-results .verauto-empty-results__title {
        font-size: 21px;
    }
}
