/* vim: set ts=4 sw=4 sts=4 et: */

/**
 * Store Locator Module
 *
 * @category  X-Cart_5_Module
 * @package   StoreLocator
 * @author    CFL Systems, Inc. <support@cflsystems.com>
 * @copyright 2022 CFL Systems, Inc. All rights reserved.
 * @license   License Agreement - https://www.cflsystems.com/software-license-agreement.html
 * @link      https://www.cflsystems.com/store-locator-for-x-cart-5.html
 */

.vue-map-container {
    width: 100%;
    height: 300px;
}
.gm-style .gm-style-iw-c {
    max-width: 250px !important;
}
.gm-style .gm-style-iw-c button {
    top: 0 !important;
    right: 0 !important;
}
#locator {
    display: flex;
    flex-direction: column;
}
#locator .locations {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    width: 100%;
    overflow: hidden;
}
#locator .location {
    min-width: 250px;
}
#locator .locations .location:not(.last) {
    border-bottom: 1px solid #e2e2e2;
    margin-bottom: 10px;
    padding-bottom: 10px;
}
#locator .location h3 {
    font-size: 18px;
    line-height: 25px;
    margin: 0 0 10px 0;
}
#locator .location p {
    padding: 1px 0;
    line-height: 16px;
}
#locator .location .icon-tabler {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    vertical-align: text-bottom;
}
#locator .location .address {
    display: flex;
}
#locator .location .address > div {
    margin-left: 4px;
}
/*
#locator .location .address:before,
#locator .location .phone:before,
#locator .location .website:before {
    font-family: 'xcartskin';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 2px 5px 0 0;
}
#locator .location .address:before {
    content: "\e919";
}
#locator .location .phone:before {
    content: "\e918";
}
#locator .location .website:before {
    font-family: FontAwesome;
    content: "\f0ac";
}
*/
#locator .location .connect {
    margin-top: 5px;
}
#locator .location .description {
    background: #f9f9f9;
    margin-top: 10px;
    border-radius: 5px;
    padding: 5px 10px;
}
#locator .clear {
    clear: both;
}
#locator .map-results {
    display: flex;
    flex-direction: column-reverse;
}
#locator .map {
    flex: 1;
    margin-bottom: 20px;
}
#locator .map .options {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}
#locator .map .options .search-on-map-move {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
#locator .map .options .search-on-map-move .table-label {
    margin-left: 10px;
}
#locator .map .refresh-map {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#locator .map .clear-directions {
    margin: 15px;
    font-weight: 600;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#locator .find-locations {
    margin-bottom: 20px;
    min-height: 80px;
}
#locator .find-locations .find-locations-form form {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
#locator .find-locations .find-locations-form div.input:not(.input-label):not(.checkbox-label) {
    position: relative;
}
#locator .find-locations .find-locations-form div.input-text {
    display: block;
    width: auto;
}
#locator .find-locations .find-locations-form .first {
    flex: 1;
}
#locator .find-locations .find-locations-form .last {
    margin: 10px 0;
    width: 100%;
}
#locator .find-locations .find-locations-form button {
    width: 100%;
    height: 59px;
}
#locator .find-locations .find-locations-form form:not(.not-floating) div.table-label,
#locator .find-locations .find-locations-form form:not(.not-floating) div label:not(.checkbox-label) {
    z-index: 2;
    opacity: 1;
    pointer-events: none;
    position: absolute !important;
    transform: translate3d(0,8px,0) scale(1);
    transform-origin: left top;
    transition: .24s;
    left: 7px;
    padding-top: 0;
    margin-top: 2px;
    white-space: nowrap;
    line-height: 20px;
}
#locator .find-locations .find-locations-form form:not(.not-floating) div.focused .table-label,
#locator .find-locations .find-locations-form form:not(.not-floating) div.focused label:not(.checkbox-label) {
    opacity: 1;
    transform: scale(.9);
    color: #9b9b9b;
    margin-top: 5px;
}
#locator .find-locations .find-locations-form input {
    vertical-align: middle;
    width: 100%;
}
#locator .find-locations .find-locations-form input.pac-target-input {
    height: auto;
    padding: 15px 10px;
}
#locator .find-locations .find-locations-form input:not(.pac-target-input)::placeholder {
    color: transparent;
}
#locator .find-locations .find-locations-form input::placeholder,
#locator .find-locations .find-locations-form input:focus::placeholder {
    color: #999;
}
#locator .find-locations .find-locations-form form:not(.not-floating) .form-control,
#locator .find-locations .find-locations-form form:not(.not-floating) .form-control-label {
    height: 60px;
    min-height: 60px;
    padding-top: 28px;
    padding-bottom: 8px;
    transition: all .24s;
}
#locator .find-locations .find-locations-form .table-value,
#locator .find-locations .find-locations-form .input-field-wrapper {
    width: 100%;
}

@media (max-width: 424px) {
    #locator .map .options {
        flex-direction: column;
    }
    #locator .map .refresh-map {
        margin-top: 10px;
    }
}

@media (min-width: 768px) {
    .vue-map-container {
        height: 500px;
    }
    .gm-style .gm-style-iw-c {
        max-width: initial !important;
    }
    #locator .locations {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #locator .find-locations .find-locations-form form {
        flex-direction: row;
    }
    #locator .find-locations .find-locations-form .last {
        margin: 0 20px;
        width: 200px;
    }
    #locator .find-locations .find-locations-form button {
        width: 150px;
    }
}

@media (min-width: 1024px) {
    #locator .map-results {
        flex-direction: row;
    }
    #locator .locations {
        flex-direction: column;
        justify-content: unset;
        flex-wrap: unset;
        width: 300px;
    }
}
