/* =========================================================
   EFLC SEARCH V2
   Preview only: loaded by ?searchv2=1
   ========================================================= */

/* ---------------------------------------------------------
   OVERLAY
   --------------------------------------------------------- */

#eflcSearchV2 {
    display: none;
    position: absolute;
    top: 167px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 40px);
    max-width: 1150px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 14px -3px rgba(0, 0, 0, .14);
    z-index: 10000;
    transition: top .1s ease-in-out;
}

.header.active #eflcSearchV2 {
    top: 72px;
}

.eflcSearchV2Inner {
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   BRAND + CATEGORIES
   --------------------------------------------------------- */

.eflcSearchV2Top {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #dedede;
}

.eflcSearchV2BrandTarget {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.eflcSearchV2Brand {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 28px 18px;
    text-align: left;
}

.eflcSearchV2BrandTop {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    margin: 0 0 14px;
    text-align: left;
}

.eflcSearchV2BrandName {
    display: block;
    margin: 0;
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.eflcSearchV2BrandLogo {
    display: block;
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
}

.eflcSearchV2BrandStatus {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    color: #777;
    text-align: left;
}

.eflcSearchV2BrandCategories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.eflcSearchV2BrandCategories a {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    color: #0054a6;
    text-decoration: none;
    white-space: nowrap;
}

.eflcSearchV2BrandCategories a:hover {
    text-decoration: underline;
}

/* No recognised brand: hide empty brand row */
#eflcSearchV2:not(.eflcSearchV2HasBrand) .eflcSearchV2Top {
    display: none;
}

/* ---------------------------------------------------------
   SHARED SECTION LABEL
   --------------------------------------------------------- */

.eflcSearchV2Label {
    margin: 0 0 11px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #555;
}

/* ---------------------------------------------------------
   PRODUCTS
   --------------------------------------------------------- */

.eflcSearchV2Products {
    padding: 20px 16px;
}

.eflcSearchV2Products>.eflcSearchV2Label {
    margin: 0 12px 12px;
    text-align: center;
}

.eflcSearchV2ProductsPlaceholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
}

.eflcSearchV2ProductGrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.eflcSearchV2Product {
    min-width: 0;
    padding: 14px 14px 16px;
    box-sizing: border-box;
    text-align: center;
    border-right: 1px solid #e1e1e1;
}
.eflcSearchV2Product:nth-child(5n) {
    border-right: none;
}
.eflcSearchV2Product:last-child {
    border-right: 0;
}

.eflcSearchV2ProductLink {
    display: block;
    height: 100%;
    box-sizing: border-box;
    color: #222;
    text-decoration: none;
    transition: background-color .12s ease;
}

.eflcSearchV2ProductLink:hover,
.eflcSearchV2ProductLink:focus {
    background: #f7f9fb;
    color: #222;
    text-decoration: none;
}

.eflcSearchV2ProductImage {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.eflcSearchV2ProductImage img,
.eflcSearchV2Product img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.eflcSearchV2ProductBrand {
    margin-bottom: 3px;
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
}

.eflcSearchV2ProductModel {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 19px;
    font-weight: 700;
    color: #123d78;
}

.eflcSearchV2ProductName {
    min-height: 36px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 18px;
    color: #555;
}

.eflcSearchV2ProductPrice {
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
    color: #222;
}

.eflcSearchV2ProductPrice .productSpecialPrice {
    color: #d90000;
}

.eflcSearchV2ProductPrice .normalprice {
    margin-right: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
}

/* ---------------------------------------------------------
   POPULAR SEARCHES
   Full-width row below products
   --------------------------------------------------------- */

.eflcSearchV2PopularTarget {
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
    padding: 10px 16px 0;
}

.eflcSearchV2Intent {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 16px;
    background: #f1f5fa;
    border-radius: 7px;
}

.eflcSearchV2PopularTarget .eflcSearchV2Label {
    flex: 0 0 auto;
    margin: 0 30px 0 0;
    text-align: left;
    white-space: nowrap;
}

.eflcSearchV2Popular {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 28px;
    width: auto;
}

.eflcSearchV2Popular a {
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
    color: #123d78;
    text-decoration: none;
}

.eflcSearchV2Popular a:hover,
.eflcSearchV2Popular a.eflcSearchV2Selected {
    color: #0054a6;
    text-decoration: underline;
}

/* ---------------------------------------------------------
   KEYBOARD SELECTION
   --------------------------------------------------------- */

.eflcSearchV2ProductLink.eflcSearchV2Selected {
    background: #f1f5fa;
    box-shadow: inset 0 0 0 2px #174d8c;
}

/* ---------------------------------------------------------
   SPINNER
   --------------------------------------------------------- */

.eflcSearchV2Spinner {
    display: none;
    position: absolute;
    right: 48px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #d5d5d5;
    border-top-color: #555;
    border-radius: 50%;
    box-sizing: border-box;
    animation: eflcSearchV2Spin .65s linear infinite;
    z-index: 10;
}

@keyframes eflcSearchV2Spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    #eflcSearchV2 {
        width: calc(100vw - 30px);
    }

    .eflcSearchV2BrandCategories {
        column-gap: 24px;
    }

    .eflcSearchV2Product {
        padding-left: 10px;
        padding-right: 10px;
    }

    .eflcSearchV2Popular {
        gap: 6px 18px;
    }
}

@media (max-width: 760px) {
    #eflcSearchV2 {
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
    }

    .eflcSearchV2Brand {
        padding-left: 18px;
        padding-right: 18px;
    }

    .eflcSearchV2BrandTop {
        gap: 16px;
    }

    .eflcSearchV2BrandCategories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eflcSearchV2BrandCategories a {
        white-space: normal;
    }

    .eflcSearchV2ProductGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eflcSearchV2Products {
        padding-left: 8px;
        padding-right: 8px;
    }

    .eflcSearchV2Intent {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ---------------------------------------------------------
   VIEW ALL RESULTS
   --------------------------------------------------------- */

.eflcSearchV2ViewAllRow {
    padding: 12px 28px 20px;
    text-align: center;
}

.eflcSearchV2ViewAll {
    display: inline-block;
    min-width: 280px;
    padding: 9px 28px;
    box-sizing: border-box;
    background: #ccc;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
}

.eflcSearchV2ViewAll:hover,
.eflcSearchV2ViewAll:focus {
    background: #aaa;
    color: #fff;
    text-decoration: none;
}

.eflcSearchV2ProductGrid {
    position: relative;
}

.eflcSearchV2ProductNav {
    position: absolute;
    right: 8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}

.eflcSearchV2ProductNext {
    bottom: 7px;
}

.eflcSearchV2ProductPrev {
    top: 7px;
}

.eflcSearchV2ProductNav:hover {
    background: #bbb;
}