._Editable_-zafa {
    position: relative;
    margin: -6px 4px -6px -10px;
}

._Editable_-zafa._NoMargin_-rudn {
        margin: 0;
    }

._Editable_-zafa._NoMargin_-rudn button {
            padding: 4px 8px;
        }

._EditablePopover_-agxu {
    text-align: right;
    width: 240px;
}

._EditablePopover_-agxu ._EditableFooter_-cbjh {
        outline: none; /* TODO might be overkill with all the outlines */
    }

[data-screen="xxs"] ._Editable_-zafa {
        margin-left: 0;
    }
._WSelect_-wcvf {
    color: var(--color-text);
}

._WSelect_-wcvf._editable_-ivhn {
        max-width: 300px;
    }

._WSelect_-wcvf._editable_-ivhn ._WSelectButton_-cyln {
            height: 28px;
        }

._WSelect_-wcvf[data-invalid] ._WSelectButton_-cyln {
            border-color: var(--color-error);
        }

._WSelect_-wcvf._Referral_-llxb ._WSelectButton_-cyln {
            background-color: var(--color-text-light);
        }

._WSelect_-wcvf._Referral_-llxb ._WSelectCaret_-tatu {
            border-left-color: var(--color-white);
        }

._WSelectError_-tqxu {
    display: block;
    padding-top: 4px;

    font-size: var(--font-size-small);
    color: var(--color-error);
}

._WSelectButton_-cyln {
    width: 100%;
    height: 36px;
    padding: 0 0 0 10px;

    justify-content: space-between;
    /* Space between the text and the caret */
    gap: 10px;

    border-radius: var(--border-radius-default);
    border-style: var(--input-border-style);
    border-color: var(--input-border-color);
    border-width: var(--input-border-width);

    background-color: var(--input-bg-color);
    font-size: var(--input-text-size);
    color: var(--input-text-color);
}

._WSelectButton_-cyln[data-focus-visible] {
        outline: 2px solid var(--color-outline);
        outline-offset: 2px;
    }

._WSelectButton_-cyln[data-disabled] {
        color: var(--color-muted);
        pointer-events: none;
        background-color: var(--color-grey-1);
        border-color: var(--color-primary-hover-alpha);
    }

._WSelectCaret_-tatu {
    width: 36px;
    min-width: 36px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-left: 1px solid var(--color-grey-2);
}

._WSelectPopover_-hnud[data-trigger="Select"] {
    min-width: 250px;
    /* Make it the size of the form field (hopefully) */
    width: var(--trigger-width);

    background-color: var(--color-white);
    border-radius: var(--button-border-radius);
    box-shadow: var(--menu-box-shadow);
}

._WSelectPopover_-hnud._EditablePopover_-hftz[data-trigger="Select"] {
        max-width: 300px;
    }

._WSelectListBox_-iryl {
    display: block;
    width: unset;
    max-height: min(350px, 25vh);
    min-height: unset;

    overflow: hidden;
    overflow-y: auto;

    border: none;
    background-color: var(--color-grey-2);
}

._WSelectListBox_-iryl._empty_-drtb {
        overflow-y: hidden;
    }

._ItemWrapper_-mvgs {
    /* Items require a wrapper div so ellipsis can be applied properly */
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

._WSelectButton_-cyln,
._WSectionHeader_-sqdx,
._WSelectListBoxItem_-zvzy {
    display: flex;
    align-items: center;
    text-align: left;
}

._WSelectValue_-bxic[data-placeholder] {
        font-style: italic;
        color: var(--color-muted);
    }

._WSectionHeader_-sqdx,
._WSelectListBoxItem_-zvzy {
    height: 36px;
    padding: 0 10px;

    cursor: default;

    border-bottom: 1px solid var(--color-grey-3);
}

._WSectionHeader_-sqdx {
    background-color: var(--color-grey-1);
}

._WSelectListBoxItem_-zvzy {
    background-color: var(--color-white);
}

._WSelectListBoxItem_-zvzy[data-selected] {
        background-color: var(--color-primary-light);
    }

._WSelectListBoxItem_-zvzy[data-disabled] {
        align-items: center;
        display: flex;
        color: var(--color-muted);
        background-color: var(--color-white);
    }

._WSelectListBoxItem_-zvzy[data-focused] {
        outline: 2px solid var(--color-outline);
        outline-offset: -2px;
    }

._WSelectListBoxItem_-zvzy[data-focused],._WSelectListBoxItem_-zvzy[data-pressed] {
        background-color: var(--color-primary-light);
    }

._WSelectListBoxHeader_-avdl {
    padding: 6px;
    background-color: var(--color-grey-2);
}

._WSelectListBoxFooter_-kfyl {
    padding: 4px;
    background-color: var(--color-grey-2);
}
