/* Shared Elementor addresses template: native embeds and Yandex Constructor output. */
.elementor[data-elementor-type="container"]:has(.elementor-menu-anchor#addresses) {
    --branch-map-visible: 545px;
    --branch-map-radius: 32px;
}

@media (max-width: 767px) {
    .elementor[data-elementor-type="container"]:has(.elementor-menu-anchor#addresses) {
        --branch-map-visible: clamp(300px, 60svh, 545px);
        --branch-map-radius: 24px;
    }
}

.elementor[data-elementor-type="container"]:has(.elementor-menu-anchor#addresses) .elementor-widget-html .elementor-widget-container:has(iframe[src^="https://yandex.ru/map-widget/"]) {
    height: var(--branch-map-visible);
    overflow: hidden;
    border-radius: var(--branch-map-radius);
}

.elementor[data-elementor-type="container"]:has(.elementor-menu-anchor#addresses) .elementor-widget-html iframe[src^="https://yandex.ru/map-widget/"] {
    display: block;
    width: 100%;
    height: calc(var(--branch-map-visible) + 145px);
}
