.mazda-popup {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 999990;
}

.popup-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-color: #000;
    z-index: 999991;
}

.popup-content {
    position: absolute;
    z-index: 999992;
    top: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 40vw;
}

.popup-media {
    text-align: center;
    background-color: #fff;
    max-height: calc(100vh - 100px);
}

    .popup-media .p__inner-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 50px;
        color: #ffffff;
    }

        .popup-media .p__inner-wrapper .p__pre-title {
            font-size: 0.9rem;
            line-height: 1.54;
            letter-spacing: 0.2em;
            font-weight: 300;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .popup-media .p__inner-wrapper .p__title {
            font-size: 1.5rem;
            line-height: 1.18;
            font-weight: 500;
            letter-spacing: 0.2em;
            text-transform: uppercase;
        }

    .popup-media img {
        width: 100%;
        /*        max-height: calc(100vh - 150px);*/
    }

.popup-form {
    overflow-y: scroll;
    max-width: 600px;
    margin: auto;
    text-align: center;
    background-color: #fff;
    max-height: calc(100vh - 100px);
    min-height: 300px;
    padding: 20px 50px;
}

.popup-form {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.popup-thankyou-message {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-close-popup {
    position: absolute;
    top: -25px;
    color: white;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.p-f .btn-close-popup {
    right: 100px;
}

.p-m .btn-close-popup {
    right: 0px;
}

.btn-close-popup::before {
    line-height: 20px;
    font-size: 40px;
    color: white;
    content: "\00d7";
}

.popup-form .p-forms__header {
}

    .popup-form .p-forms__header .p-forms__title {
        font-size: 1.25rem;
        line-height: 1.75;
        letter-spacing: 0.2em;
        font-weight: 300;
        text-transform: uppercase;
        margin-bottom: 10px;
        text-align: center;
    }

    .popup-form .p-forms__header .p-forms__sub-title {
        font-size: 0.8125rem;
        line-height: 1.5;
        letter-spacing: 0.2em;
        font-weight: 500;
        text-transform: uppercase;
        margin-bottom: 10px;
        text-align: center;
    }

.popup-form::-webkit-scrollbar {
    display: none;
}

.p-field-group {
}

    .p-field-group .p-label-title {
        font-size: 0.8rem;
        font-weight: bold;
        display: block;
        text-align: left;
        text-transform: uppercase;
        margin: 8px 0;
    }

    .p-field-group label.error {
        font-size: 0.8rem;
        color: #910a2D;
        font-weight: bold;
        display: block;
        text-align: left;
        margin-top: 8px;
    }

.p-field-input {
    background: #ffffff;
    height: 40px;
    line-height: 1em;
    border-radius: 3px;
    padding: 0 10px;
    border: 1px solid #d5d5d5;
    color: #999999;
    font-size: 100%;
    font-size: 1rem;
    width: 100%;
}

textarea.p-field-input {
    background: #ffffff;
    height: 70px;
    line-height: 1em;
    border-radius: 3px;
    padding: 10px;
    border: 1px solid #d5d5d5;
    color: #999999;
    font-size: 1rem;
    width: 100%;
}

.p-field-group .select2-container .select2-selection--single {
    height: 40px;
}

.p-field-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.p-field-group .p-field-select.error ~ .select2-container--default .select2-selection--single {
    border: 2px solid #910a2D;
}

.p-field-input.error {
    border: 2px solid #910a2D;
    /*border: 1px solid #d5d5d5;
    box-shadow: 0 0 0 2px #910a2D;*/
}

    .p-field-input.error:focus {
        border: 2px solid #910a2D;
        /*border: 1px solid #d5d5d5;
        box-shadow: 0 0 0 2px #910a2D;*/
    }

.p-field-input:focus {
    border: 2px solid #101010;
    /*border: 1px solid #7f7f7f;
    box-shadow: 0 0 0 2px #101010;*/
    color: #101010;
    outline: none;
}

.btn-custom-popup {
    margin-top: 20px;
    padding: 10px !important;
}

.btn-progress {
    cursor: progress !important;
    opacity: 0.5;
}

.thankyou-message {
    font-size: 1.3rem;
    font-weight: bold;
    display: block;
    text-align: center;
    text-transform: uppercase;
    margin: 20px 0;
}

.thankyou-description {
    font-size: 1rem;
    display: block;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 769px) {
    .popup-content {
        max-width: 85vw;
        top: 100px;
    }
}

@media (max-width: 767px) {
    .popup-form {
        width: 95%;
        margin: auto;
        padding: 20px;
    }

    .popup-media {
        width: 95%;
        margin: auto;
    }

        .popup-media .p__inner-wrapper {
            width: 90%;
            margin: auto;
        }

    .btn-close-popup {
        right: 2.5% !important;
    }

    .popup-form .primary-dark {
        width: 100%;
        min-width: 100px;
    }

    .popup-media .p__inner-wrapper {
        top: 10px !important;
    }

        .popup-media .p__inner-wrapper .p__pre-title {
            font-size: 0.8rem;
            line-height: 1.54;
            letter-spacing: 0.2em;
        }

        .popup-media .p__inner-wrapper .p__title {
            font-size: 1.2rem;
            line-height: 1.18;
            letter-spacing: 0.2em;
        }
}

 .wrapper_store_byJames{
        display: flex;
        flex-wrap: wrap;
        padding: 3rem 0;
        margin: 0 -.75rem;
        position: relative;
    }
    .loading_byJames {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: hsl(0deg 0% 100% / 95%);
        z-index: 999;
        display: none;
    }
    .loading_byJames .loading_map_container {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .loading_byJames .loading_map_container img {
            max-width: 300px;
    }
    .wrapper_store_byJames .filter__left_byJames{
        flex: 0 0 auto;
        width: 40%;
        padding: 0 .75rem;
    }
    .wrapper_store_byJames .filter__input {
        flex: 0 0 auto;
        width: 80%;
    }
    .wrapper_store_byJames .filter__type ul {
        display: inline-block;
        width: 100%;
        border-bottom: 1px solid;
    }
    .wrapper_store_byJames .filter__type ul li.active, .wrapper_store_byJames .filter__type ul li:hover {
        background: #2b2b2b; 
        transition: 100ms linear all;
    }
    .wrapper_store_byJames .filter__type ul li.active a , .wrapper_store_byJames .filter__type ul li:hover a{
        color: #fff;
        transition: 100ms linear all;
    }
    .wrapper_store_byJames .filter__type ul li {
          display: inline-block; 
          width: 125px ; 
          height: 35px ; 
          line-height: 35px; 
          border-top-left-radius: 5px ; 
          border-top-right-radius: 5px ; 
          margin: 0px;
          transition: 100ms linear all;
    }
    .wrapper_store_byJames .filter__type ul li a {
         color: #2b2b2b; font-size: 25px; font-weight: bold; text-decoration: none; display: block; text-align: center;transition: 100ms linear all;
    }
    .wrapper_store_byJames .filter__input input{
        width: 100%;
        border-radius: 5px;
        width: 100%;
        padding: .75rem 1rem;
        margin-bottom: 1rem;
        border: 1px solid #2B2B2B;
    }
    .wrapper_store_byJames .list__store_byJames{
        flex: 0 0 auto;
        width: 40%;
        padding: 0 .75rem;
        max-height: 800px;
        overflow-y: auto;
    }
    /* width */
    .wrapper_store_byJames .list__store_byJames::-webkit-scrollbar {
         width: 5px;
     }

    /* Track */
    .wrapper_store_byJames .list__store_byJames::-webkit-scrollbar-track {
         background: #D6D6D6;
     }

    /* Handle */
    .wrapper_store_byJames .list__store_byJames::-webkit-scrollbar-thumb {
         background: #2b2b2b;
     }

    /* Handle on hover */
    .wrapper_store_byJames .list__store_byJames::-webkit-scrollbar-thumb:hover {
         background: #2b2b2b;
     }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames{
        padding: 1rem;
        border-bottom: 2px solid #2b2b2b;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames h3{
        text-transform: uppercase;
        font-weight: bold;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames .store__contact_byJames{
        font-size: 13px;
        padding-left: 0rem;
        margin-bottom: 1rem;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames .action__store_byJames{
        display: flex;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames .action__store_byJames > *{
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames .action__store_byJames a{
        text-decoration: none;
        color: #fff;
        background: #2b2b2b;
        width: 125px;
        height: 35px;
        display: block;
        line-height: 35px;
        text-align: center;
        border-radius: 5px;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames:hover{
        background: #0000001f;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames:hover h3{
        color: #2b2b2b;
    }
    .wrapper_store_byJames .list__store_byJames .store__item_byJames:hover .store__contact_byJames{
        color: #2b2b2b;
    }
    /*.wrapper_store_byJames .list__store_byJames .store__item_byJames:hover .action__store_byJames a{
        color: #2b2b2b;
    }*/
    .wrapper_store_byJames .map___ajax_byJames{
        flex: 0 0 auto;
        width: 60%;
        padding: 0 .75rem;
    }
    .wrapper_store_byJames .filter__right_byJames{
        flex: 0 0 auto;
        width: 60%;
        padding: 0 .75rem;
    }
    .wrapper_store_byJames .filter__right_byJames select{
        width: 100%;
        /*border-radius: 20px;*/
        padding: .75rem 1rem;
        margin-bottom: 1rem;
        border: 1px solid #2B2B2B;
    }
    .wrapper_store_byJames .filter__right_byJames input[type="submit"]{
        font-size: 82%;
        font-size: 0.8125rem;
        border-radius: 3px;
        width: 100%;
        padding: 12px 23px;
        letter-spacing: 0.2em;
        white-space: nowrap;
        background-color: #101010;
        color: #ffffff;
        display: inline-block;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 700;
        text-align: center;
        border: 2px
        solid #101010;
        transition: background 300ms;
    }
    .wrapper_store_byJames .map___ajax_byJames #map__ajax{
        position: relative;
        height: 800px;
    }
    .wrapper_store_byJames .map___ajax_byJames #map__ajax iframe{
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .form__group_byJames{
        display: flex;
        flex-wrap: wrap;
        margin: 0 -.75rem;
    }
    .form__group_byJames .city__filter_byJames{
        flex: 0 0 auto;
        width: 30%;
        padding: 0 .75rem;
    }
    .form__group_byJames .brands__filter_byJames{
        flex: 0 0 auto;
        width: 50%;
        padding: 0 .75rem;
    }
    .form__group_byJames .btn__search_byJames{
        flex: 0 0 auto;
        width: 20%;
        padding: 0 .75rem;
    }
    @media(min-width: 768px){
        .wrapper_store_byJames .filter__left_byJames{
            order: 1;
        }
        .wrapper_store_byJames .filter__right_byJames{
            order: 2;
        }
        .wrapper_store_byJames .list__store_byJames{
            order: 3;
        }
        .wrapper_store_byJames .map___ajax_byJames{
            order: 4
        }
    }
    @media (max-width: 767px) {
        .wrapper_store_byJames{
            padding: 3rem 20px;
        }
        .wrapper_store_byJames .filter__left_byJames,
        .wrapper_store_byJames .filter__right_byJames,
        .wrapper_store_byJames .list__store_byJames,
        .wrapper_store_byJames .map___ajax_byJames{
            flex-shrink: 0;
            width: 100%;
            max-width: 100%;
        }
        .form__group_byJames,
        .wrapper_store_byJames .list__store_byJames{
            margin-bottom: 1rem;
        }
        .form__group_byJames .city__filter_byJames,
        .form__group_byJames .brands__filter_byJames,
        .form__group_byJames .btn__search_byJames{
            flex-shrink: 0;
            width: 100%;
            max-width: 100%;
        }
    }
    .mapboxgl-popup{
        width: 350px;
        max-width: 350px !important;
    }
    .mapboxgl-popup-content {
        padding: 0px;
    }
    .wrapper_store_byJames strong {
        font-weight: bolder;
    }
    .wrapper_store_byJames .store__item_bypopup {
        padding: 15px;
    }
    .mapboxgl-popup-close-button {
        top: -3px;
        right: -3px;
        font-size: 25px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        color: #fff;
        background: #2b2b2b;
    }
    .mapboxgl-marker {
        background-image: url('../../www.toponseek.com/blogs/wp-content/uploads/2021/11/logo_mazda.html');
        background-size: cover;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
    }
    #marker_people {
        background-image: url('../../www.toponseek.com/blogs/wp-content/uploads/2021/11/people.html');
    }
    .mapboxgl-marker svg {
        display: none;
    }
    .wrapper_store_byJames .store__item_bypopup h3 {
        text-transform: uppercase;
        font-weight: bold;
    }
    .wrapper_store_byJames .store__item_bypopup ul {
        
    }
    .wrapper_store_byJames .store__item_bypopup li {
        
    }
