a.brand:has(img[src$="/BDMX.png"]) {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    gap: 0 !important;
    text-align: center;
}

a.brand:has(img[src$="/BDMX.png"]) img {
    display: block;
    width: 104px !important;
    height: auto !important;
    flex: none;
}

a.brand:has(img[src$="/BDMX.png"]) > .logo {
    width: 104px;
    height: auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

a.brand:has(img[src$="/BDMX.png"]) .brand-name,
a.brand:has(img[src$="/BDMX.png"]) .name {
    display: none !important;
}

a.brand:has(img[src$="/BDMX.png"]) .brand-division,
a.brand:has(img[src$="/BDMX.png"]) .subtitle {
    margin-top: 0 !important;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}
