.dropdown-wrapper {
    position: relative;
    color: var(--ds-text, #292a2e);
}

.dropdown-trigger {
    appearance: none;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ds-text-subtle, #505258);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 32px;
    padding: 6px 8px 6px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;

    &:hover {
        background-color: var(--ds-background-neutral-subtle-hovered, #091e4214);
    }

    &.active {
        background: var(--ds-background-selected, #e9f2fe);
        color: var(--ds-text-selected, #1868db);
        border-color: var(--ds-text-selected, #1868db);

        &:hover {
            background-color: var(--ds-background-selected-hovered, #253858);
            color: var(--ds-text-selected, #f4f5f7);
        }
    }
}

.dropdown-trigger-label {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-trigger-icon {
    display: flex;
    align-items: center;

    .dropdown-chevron {
        width: 20px;
        height: 20px;
        color: currentColor;
    }
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    margin-top: 4px;
    border-radius: 8px;
    background-color: var(--ds-surface-overlay, #fff);
    box-shadow: var(--ds-shadow-overlay, 0 4px 8px #091e4226, 0 0 1px #091e424f);

    &.open {
        display: block;
    }
}

.dropdown-group {
    padding: 4px 0;
}

.dropdown-item {
    appearance: none;
    background: none;
    border: none;
    color: var(--ds-text, #292a2e);
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    padding: 6px 12px;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;

    &:hover {
        background-color: var(--ds-background-neutral-subtle-hovered, #091e4214);
    }

    &.active {
        background: var(--ds-background-selected, #e9f2fe);
        color: var(--ds-text-selected, #1868db);
        font-weight: 500;

        &:hover {
            background: var(--ds-background-selected-hovered, #cce0ff);
        }
    }
}

.dropdown-item-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.pagination {
    display: none;
    padding: 16px 12px;
    width: 100%;
    color: var(--ds-text, #292a2e);
    align-items: center;
    justify-content: center;
}
