.buyer-platform .buyer-select {
    position: relative;
    inline-size: 100%;
    min-inline-size: 0;
}

.buyer-platform .buyer-select__native {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.buyer-platform .buyer-select__trigger {
    position: relative;
    inline-size: 100%;
    block-size: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 38px 0 12px;
    overflow: hidden;
    color: var(--gmx-ink, #1d2530);
    background: #fff;
    border: 1px solid var(--gmx-line, #e8ecf0);
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.buyer-platform .buyer-select__trigger::after {
    content: '';
    position: absolute;
    inset-inline-end: 14px;
    inset-block-start: 50%;
    inline-size: 7px;
    block-size: 7px;
    border-inline-end: 1.5px solid #667085;
    border-block-end: 1.5px solid #667085;
    rotate: 45deg;
    translate: 0 -70%;
    transition: rotate .18s ease, translate .18s ease;
}

.buyer-platform .buyer-select__trigger:hover {
    border-color: #c6ced8;
    background: #fcfdff;
}

.buyer-platform .buyer-select__trigger:focus-visible,
.buyer-platform .buyer-select.is-open .buyer-select__trigger {
    border-color: var(--gmx-navy-2, #132943);
    box-shadow: 0 0 0 3px rgba(19, 41, 67, .1);
    outline: 0;
}

.buyer-platform .buyer-select.is-open .buyer-select__trigger::after {
    rotate: 225deg;
    translate: 0 -25%;
}

.buyer-platform .buyer-select__value {
    min-inline-size: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.buyer-platform .buyer-select.is-placeholder .buyer-select__value {
    color: var(--gmx-muted, #7a869a);
    font-weight: 400;
}

.buyer-platform .buyer-select__menu {
    position: absolute;
    z-index: 1305;
    inset-block-start: calc(100% + 7px);
    inset-inline: 0;
    max-block-size: 224px;
    padding: 6px;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(11, 26, 48, .16), 0 2px 8px rgba(11, 26, 48, .08);
    list-style: none;
    scrollbar-color: #c7ced8 transparent;
    scrollbar-width: thin;
}

.buyer-platform .buyer-select.is-up .buyer-select__menu {
    inset-block-start: auto;
    inset-block-end: calc(100% + 7px);
}

.buyer-platform .buyer-select__option {
    inline-size: 100%;
    min-block-size: 36px;
    display: flex;
    align-items: center;
    padding: 8px 32px 8px 10px;
    color: var(--gmx-ink, #1d2530);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: start;
}

.buyer-platform .buyer-select__option:hover,
.buyer-platform .buyer-select__option:focus-visible {
    color: var(--gmx-navy, #0b1a30);
    background: #fff7e8;
    outline: 0;
}

.buyer-platform .buyer-select__option[aria-selected="true"] {
    position: relative;
    color: var(--gmx-navy, #0b1a30);
    background: #fff4df;
    font-weight: 700;
}

.buyer-platform .buyer-select__option[aria-selected="true"]:not(.is-placeholder-option)::after {
    content: '\\2713';
    position: absolute;
    inset-inline-end: 11px;
    color: var(--gmx-orange, #ff9f0a);
    font-size: 14px;
    font-weight: 800;
}

.buyer-platform .buyer-select__option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.buyer-platform .buyer-select.is-disabled .buyer-select__trigger {
    color: #98a2b3;
    background: #f2f4f7;
    cursor: not-allowed;
}

.buyer-platform .rfq_field.is_error .buyer-select__trigger {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .08);
}

@media (prefers-reduced-motion: reduce) {
    .buyer-platform .buyer-select__trigger,
    .buyer-platform .buyer-select__trigger::after { transition: none; }
}
