﻿/* anywhere page map */
.anywhere-page-map {
    margin: 0 0 30px;
}

    .anywhere-page-map .map-title {
        margin: 0 0 30px;
        text-align: center;
        font-size: 22px;
        color: #444;
        letter-spacing: 3.3px;
        text-transform: uppercase;
    }

    .anywhere-page-map .map-wrapper {
        margin: 0 0 20px;
    }

/* cross-page map elements */

.map-wrapper .map {
    height: 400px;
}

    .map-wrapper .map img {
        max-width: none;
        max-height: none;
    }

#shop-address-input {
    top: 10px !important;
    width: 180px;
    height: 30px;
    border: none;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    font-size: 11px;
}

.map-controls {
    text-align: center;
    line-height: 30px;
}

.getUserGeoLocation,
.align-map-button {
    margin: 0 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.map-controls .additional-info {
    display: block;
}

/* ALL SHOPS PAGE */

.directions-wrapper {
    display: none;
    max-width: 500px;
    margin: 30px auto 0;
    padding: 0 0 40px;
}

.directions-shown {
    display: block;
}

.directions-panel {
    position: relative;
    overflow-y: auto;
    text-align: left;
}

    .directions-panel .adp-text {
        padding: 0 15px;
    }

    .directions-panel .adp-step,
    .directions-panel .adp-substep {
        padding-top: 10px;
        padding-bottom: 10px;
    }

        .directions-panel .adp-substep:nth-child(3) {
            word-break: break-all; /*fix for Chrome horizontal scroll issue*/
        }

.current-location-wrap {
    margin: -25px 0 0;
    border-top: 2px solid #eee;
    padding: 35px 0;
}

    .current-location-wrap + .map-wrapper,
    .shops-sorting-filtering-wrapper {
        max-width: 500px;
        margin: auto;
    }

.shops-sorting-filtering-wrapper {
    border: 2px solid #eee;
    padding: 20px 0 30px;
    overflow: hidden;
}

    .shops-sorting-filtering-wrapper > div {
        margin: 15px 0;
    }

    .shops-sorting-filtering-wrapper label {
        display: block;
        margin: 0 0 5px;
    }

    .shops-sorting-filtering-wrapper select,
    .shops-sorting-filtering-wrapper input {
        width: 100%;
        max-width: 400px;
        height: 50px;
        border-width: 2px 0;
        border-style: solid;
        border-color: #eee;
        padding: 0 10px;
        vertical-align: middle;
    }

.radiusFilterWrapper span.units {
    display: inline-block;
    width: 20px;
    margin: 0 -20px 0 0;
}

.filter-shops-button {
    width: 100%;
    min-width: 110px;
    max-width: 400px;
    height: 50px;
    margin: 25px 0 0;
    border: 2px solid #eee;
    background-color: #f9f9f9;
    padding: 0 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.clear-filtered-shops {
    display: none;
    margin: 15px 0 0;
    background: url('images/close-button.png') no-repeat left center;
    padding: 0 15px;
}

.shops-list {
    margin: 30px 0 0;
}

.shops-item {
    max-width: 500px;
    margin: 50px auto 0;
    box-shadow: 0 0 8px 2px rgba(0,0,0,0.12);
    overflow: hidden;
}

    .shops-item .picture-wrap {
        font-size: 0;
    }

    .shops-item .picture-link {
        display: inline-block;
        width: 100%;
    }

    .shops-item .picture-img {
        width: 100%;
        max-width: 100%;
    }

    .shops-item .info-wrap {
        padding: 30px 20px;
    }

    .shops-item .shop-name {
        margin: 0 0 15px;
        font-size: 16px;
        letter-spacing: 2px;
        color: #444;
        text-transform: uppercase;
    }

        .shops-item .shop-name:after {
            content: "";
            display: block;
            width: 30px;
            height: 3px;
            margin: 10px auto 0;
        }

    .shops-item .distance-line {
        display: inline-block;
        margin: 0 5px 20px 0;
        vertical-align: middle;
    }

    .shops-item .show-directions {
        display: inline-block;
        margin: 0 0 20px 5px;
        vertical-align: middle;
        font-weight: bold;
    }

    .shops-item .short-description {
        margin: 0 0 15px;
        line-height: 24px;
    }

    .shops-item .tags,
    .shop-page .tags {
        margin: 0 0 30px;
    }

    .shops-item .tags-label,
    .shop-page .tags-label {
        display: inline-block;
        text-transform: uppercase;
        margin: 0 0 5px;
    }

    .shops-item .tag-item,
    .shop-page .tag-item {
        display: inline-block;
    }

        .shops-item .tag-item:after,
        .shop-page .tag-item:after {
            content: ",";
            margin: 0 10px 0 0;
        }

        .shops-item .tag-item:last-child:after,
        .shop-page .tag-item:last-child:after {
            display: none;
        }

    .shops-item .read-more {
        display: inline-block;
        min-width: 200px;
        border: none;
        padding: 14px 40px;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        color: #fff;
        transition: all 0.2s ease;
    }

        .shops-item .read-more:hover {
            opacity: 0.9;
        }

.no-shops-after-filtering {
    display: none;
}

/* SHOP PAGE */

.back-to-all-shops {
    display: none;
}

    .back-to-all-shops a {
    }

.shop-page .main-picture {
    margin: 0 0 20px;
    font-size: 0;
}

.shop-page .main-picture-link {
    display: inline-block;
}

.shop-page .main-picture-img {
    max-width: 100%;
}

.all-shop-images {
    margin: 0 0 5px;
    text-align: left;
    font-size: 0;
}

    .all-shop-images li {
        display: inline-block;
        margin: 0 0 5% 4%;
        width: 22%;
    }

        .all-shop-images li:nth-child(4n+1) {
            margin-left: 0;
        }

    .all-shop-images a {
        display: block;
    }

    .all-shop-images img {
        max-width: 100%;
    }

.shop-map-images {
    max-width: 480px;
    margin: 0 auto 40px;
}

    .shop-map-images .map {
        margin: 0 0 20px;
    }

    .shop-map-images .map-controls {
        padding: 0 0 20px;
    }

        .shop-map-images .map-controls a {
            font-weight: bold;
            text-transform: uppercase;
        }

    .shop-map-images .directions-wrapper {
        float: none;
        width: 100%;
    }

.shop-full-description {
    margin: 0 0 30px;
    line-height: 24px;
}

    .shop-full-description p {
        margin: 10px 0;
    }

    .shop-full-description td {
        border: 2px solid #eee;
        padding: 10px 15px;
        text-align: left;
    }

    .shop-full-description a {
        font-weight: bold;
    }

    .shop-full-description ul { /*theme specific*/
        margin: 12px 0;
        padding: 0 0 0 36px;
        list-style: disc;
    }

    .shop-full-description ol { /*theme specific*/
        margin: 12px 0;
        padding: 0 0 0 36px;
        list-style: decimal;
    }

@media all and (min-width: 481px) {
    #shop-address-input {
        width: 220px;
    }
}

@media all and (min-width: 769px) {
    .directions-wrapper {
        float: left;
        width: 40%;
        max-width: none;
        height: 400px;
        margin: 0;
        border: none;
        padding: 0;
    }

    .directions-panel {
        height: 100%;
        padding: 0 10px 0 0;
    }

        .directions-panel > div {
            margin: 0 0 10px;
        }

        .directions-panel #backToResults {
            display: none;
        }

        .directions-panel table {
            margin-top: 0;
        }

    .map-wrapper.directions-shown {
        float: right;
        width: 60%;
    }

    .current-location-wrap + .map-wrapper,
    .shops-sorting-filtering-wrapper {
        max-width: none;
    }

    .shops-sorting-filtering-wrapper {
        clear: both;
        padding: 20px;
        font-size: 0;
    }

        .shops-sorting-filtering-wrapper > div {
            display: inline-block;
            width: 28%;
            margin: 0 0 5px;
            padding: 0 20px;
            vertical-align: bottom;
            font-size: 13px; /*reset zeroing*/
        }

            .shops-sorting-filtering-wrapper > div:first-child {
                padding-left: 0;
            }

            .shops-sorting-filtering-wrapper > div:last-child {
                width: 16%;
                padding: 0;
                text-align: right;
            }

        .shops-sorting-filtering-wrapper label {
            text-align: left;
        }

        .shops-sorting-filtering-wrapper select,
        .shops-sorting-filtering-wrapper input {
            width: 100%;
        }

    div.radiusFilterWrapper {
        padding: 0 25px 0 15px;
        white-space: nowrap;
    }

    .radiusFilterWrapper span.units {
        margin: 0;
        text-align: right;
        vertical-align: middle;
    }

    .shops-filtering-buttons {
        text-align: center !important;
    }

    .clear-filtered-shops {
        margin: 0 0 5px;
        padding: 0 5px 0 15px;
    }

    .filter-shops-button {
        margin: 0;
    }

    .shops-list {
        font-size: 0;
    }

    .shops-item {
        display: inline-block;
        width: 45%;
        max-width: none;
        margin: 25px 2.5% 0;
        vertical-align: top;
        font-size: 14px; /*reset zeroing*/
    }

        .shops-item .picture-wrap {
        }

        .shops-item .info-wrap {
            text-align: left;
        }

        .shops-item .shop-name:after {
            margin: 10px 0 0;
        }

        .shops-item:only-child {
            display: table;
            width: 100%;
            margin: 40px 0;
        }

            .shops-item:only-child .picture-wrap {
                display: table-cell;
                width: 45%;
                vertical-align: top;
            }

            .shops-item:only-child .info-wrap {
                display: table-cell;
                width: 55%;
                padding: 30px;
                vertical-align: middle;
            }

    .shop-map-images {
        float: left;
        width: 48.5%;
        max-width: none;
        margin: 0;
    }

        .shop-map-images + .shop-info {
            float: right;
            width: 48.5%;
            text-align: left;
        }

        .shop-map-images .map-controls {
            text-align: left;
        }
}

@media all and (min-width: 1001px) {
    .shops-sorting-filtering-wrapper > div {
        width: auto !important;
        padding: 0 10px;
    }

    div.shops-filtering-buttons:last-child {
        float: right;
    }

    .shops-sorting-filtering-wrapper label {
        display: inline-block;
        margin: 0 5px 0 0;
    }

    .shops-sorting-filtering-wrapper select,
    .shops-sorting-filtering-wrapper input {
        width: 150px;
    }

    .shops-sorting-filtering-wrapper #searchRadius {
        width: 120px;
    }

    .shops-sorting-filtering-wrapper .clear-filtered-shops {
        margin: 0 10px 0 0;
        padding-bottom: 0;
    }

    .shops-sorting-filtering-wrapper .button-wrap {
        display: inline-block;
    }

    .shops-item {
        width: 30.33333%;
        margin: 20px 1.5%;
    }

    .shop-map-images {
        width: 57%;
    }

        .shop-map-images .main-picture {
            float: left;
            width: calc(100% - 112px);
        }

        .shop-map-images .all-shop-images {
            float: right;
            width: 111px;
        }

            .shop-map-images .all-shop-images li {
                width: 100%;
                margin: 1px 0 0;
            }

                .shop-map-images .all-shop-images li:first-child {
                    margin: 0;
                }

        .shop-map-images .map-wrapper {
            clear: both;
        }

        .shop-map-images + .shop-info {
            width: 40%;
        }
}

@media all and (min-width: 1281px) {
    .shops-sorting-filtering-wrapper > div {
        padding: 0 20px;
    }

    .shops-sorting-filtering-wrapper select,
    .shops-sorting-filtering-wrapper input {
        width: 220px;
    }

    .filter-shops-button {
        min-width: 140px;
    }

    .shops-item:only-child .picture-wrap {
        width: 40%;
    }

    .shops-item:only-child .info-wrap {
        width: 60%;
    }

    .shop-map-images .main-picture {
        width: calc(100% - 138px);
    }

    .shop-map-images .all-shop-images {
        width: 135px;
    }

        .shop-map-images .all-shop-images li {
            margin: 2px 0 0;
        }
}

/* Change location popup */

.changeLocation {
    position: absolute;
    left: 50% !important;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    min-width: 0 !important;
    width: 590px;
    max-width: 95%;
    padding-top: 0 !important;
    box-shadow: 0 0 20px rgba(0,0,0,.2);
    background: #fff;
    z-index: 1070;
}

.changeLocationWindow input[type=button],
.changeLocationWindow a {
    cursor: pointer;
}

.changeLocation .k-window-titlebar.k-header {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0 !important;
    background: none !important;
}

    .changeLocation .k-window-titlebar.k-header .k-window-actions {
        position: absolute;
        text-indent: 9999px;
        top: 0;
        right: 0;
        width: auto;
        height: auto;
        overflow: visible;
    }

        .changeLocation .k-window-titlebar.k-header .k-window-actions a {
            display: block;
            width: 24px;
            height: 24px;
            margin: 8px;
            overflow: hidden;
            border: none;
            background: url('images/close-button.png') no-repeat center;
            font-size: 0;
            opacity: 0.7;
        }

            .changeLocation .k-window-titlebar.k-header .k-window-actions a:hover {
                opacity: 1;
            }

.changeLocationWindow .popup-header {
    overflow: hidden;
    padding: 10px;
    font-weight: bold;
    cursor: move;
    border: 0;
}

    .changeLocationWindow .popup-header h1 {
        text-transform: uppercase;
        color: #fff;
        font-size: 14px;
    }

.changeLocation .search-bar {
    padding: 15px;
}

    .changeLocation .search-bar:after {
        content: "";
        display: block;
        clear: both;
    }

.changeLocation .nearest-shops-list {
    padding: 15px;
}

#customer-address-input {
    width: calc(100% - 100px);
    height: 50px;
    float: left;
    border: 2px solid #eee;
    border-width: 0 0 2px;
    vertical-align: middle;
    font-size: 14px;
}

#search-shops {
    float: left;
    height: 50px;
    width: 100px;
    border: 2px solid #eee;
    background-color: #f9f9f9;
    padding: 0 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.changeLocation .shop-name {
    margin-bottom: 4px;
    font-size: 15px;
}

.changeLocation .shop-item {
    position: relative;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    overflow: hidden;
}

    .changeLocation .shop-item:first-of-type {
        border-top: 0;
    }

    .changeLocation .shop-item .info-wrap {
        float: left;
        max-width: calc(100% - 150px);
        margin: 0px;
    }

    .changeLocation .shop-item button {
        float: right;
        width: 150px;
        height: 40px;
        border: none;
        padding: 0 10px;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        text-transform: uppercase;
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
    }

        .changeLocation .shop-item button:hover {
            opacity: .9;
        }

.changeLocation .current-location-label {
    position: absolute;
    top: 15px;
    right: 0;
    font-size: 13px;
    text-transform: uppercase;
}

    .changeLocation .current-location-label:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        margin-right: 7px;
        width: 15px;
        height: 15px;
        background: url('images/current_icon.svg') no-repeat center;
        background-size: contain;
    }

/* header element */

.header-nearest-store {
    position: relative;
    display: table-cell;
    padding: 0 0 0 30px;
    width: 250px;
    text-align: left;
    font-size: 13px;
}

    .header-nearest-store:before {
        content: "";
        position: absolute;
        display: inline-block;
        top: 5px;
        left: 5px;
        width: 20px;
        height: 20px;
        background: url('images/location_icon.svg') no-repeat center;
    }

    .header-nearest-store h2 {
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .header-nearest-store .address:after {
        content: "|";
        display: inline-block;
        margin: 0 4px;
    }

    .header-nearest-store a:hover,
    .footer-nearest-store a:hover {
        text-decoration: underline;
    }

    .header-nearest-store .get-directions {
        margin-left: 10px;
    }

        .header-nearest-store .get-directions:before {
            content: "";
            display: inline-block;
            margin-right: 4px;
            width: 12px;
            height: 12px;
            background: url('images/location_icon.svg') no-repeat center;
            background-size: contain;
        }

/* footer element */

.footer-nearest-store {
    float: left;
    padding: 25px 25px 0;
    width: 30%;
    background-color: #fff;
    border: 2px solid #ddd;
    text-align: left;
    overflow: hidden;
}

.footer-nearest-store-info {
    float: left;
    width: 48%;
}

.footer-nearest-store .store-hours {
    float: right;
    width: 48%;
}

.footer-nearest-store .directions {
    float: left;
    width: 100%;
    clear: both;
}

.footer-nearest-store .get-directions {
    display: block;
    margin: 25px -25px 0;
    padding: 10px;
    text-transform: uppercase;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    transition: all .1s ease;
}

    .footer-nearest-store .get-directions:hover {
        text-decoration: none;
        opacity: .9;
    }

.footer-nearest-store .title {
    margin-bottom: 4px;
    text-transform: uppercase;
    color: #444;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

.footer-nearest-store .change-location {
    display: block;
    margin-bottom: 4px;
}

.footer-nearest-store .address1,
.footer-nearest-store .address2 {
    display: block;
}

.footer-nearest-store .description > span {
    display: block;
}

.footer-nearest-store .address .view-details {
    display: block;
    margin-top: 4px;
}

.footer-nearest-store .address + .phone-number,
.footer-nearest-store .address + .fax-number {
    margin-top: 22px;
}

.footer-nearest-store .phone-number:before,
.footer-nearest-store .fax-number:before {
    content: "";
    display: inline-block;
    margin-right: 7px;
    width: 12px;
    height: 12px;
    background-size: contain;
}

.footer-nearest-store .phone-number:before {
    background: url('images/phone_icon.svg') no-repeat center;
}

.footer-nearest-store .fax-number:before {
    background: url('images/fax_icon.svg') no-repeat center;
}

/* all shops */

.shops-sorting-filtering-wrapper {
    text-align: center;
}

#shop-address-input {
    height: 50px;
}

.pac-container.pac-logo {
    z-index: 1077;
}

@media all and (max-width:1000px) {
    .header-nearest-store {
        display: block;
        width: 250px;
        margin: 0 auto;
        padding-bottom: 10px;
    }

    .footer-nearest-store {
        display: block;
        margin: 0 auto 20px;
        float: none;
        width: 100%;
        max-width: 450px;
    }
}