ul.bmc-brand-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 8px 15px;
    background-color: #fff;
}

.bmc-brand-strip__link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 54px;
    margin: 0 4px;
    padding: 6px 10px !important;
}

.bmc-brand-strip__link img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 36px;
    object-fit: contain;
}

.bmc-brand-strip__link::after,
.bmc-brand-drawer > li > a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background-color: #8b8e93;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .bmc-brand-strip__link:hover {
        transform: scale(1.05);
        z-index: 1;
    }

    .bmc-brand-strip__link:hover::after {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .bmc-brand-strip__link {
        transition: transform 120ms ease-out;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmc-brand-strip__link:hover {
        transform: none;
    }
}

ul.bmc-brand-drawer > li {
    flex: 0 0 50%;
    min-width: 0;
    margin: 0;
    outline: none;
}

ul.bmc-brand-drawer > li > a {
    position: relative;
    padding: 0 18px !important;
}

ul.bmc-brand-drawer > li > a img {
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
}

ul.bmc-brand-drawer > li > a i.fa-angle-right {
    position: absolute;
    right: 6px;
    margin: 0;
    padding: 0;
    color: #707278;
}

.bmc-brand-drawer > li > a:active::after {
    inset-inline: 8px;
    opacity: 1;
}

.bmc-brand-strip__link:focus-visible,
.bmc-brand-drawer > li > a:focus-visible,
.bmc-brand-shops summary:focus-visible,
.bmc-brand-shops a:focus-visible {
    outline: 2px solid #565960;
    outline-offset: -3px;
}

.bmc-parts-menu:focus-within > .dropdown-menu {
    display: block;
}

.bmc-brand-shops {
    border-top: 1px solid #ddd;
}

.bmc-brand-shops summary {
    display: list-item;
    cursor: pointer;
}

.bmc-brand-shops__list {
    list-style: none;
    padding-left: 12px;
}

.bmc-brand-shops > details > .bmc-brand-shops__list {
    max-height: min(50vh, 24rem);
    overflow: auto;
}

.bmc-brand-shops .dropdown-item {
    white-space: normal;
}
