.brand-picker {
    margin-bottom: 20px;
}

.brand-picker__heading {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 24px;
    padding-right: 100px;
    margin-bottom: 8px;
}

.brand-picker__heading .subtitle {
    margin-bottom: 0;
    color: #474747;
}

.brand-picker__reset {
    position: absolute;
    top: 0;
    right: 0;
    height: 24px;
    margin: 0;
    padding: 0 0 0 6px;
    border: 0;
    background: none;
    color: var(--blue-light, #2675c1);
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
}

.brand-picker__popular-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    margin-top: 8px;
    padding: 2px 6px 2px 0;
}

.brand-picker__row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.brand-picker__row:hover {
    background: #f7f7f7;
}

.brand-picker__row.is-selected {
    background: #fff;
}

.brand-picker__row {
    position: relative;
    flex-shrink: 0;
    min-height: 47px;
    padding: 1px 4px;
}

.brand-picker__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.brand-picker__row .form-check-label {
    margin-left: 24px;
    color: #474747;
    font-size: 14px;
    cursor: pointer;
}

.brand-picker .brand-picker__row > .form-check-input + .form-check-label::before {
    top: calc(50% - 7.5px);
}

.brand-picker__row .brand-picker__choice {
    margin-left: 0;
    padding-right: 26px;
}

.brand-picker .brand-picker__row > .form-check-input + .form-check-label::before {
    left: auto;
    right: 4px;
}

.brand-picker__row:has(input:focus-visible) {
    outline: 2px solid var(--blue, #164c80);
    outline-offset: -2px;
}

.brand-picker__name {
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.brand-picker__logo {
    display: flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 5px;
    border: 1px solid #e2e4e7;
    border-radius: 11px;
    background: #fff;
}

.brand-picker__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 33px;
    max-height: 29px;
    object-fit: contain;
}

.brand-picker__row.is-selected .brand-picker__logo {
    border-color: var(--blue-light, #2675c1);
}

.brand-picker__fallback {
    overflow: hidden;
    max-height: 22px;
    color: #78818a;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    line-height: 1.1;
}

.brand-picker__selected {
    margin-top: 5px;
}

.brand-picker__expand {
    margin-top: 10px;
}

.brand-picker__list {
    max-height: 150px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.brand-picker__popular-list,
.brand-picker__list {
    scrollbar-width: thin;
    scrollbar-color: #c5c9ce #f5f5f5;
}

.brand-picker__popular-list::-webkit-scrollbar,
.brand-picker__list::-webkit-scrollbar {
    width: 5px;
}

.brand-picker__popular-list::-webkit-scrollbar-track,
.brand-picker__list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.brand-picker__popular-list::-webkit-scrollbar-thumb,
.brand-picker__list::-webkit-scrollbar-thumb {
    background: #c5c9ce;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .brand-picker__popular-list {
        max-height: min(280px, 40vh);
    }
}

.brand-picker button:focus-visible,
.brand-picker__list:focus-visible {
    outline: 2px solid var(--blue, #164c80);
    outline-offset: 2px;
}
