.aaac-open-map {
    box-sizing: border-box;
    min-height: 260px;
    width: 100%;
}

.aaac-open-map.map-unavailable::after {
    align-items: center;
    background: #f3f8f8;
    color: #184f78;
    content: "The map is temporarily unavailable. Location details are still listed on this page.";
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.aaac-store-locator {
    box-sizing: border-box;
    container-type: inline-size;
    font-family: inherit;
    margin: 0 auto;
    max-width: 1210px;
    min-width: 0;
}

.aaac-map-search {
    align-items: end;
    background: #f3f8f8;
    border-top: 4px solid #69bbb5;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
    padding: 16px;
}

.aaac-map-search label {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.aaac-map-search label span {
    color: #184f78;
    display: block;
    margin: 0 0 8px;
}

.aaac-map-search .aaac-map-location-field {
    flex: 1 1 290px;
    min-width: 0;
}

.aaac-map-search input,
.aaac-map-search select {
    background: #fff;
    border: 1px solid #a9b8c3;
    border-radius: 2px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    min-height: 40px;
    padding: 7px 10px;
    width: 100%;
}

#top .aaac-map-search input[type="search"],
#top .aaac-map-search select {
    font: inherit;
    margin: 0;
}

.aaac-map-search button,
.aaac-location-results button,
.aaac-location-results a {
    cursor: pointer;
}

.aaac-map-search button {
    background: #184f78;
    border: 1px solid #184f78;
    border-radius: 2px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    min-height: 40px;
    padding: 0 16px;
}

.aaac-map-search button:hover,
.aaac-map-search button:focus {
    background: #123d64;
}

.aaac-map-search .aaac-map-near-me {
    background: transparent;
    border-color: transparent;
    color: #184f78;
    text-decoration: underline;
}

.aaac-map-search .aaac-map-near-me:hover,
.aaac-map-search .aaac-map-near-me:focus {
    background: transparent;
    color: #f15a22;
}

.aaac-map-status:empty {
    display: none;
}

.aaac-locator-content {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    min-height: 600px;
}

.aaac-locator-results-panel {
    border: 0;
    max-height: 600px;
    min-width: 0;
    overflow-y: auto;
}

.aaac-locator-content .aaac-store-locator-map {
    border: 0 !important;
    box-shadow: none !important;
    height: 600px !important;
    min-height: 600px;
    outline: 0;
}

.aaac-map-origin-marker {
    background: #fff;
    border: 3px solid #168a8d;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 35%);
    box-sizing: border-box;
    display: block;
    height: 18px;
    width: 18px;
}

.aaac-locator-results-panel .aaac-map-status {
    color: #44515a;
    font-size: 13px;
    margin: 0;
    padding: 12px 10px 6px;
}

.aaac-location-results,
.aaac-store-locator .aaac-location-results,
.aaac-store-locator .aaac-location-results li {
    list-style: none !important;
    margin: 0;
    padding-left: 0;
}

.aaac-store-locator .aaac-location-results li::marker {
    content: "";
}

.aaac-location-result {
    border-bottom: 1px solid #d7e0e5;
    padding: 14px 10px;
}

.aaac-store-locator .aaac-location-results > .aaac-location-result {
    padding-left: 10px;
    padding-right: 10px;
}

.aaac-location-result:last-child {
    border-bottom: 0;
}

.aaac-location-title,
.aaac-location-directions,
.aaac-location-phone {
    color: #184f78;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.aaac-location-title:hover,
.aaac-location-title:focus,
.aaac-location-directions:hover,
.aaac-location-directions:focus,
.aaac-location-phone:hover,
.aaac-location-phone:focus {
    color: #f15a22;
    text-decoration: underline;
}

.aaac-location-focus {
    background: transparent;
    border: 0;
    color: #222;
    display: block;
    font: inherit;
    line-height: 1.45;
    overflow-wrap: anywhere;
    padding: 4px 0 0;
    text-align: left;
    width: 100%;
}

.aaac-location-distance,
.aaac-location-phone,
.aaac-location-directions {
    display: block;
    font-size: 14px;
    margin-top: 8px;
}

.aaac-location-directions {
    font-weight: 400;
}

.maplibregl-ctrl-attrib,
.leaflet-control-attribution {
    font-size: 11px;
}

@media (max-width: 960px) {
    .aaac-locator-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .aaac-locator-content .aaac-store-locator-map {
        order: -1;
    }

    .aaac-locator-results-panel {
        border: 0;
        max-height: none;
    }
}

@container (max-width: 760px) {
    .aaac-locator-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .aaac-locator-content .aaac-store-locator-map {
        order: -1;
    }

    .aaac-locator-results-panel {
        border: 0;
        max-height: none;
    }
}

@media (min-width: 443px) and (max-width: 767px) {
    .aaac-map-search {
        align-items: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aaac-map-search .aaac-map-location-field {
        grid-column: 1 / -1;
    }

    .aaac-map-search label,
    .aaac-map-search > button {
        margin: 0;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    #top .aaac-map-search input[type="search"],
    #top .aaac-map-search select,
    .aaac-map-search > button {
        min-height: 44px;
    }

    .aaac-locator-content .aaac-store-locator-map {
        height: 380px !important;
        min-height: 380px;
    }
}

@media (max-width: 442px) {
    .aaac-map-search {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .aaac-map-search label,
    .aaac-map-search > button {
        margin: 0;
        width: 100%;
    }

    .aaac-locator-content .aaac-store-locator-map {
        height: 320px !important;
        min-height: 320px;
    }
}
