.b-office-dropdown__detail_address,
.b-office-dropdown__detail_address:visited {
    color: #394348;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

.b-office-dropdown__detail_address .b-office-dropdown__detail-icon {
    transition: color .2s ease, background-color .2s ease;
}

.b-office-dropdown__detail_address:hover,
.b-office-dropdown__detail_address:focus-visible {
    color: #66b913;
    text-decoration: none;
}

.b-office-dropdown__detail_address:hover .b-office-dropdown__detail-icon,
.b-office-dropdown__detail_address:focus-visible .b-office-dropdown__detail-icon {
    color: #66b913;
    background: #eef8e6;
}

.b-office-dropdown__detail_address:focus-visible {
    outline: 2px solid rgba(102, 185, 19, .35);
    outline-offset: 2px;
    border-radius: 6px;
}

html.route-map-open,
body.route-map-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.b-route-map {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 24px;
    box-sizing: border-box;
}

.b-route-map.is-open {
    display: flex;
}

.b-route-map__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 31, .68);
    backdrop-filter: blur(4px);
}

.b-route-map__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    max-width: 100%;
    height: min(760px, calc(100vh - 48px));
    height: min(760px, calc(100dvh - 48px));
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(4, 21, 29, .34);
}

.b-route-map__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 20px;
    min-width: 0;
    padding: 17px 20px 16px 22px;
    border-bottom: 1px solid #e5eaec;
    background: #fff;
}

.b-route-map__heading {
    min-width: 0;
}

.b-route-map__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #66b913;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.b-route-map__title {
    display: block;
    overflow: hidden;
    color: #1b2225;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b-route-map__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f4f5;
    color: #263238;
    font: inherit;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.b-route-map__close span {
    margin-top: -2px;
    font-size: 31px;
    line-height: 1;
    font-weight: 300;
}

.b-route-map__close:hover,
.b-route-map__close:focus-visible {
    background: #e8f5df;
    color: #5ba911;
    transform: rotate(4deg);
}

.b-route-map__close:focus-visible,
.b-route-map__retry:focus-visible {
    outline: 3px solid rgba(102, 185, 19, .32);
    outline-offset: 2px;
}

.b-route-map__body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #eef2f3;
}

.b-route-map__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    background: #eef2f3;
}

.b-route-map__state {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 28px;
    box-sizing: border-box;
    background: #f7f9fa;
    color: #4b575d;
    text-align: center;
}

.b-route-map__state[hidden],
.b-route-map__frame[hidden] {
    display: none;
}

.b-route-map__state strong {
    color: #1b2225;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.b-route-map__state > span:not(.b-route-map__loader) {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.55;
}

.b-route-map__loader {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border: 4px solid rgba(102, 185, 19, .18);
    border-top-color: #66b913;
    border-radius: 50%;
    animation: route-map-spin .8s linear infinite;
}

.b-route-map__state_error {
    background: #fff;
}

.b-route-map__retry {
    min-width: 150px;
    height: 44px;
    margin-top: 8px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #66b913;
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.b-route-map__retry:hover {
    background: #5aa911;
    transform: translateY(-1px);
}

@keyframes route-map-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .b-route-map {
        align-items: stretch;
        padding: 0;
    }

    .b-route-map__dialog {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    .b-route-map__header {
        gap: 12px;
        padding: calc(11px + env(safe-area-inset-top)) 12px 11px 16px;
    }

    .b-route-map__eyebrow {
        font-size: 10px;
    }

    .b-route-map__title {
        font-size: 16px;
    }

    .b-route-map__close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .b-route-map__state {
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    }

    .b-route-map__state strong {
        font-size: 17px;
    }

    .b-route-map__state > span:not(.b-route-map__loader) {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .b-route-map__loader {
        animation-duration: 1.6s;
    }

    .b-route-map__close,
    .b-route-map__retry {
        transition: none;
    }
}
