/* ==========================================================================
   StoreLocal - New Homepage Search Test
   File: homepage-search-new.css

   Test implementation based on the previous CRO homepage search design.

   IMPORTANT:
   All rules are scoped beneath .storage-search-new so they do not modify
   the existing [storage-search] or other StoreLocal search components.
   ========================================================================== */


/* ==========================================================================
   MAIN WRAPPER
   ========================================================================== */

.storage-search-new {
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

.storage-search-new form.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 8px 8px 20px;

    background: #fff;

    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 50px;

    box-shadow: 0 0 70px 0 rgba(0, 0, 0, 0.50);

    box-sizing: border-box;
}


/* ==========================================================================
   LOCATION PIN INSIDE SEARCH FIELD
   ========================================================================== */

.storage-search-new .hero-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 18px;
    margin-right: 8px;

    pointer-events: none;
}

.storage-search-new .hero-search-icon svg {
    display: block;

    width: 18px;
    height: 22px;
}


/* ==========================================================================
   ADDRESS INPUT
   ========================================================================== */

.storage-search-new .address-input {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    padding-left: 0 !important;
    padding-right: 10px !important;

    font-size: 16px;
}

.storage-search-new .address-input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* ==========================================================================
   SEARCH BUTTON
   ========================================================================== */

.storage-search-new #searchButton {
    flex: 0 0 auto;

    position: relative;

    padding: 12px 20px;

    background-image: none !important;
}

.storage-search-new #searchButton:hover {
    border: unset !important;
}


/* Search text injected directly into new shortcode */

.storage-search-new .hero-search-button-text {
    display: inline-block;

    font-size: 16px;
    line-height: normal;

    color: #000;

    font-weight: 700;
}


/* ==========================================================================
   MENU AREA
   CURRENT LOCATION + STATES
   ========================================================================== */

.storage-search-new .menu-wrap {
    margin-top: 30px;
}


/* ==========================================================================
   CURRENT LOCATION LINK
   ========================================================================== */

.home-banner .storage-search-new .menu-wrap a.current-location {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    color: #fff !important;

    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;

    letter-spacing: -0.27px;

    text-decoration: none;
}

.home-banner .storage-search-new .current-location:hover,
.home-banner .storage-search-new .current-location:focus {
    color: #fff !important;
    text-decoration: none;
}


/* ==========================================================================
   CURRENT LOCATION CROSSHAIR ICON
   ========================================================================== */

.storage-search-new .hero-search-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
}

.storage-search-new .hero-search-location-icon svg {
    display: block;

    width: 22px;
    height: 22px;
}


/* ==========================================================================
   STATE SHORTCUTS
   ========================================================================== */

.home-banner .storage-search-wrap.storage-search-new .menu-wrap li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.20);

    padding: 8px;

    color: #fff !important;

    text-decoration: none;

    font-size: 18px;
    font-weight: 500;

    text-transform: capitalize;
}

.home-banner .storage-search-wrap.storage-search-new .menu-wrap li a:hover,
.home-banner .storage-search-wrap.storage-search-new .menu-wrap li a:focus {
    color: #fff !important;

    background: rgba(255, 255, 255, 0.30);

    text-decoration: none;
}


/* ==========================================================================
   MOBILE "OR" SEPARATOR
   Hidden on desktop.
   ========================================================================== */

.storage-search-new .hero-search-separator {
    display: none;
}


/* ==========================================================================
   SOCIAL PROOF
   ========================================================================== */

.storage-search-new .hero-search-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 40px;
}


/* Social proof faces/avatar image */

.storage-search-new .hero-search-social-proof-img {
    display: block;

    width: auto;
    height: auto;

    flex: 0 0 auto;
}

.storage-search-new .hero-search-social-proof-img img {
	min-width: 99px;
}


/* Social proof text */

.storage-search-new .hero-search-social-proof-text {
    margin: 0;

    color: #fff;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.4;
}

.storage-search-new .hero-search-social-proof-text strong {
    font-weight: 700;
}


/* ==========================================================================
   TABLET / MOBILE
   ========================================================================== */

@media only screen and (max-width: 768px) {

    /*
     * Search button:
     * hide Search text and show the existing StoreLocal magnifier.
     */

	.storage-search-new .hero-search-social-proof {
		margin-top: 18px !important;
	}

    .storage-search-new .hero-search-button-text {
        display: none;
    }


    .storage-search-new #searchButton {
        position: relative;

        width: 44px;
        height: 44px;

        padding: 0;
    }


    .storage-search-new #searchButton::after {
        content: "";

        position: absolute;

        top: 50%;
        left: 50%;

        width: 19px;
        height: 19px;

        transform: translate(-50%, -50%);

        background-image: url("/wp-content/uploads/2023/08/search-icon.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        filter: brightness(0);
    }


    /* --------------------------------------------------------------
       Search form
       -------------------------------------------------------------- */

    .storage-search-new form.search-box {
        padding: 8px 8px 8px 16px;
    }


    /* --------------------------------------------------------------
       Mobile separator
       -------------------------------------------------------------- */

    .storage-search-new .hero-search-separator {
        display: block;

        margin: 10px;

        text-align: center;

        color: #fff;

        font-size: 16px;
    }


    /* --------------------------------------------------------------
       Menu becomes vertical
       -------------------------------------------------------------- */

    .storage-search-new .menu-wrap {
        display: flex;
        flex-direction: column;

        flex-wrap: nowrap;

        gap: 20px;

        margin-top: 12px;
    }


    /* --------------------------------------------------------------
       Current location becomes button/pill
       -------------------------------------------------------------- */

    .storage-search-new .menu-wrap .current-location {
        width: 100%;

        box-sizing: border-box;

        justify-content: center;

        border-radius: 16px;

        background: rgba(255, 255, 255, 0.20);

        padding: 10px 8px;
    }


    /* --------------------------------------------------------------
       State menu
       -------------------------------------------------------------- */

    .storage-search-new .menu-wrap ul {
        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 16px 8px;
    }


    /* --------------------------------------------------------------
       Social proof
       -------------------------------------------------------------- */

    .storage-search-new .hero-search-social-proof-text {
        font-size: 15px;
    }

    .storage-search-new .hero-search-social-proof-img {
        width: 60px;
    }
	
	.storage-search-new .hero-search-social-proof-img img {
	min-width: 60px;
}
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media only screen and (max-width: 546px) {

    .storage-search-new .menu-wrap {
        gap: 12px;
    }

}


/* ==========================================================================
   415PX
   ========================================================================== */

@media only screen and (max-width: 415px) {

    .storage-search-new .menu-wrap li a {
        font-size: 19px;
    }

    .storage-search-new .hero-search-social-proof-text {
        font-size: 13px;
    }

}


/* ==========================================================================
   414PX
   ========================================================================== */

@media only screen and (max-width: 414px) {

    .storage-search-new .menu-wrap li a {
        font-size: 16px;
    }

}


/* ==========================================================================
   375PX
   ========================================================================== */

@media only screen and (max-width: 375px) {

    .storage-search-new .hero-search-social-proof-text {
        font-size: 12px;
    }

}


/* ==========================================================================
   360PX
   ========================================================================== */

@media only screen and (max-width: 360px) {

    .storage-search-new .menu-wrap li a {
        font-size: 14px;
    }

}