.bravo-contact-dock {
    --bravo-rail-blue: #004ea1;
    --bravo-rail-width: 58px;
    --bravo-rail-row: 70px;
    position: fixed;
    top: 40%;
    right: 0;
    z-index: 95;
    display: grid;
    width: var(--bravo-rail-width);
    background: var(--bravo-rail-blue);
    color: white;
}
.bravo-contact-dock > * + * {
    position: relative;
}
.bravo-contact-dock > * + *::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    width: 20px;
    height: 1px;
    transform: translateX(-50%);
    background: rgb(255 255 255 / 50%);
    pointer-events: none;
}
.bravo-contact-dock .bravo-contact-icon {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--bravo-rail-row);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    list-style: none;
    color: white;
    cursor: pointer;
    touch-action: manipulation;
}
.bravo-contact-icon::-webkit-details-marker { display: none; }
.bravo-contact-icon svg { display: block; width: 30px; height: 30px; }
.bravo-contact-icon:hover, .bravo-wechat[open] summary { background: #00438c; }
.bravo-contact-icon:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.bravo-wechat { position: relative; }
.bravo-wechat-card {
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    width: min(208px, calc(100vw - var(--bravo-rail-width) - 24px), 65dvh);
    box-sizing: border-box;
    padding: 8px;
    background: var(--bravo-rail-blue);
    color: white;
    text-align: center;
    font: 500 14px/1.4 system-ui, sans-serif;
    box-shadow: 0 4px 16px #001b3929;
}
.bravo-wechat:not([open]) .bravo-wechat-card { display: none; }
.bravo-wechat-card img { display: block; width: 100%; height: auto; }
.bravo-wechat-card span { display: block; padding-top: 6px; }
.modal-open .bravo-contact-dock, body:has(#app header.menu-open) .bravo-contact-dock { visibility: hidden; }

footer .bravo-footer-contacts > a.bravo-footer-youtube:any-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
}
.bravo-youtube-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 17px;
    flex: 0 0 24px;
    border-radius: 4px;
    background: #ff0033;
}
.bravo-youtube-icon::before {
    content: "";
    margin-left: 1px;
    border-block: 4px solid transparent;
    border-left: 7px solid #fff;
}

@media (max-width: 600px), (max-height: 540px) {
    .bravo-contact-dock {
        --bravo-rail-width: 44px;
        --bravo-rail-row: 48px;
        right: env(safe-area-inset-right, 0px);
    }
    .bravo-contact-icon svg { width: 25px; height: 25px; }
    .bravo-contact-dock > * + *::before { width: 16px; }
}

@media (max-width: 600px) {
    .bravo-contact-dock {
        --bravo-rail-width: 36px;
        --bravo-rail-row: 40px;
        top: auto;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    body:has(.engine-mobile-bar) .bravo-contact-dock {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .bravo-contact-icon svg { width: 20px; height: 20px; }
    .bravo-contact-dock > * + *::before { width: 13px; }
    .bravo-wechat-card { top: auto; bottom: calc(-1 * var(--bravo-rail-row)); transform: none; }
    body:has(.bravo-contact-dock) > .brg-analytics-consent {
        right: calc(44px + env(safe-area-inset-right, 0px)) !important;
    }
    #app .core-range-heading { padding-right: 16px; }
}
@media (max-width: 600px) and (max-height: 620px) {
    #app .core-hero-grid { padding-right: max(44px, var(--engine-phone-gutter, 18px)); }
}
